This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-14
Channels
- # announcements (1)
- # beginners (206)
- # calva (2)
- # cider (64)
- # cljs-dev (12)
- # clojars (2)
- # clojure (177)
- # clojure-europe (2)
- # clojure-finland (1)
- # clojure-italy (2)
- # clojure-losangeles (5)
- # clojure-nl (7)
- # clojure-russia (69)
- # clojure-spec (41)
- # clojure-uk (92)
- # clojurescript (60)
- # core-async (16)
- # cursive (48)
- # data-science (6)
- # datomic (73)
- # duct (5)
- # events (2)
- # figwheel-main (5)
- # fulcro (29)
- # hoplon (1)
- # off-topic (52)
- # pathom (11)
- # reagent (4)
- # reitit (5)
- # remote-jobs (1)
- # rum (7)
- # shadow-cljs (58)
- # slack-help (10)
- # spacemacs (3)
- # testing (3)
- # tools-deps (5)
@gfredericks So I haven’t tried it, but I’m not aware of any reason that shouldn’t work.
I suspect it's just a regular ole' defn-wrapping-macro
Debugging Clojure is weird sometimes though, and occasionally fails for unknown reasons.
okay, well maybe I'll get more info on the morrow
@cfleming on closer inspection it was a false alarm; works as expected
Next Cursive + deps + WSL hurdle: how do we open a Clojure deps project in IntelliJ without a path to clj
? Or rather, how do we let Cursive know clj
is in the WSL environment?
@grzm You can’t. IntelliJ operates in Windows-land, which can’t access WSL in a useful way.
The best way to set deps and Cursive up on Windows is to use the “Use tools.deps directly” option, which doesn’t require the command line tools.
You will have to specify the version of tools.deps.alpha you want to use, usually the latest version.
@grzm There’s a bit of doc about how to use this here: https://groups.google.com/d/topic/cursive/V7BEEUuGLxM/discussion
> On systems which support the CLI tools (e.g. Mac & Linux) Cursive will use those by default. On Windows, which doesn’t have CLI tools as of the time of this writing, you can choose instead to use the tools.deps library directly. This has some caveats, in particular the system deps.edn is bundled with Cursive, so it will always use the current version as of the time of this writing. There is some consideration being given to bundling that into the tools.deps jar rather than installing it via the CLI tools, if that happens this limitation will go away. > The configuration of this is currently a little clunky. You can configure it either at Settings->Build, Execution, Deployment->Build Tools->Clojure Deps or in the global settings section when setting up a new project. Select “Use tools.deps directly”, then press the “Refresh” button to get the list of available versions. Select the version you want to use (by default the latest is selected) and then press “Download” to fetch the artifacts from Maven. If required, you can also customise the path to your user deps.edn file if you want to do so. > Note that this doesn’t require or use WSL at all, and in fact it can’t - IntelliJ lives entirely in Windows land and can only read files from WSL. If you’ve been using deps under WSL you’ll probably have to copy your user deps.edn somewhere accessible, or point Cursive to it as described above. Any feedback about how well all this works is very welcome.
I think the best option is to have your user deps.edn in Windows so you can point Cursive to it, and then tell the WSL install to use that one using (IIRC) CLJ_CONFIG.
Cool. Thanks. We clicked "Refresh" and see the latest tools.deps version is 0.6.488, and we're still seeing "Press Refresh to see available tools.deps versions" when we click "OK"
that version came out yesterday btw
Changing the value in the combo box to any value (including back to the 0.6.448) gives the same "Press Refresh" response.
Unless it has sensitive stuff in the background, in which case by DM or email is fine too.
I'm the one @grzm is trying to help with this. Here is a screen shot.
It doesn't
Cheers. We're kind of stuck here. @ryan.t.scott73 is new to Clojure and I don't have access to a Windows machine. If I were more familiar with Windows and had access to a machine, I'd be all over the #clj-on-windows channel helping that effort move forward.
@ryan.t.scott73 Can you go to Settings->Build, Execution, Deployment->Build Tools->Clojure Deps and try it there?
I’ve just seen that IntelliJ calls the validation step at extra points when importing.
That worked. Thanks!
@ryan.t.scott73 and I now have a REPL in Cursive on Windows! 🙂