Fork me on GitHub
#cursive
<
2020-07-05
>
stopa18:07:28

Hey team, noob question. Whenever I update dependencies in deps, I don't see the refresh. The docs says to press the "refresh" button, but I am not sure where it is Is there some command I can search with for cmd + shift + a?

stopa18:07:37

If I search "Refresh", and press that, nothing happens. I did notice an error from cursive, about a non-idempotent computation

java.lang.Throwable: Non-idempotent computation: it returns different results when invoked multiple times or on different threads:
  PsiMethod:minusDays (class com.intellij.psi.impl.compiled.ClsMethodImpl) != PsiMethod:minusDays (class com.intellij.psi.impl.compiled.ClsMethodImpl)
  which is element of [email protected] and [email protected]
  which is 0th element of [[email protected], [email protected]] and [[email protected], [email protected]]

salam21:07:35

the “Refresh” button is the first one in the tool bar of the “Clojure Deps” tool window as shown on the right-hand side in the following screenshot:

Mikael Andersson22:07:01

In cursive a changed .deps file should also pop up a 'ballon' in the lower right corner with a clickable 'Import Changes' text unless the notification is turned off in preferences/notifications.

stopa23:07:44

Apologies for the v noob questions team -> 🙈 how can I access the Clojure deps tool window? (Also am not quite sure where I can get it. cmd + shift a only shows the preferences pane. Also am not quite sure where the notif option is)

salam23:07:58

you should be able to find it following one of the ways to open tool windows as described here: https://www.jetbrains.com/help/idea/tool-windows.html#open

stopa23:07:30

Okay, this gets interesting -- I don't seem to have the "Clojure Deps" tool window. Maybe I opened the projected incorrectly -- taking further look

salam23:07:57

hmm… the presence of REPL tool window and absence of Clojure Deps tool window indicates that Cursive didn’t recognize your project as a Deps project. you may need to reimport your project as a Deps project (don’t forget to delete the .idea directory and the *.iml files in the project directory)

stopa23:07:48

Update: ooky doke we are back! Thanks team

3
stopa23:07:03

(indeed re-initiate did the trick. Maybe it was because I had a pom.xml file in there too

salam23:07:10

actually, i was, too, confused by the presence of deps.edn, pom.xml, and... a Makefile… 😅

😆 3
stopa23:07:48

xD My explanation: pom.xml was to be able to build a java jar -- uberdeps needed it. Will delete in my build script Makefile for having handy commands dev-repl, build-jar, etc If there are some recommended setups for deps projects, would love to know : } -- currently building on the fly

3
imre08:07:10

re: makefile we started using just and Justfile s for the handy commands purpose. Has a lot less quirkyness than make

👍 3