This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-07
Channels
- # announcements (1)
- # babashka (31)
- # beginners (54)
- # biff (3)
- # calva (22)
- # cider (13)
- # circleci (1)
- # clj-kondo (6)
- # cljsrn (2)
- # clojure (113)
- # clojure-europe (58)
- # clojure-mexico (5)
- # clojure-nl (3)
- # clojure-uk (7)
- # clojurescript (81)
- # cursive (20)
- # datomic (33)
- # events (3)
- # fulcro (29)
- # introduce-yourself (1)
- # meander (78)
- # off-topic (60)
- # om-next (2)
- # podcasts-discuss (1)
- # re-frame (8)
- # reagent (5)
- # reitit (20)
- # remote-jobs (1)
- # shadow-cljs (24)
- # spacemacs (10)
- # sql (8)
- # tools-deps (22)
- # xtdb (16)
hi, I'm getting an error when trying to open a project by opening the deps.edn file: the message is Unknown alias key: :exec-fn
and the only place :exec-fn
occurs is in my :test
alias (see reply). anybody got pointers?
:test
{:extra-paths ["src/test"]
:main-opts ["-m" "cognitect.test-runner"]
:exec-fn cognitect.test-runner.api/test
:extra-deps {com.cognitect/test-runner {:git/url ""
:sha "705ad25bbf0228b1c38d0244a36001c2987d7337"}
thheller/shadow-cljs {:mvn/version "2.12.5"}}}
Do you see that same error in deps on the command line, e.g. using clojure -Spath
or something similar?
Weird, since that error doesn’t seem to be a Cursive one. I’ll try to reproduce this in a bit.
that's an error from an old version of tools.deps (circa 0.8.x, about a year ago or older)
the exec stuff was added in the Clojure CLI in version 1.10.1.697, last September, so older than that. not sure if this is tools.deps in Cursive or an old Clojure CLI
that should be fine (and explains why it works on command line), so I'd guess it's Cursive's use of older tools.deps?
I suspect this might be https://github.com/cursive-ide/cursive/issues/2105, which is fixed in the latest EAP. @U49U72C4V if you’re not using the EAP already, could you try that to see if it helps? Instructions for how to do so are here: https://cursive-ide.com/userguide/index.html#eap. After doing that, go to Preferences | Build, Execution, Deployment | Build Tools | Clojure Deps and make sure the correct CLI version is show there, and then hopefully it’ll work.
I did the following: • Uninstall Cursive • Restart IntelliJ • Install Cursive 1.10.3-eap2-2021.1 • Restart IntelliJ, invalidating all caches • Open directory, right click deps.edn, click "Add as Clojure Deps Project" I'm still getting the same error though
I should mention: a fine workaround for now is to just comment out the exec-fn line, if only while i'm launching my intellij repl
That’s very strange. Could you try the following? Go to Help | Debug log settings… and enter #cursive.shim.Shim
in the box that appears there. Then reproduce the problem and email me your log file to <mailto:[email protected]|[email protected]>? Log file is at Help | Show log in Finder/Explorer.
Yep, that’s great, thanks. The cause is definitely that bug:
Version 1.10.3.855
Files /usr/local/lib/clojure/libexec/clojure-tools-1.10.1.536.jar <etc etc>
So I think that upgrading Cursive has just not triggered the update to the classpath. Could you try the following - go to Preferences | Build, Execution, Deployment | Build Tools | Clojure Deps, click on “Use tools.deps directly” then Refresh and Download if required, then click apply and close the prefs screen. Then reopen it again, check “Use CLI tools” then apply, close and try again.