This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-05
Channels
- # babashka (1)
- # beginners (75)
- # clojure (8)
- # clojure-uk (7)
- # clojurescript (14)
- # code-reviews (6)
- # conjure (5)
- # cursive (13)
- # data-science (1)
- # datomic (46)
- # fulcro (10)
- # helix (15)
- # jackdaw (1)
- # jobs-discuss (10)
- # jobs-rus (1)
- # off-topic (17)
- # pathom (1)
- # re-frame (19)
- # releases (1)
- # spacemacs (9)
- # sql (29)
- # test-check (18)
- # tools-deps (6)
- # xtdb (3)
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?
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 cursive.psi.resolve.ClojureResolveResultImpl@1ea1d382 and cursive.psi.resolve.ClojureResolveResultImpl@614fa3cc
which is 0th element of [cursive.psi.resolve.ClojureResolveResultImpl@1ea1d382, cursive.psi.resolve.ClojureResolveResultImpl@c7b6b2] and [cursive.psi.resolve.ClojureResolveResultImpl@614fa3cc, cursive.psi.resolve.ClojureResolveResultImpl@336e382a]
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:
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.
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)
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
Okay, this gets interesting -- I don't seem to have the "Clojure Deps" tool window. Maybe I opened the projected incorrectly -- taking further look
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)
(indeed re-initiate did the trick. Maybe it was because I had a pom.xml
file in there too
actually, i was, too, confused by the presence of deps.edn, pom.xml, and... a Makefile… 😅
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