This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-12
Channels
- # announcements (6)
- # babashka (45)
- # beginners (4)
- # calva (19)
- # cider (2)
- # clj-kondo (10)
- # clj-yaml (10)
- # clojure (25)
- # clojure-boston (1)
- # clojure-conj (3)
- # clojure-europe (34)
- # clojure-losangeles (5)
- # clojure-nl (1)
- # clojure-norway (11)
- # clojure-uk (2)
- # clojurescript (84)
- # cursive (10)
- # datalevin (3)
- # figwheel-main (1)
- # fulcro (1)
- # jobs (5)
- # joyride (25)
- # lsp (17)
- # malli (18)
- # nbb (1)
- # off-topic (1)
- # re-frame (22)
- # remote-jobs (9)
- # scittle (3)
- # shadow-cljs (26)
- # sql (16)
- # tools-build (12)
- # xtdb (44)
Will Calva work correctly with a deps.edn project if the user hasn't installed the cli tools?
You won’t be able to start and connect to a repl
Actschually... 😃 If you use Calva jack-in, it will work without the cli. If they are missing, Calva falls back on deps.clj
, which is bundled. Java is required, however.
ah, right, forgot about that!
Awesome @U0ETXRFEW! They (students in my class that starts in a few weeks) will have Java, so it's great that they just need VSCode and then Calva and they'll be good to go! They'll probably want cli at some point, but it's great that it's not needed to start.
You may face classpath lookup fail for static analysis used by clojure-lsp, repoting only basic info as under the hood clojure-lsp run clj -Spath
to get the classpath (maybe we should consider add support for deps.clj
as well)
@UKFSJSM38 is there a way Calva can tell clojure-lsp about the path to the bundled deps.clj?
no ATM, we would need to support that via initializationOptions on clojure-lsp startup, but since this is something that would be nice to have on all editors, would be nice to support it on server side I think
Some of my students are getting errors trying to jack in to minimal deps.edn
projects with setups that don't include CLI tools, and although I don't have full info yet I can see that the jack in process is making a call to java -jar
rather than clojure
, and they're getting errors starting Errors while parsing option "--config-data
. Again, I don't have full info yet, but so far all I've been able to suggest is that they maybe try updating Calva and/or installing the CLI tools, which may be a fairly deep rabbit hole for some of them at this point. I thought at first that the problem might stem from an improperly-constructed minimal project (which they had to build themselves), but for one student the same problem occurred with a minimal project that I created and shared (and which worked fine for me, but I do have the CLI tools installed). I think that at least one student with this problem is running Windows, and at least one is running MacOS. @U0ETXRFEW or others, does this situation suggest a fix to you?
There is a known bug in some Java installs on Windows that could be in play. Never heard of any problems like this in Mac, though. Can you obtain some more of the error messages? Maybe that gives us a hint.
Thanks! Will pass along all the info I can. In one of the screenshots a student sent (I think this is on windows because there's a "\" in the path to the .jar) I see "java.lang.NumberFormatException: Invalid number: 1.0.0"
The error from that Windows machine looks like from a buggy version of the Java launcher. Upgrading/reinstalling Java is the only remedy.
That other error… I have no idea. Can you check if the Getting Started repl gives the same error?
Asking about online REPLs on #beginners for students who are having installation/jack-in issues I was reminded of the astounding https://calva.io/get-started-with-clojure/!