Hmm, that’s odd, I’ll look at that.
@d.ian.b I know next to nothing about bazel (except that IntelliJ didn’t seem to support it well, as you’ve found). Are you able to set up a simple project that I could use to test this?
I can’t reproduce this. That error message is produced when this var doesn’t exist, which it does in this version (and doesn’t on very old versions of deps): https://github.com/clojure/tools.deps.alpha/blob/tools.deps.alpha-0.11.922/src/main/clojure/clojure/tools/deps/alpha/util/dir.clj#L25
If you look in Preferences | Build, Execution, Deployment | Build Tools | Clojure Deps do you see the correct version reported?
I installed clojure.tools on Windows through scoop, but I can't use it with Cursive because the output of the clj -Sdescribe
command contains invalid escape sequences:
$ cmd-clj.exe -Sdescribe
{:version "1.10.3.855"
:config-files ["C:\Users\***\scoop\modules\ClojureTools\deps.edn" "C:\Users\***\.clojure\deps.edn" "deps.edn"]
:config-user "C:\Users\***\.clojure\deps.edn"
:config-project "deps.edn"
:install-dir "C:\Users\***\scoop\modules\ClojureTools"
:config-dir "C:\Users\***\.clojure"
:cache-dir "C:\Users\***\.clojure\.cpcache"
:force False
:repro False
:main-aliases ""
:repl-aliases ""
:exec-aliases ""}
because C:\Users\...
contains \U
... (I know, switch to Linux...)Hmm, that sounds like a deps bug really, since the output is supposed to be edn but isn’t readable. I’d be interested to hear if that’s something that might be fixed there - I’m not sure what Cursive could do about that.
Yeah, it’s a bug
Hello! I have a problem with connecting to a remote REPL running on WSL from Cursive running on Windows. Every time it says "Connection refused". Do you have any idea why is it happening?
Can you connect using other tools, e.g. lein repl :connect
?
Hello! I’m running into an issue again where I’m in a monorepo, multiple directories have the same bare name and are deps.edn projects, and because they have the same base dirname I can’t import them as modules at the same time. I’m wondering if any workaround for this problem as emerged in the past few months (I think) since I last encountered it?
Ugh, sorry, I meant to add a workaround of some kind for this, I’ll do it for the next release.
To be more concrete: services/foo/deps.edn and modules/foo/deps.edn are different deps projects in the same intellij project
I can only have one of them as an intellj module at a time because the module name for both is “foo” and I don’t think I can control that.
@borkdude Unfortunately I cannot
Perhaps there is something here https://blog.michielborkent.nl/2020/07/26/remote-wsl2-clojure/ I have some powershell script that does stuff with ports in the Windows firewall, etc
Not sure if that is related though. Perhaps your REPL isn't listening on the wildcard address / public IP address of wsl(2)
hopefully I explained this well, but adding a sub Lein project after the fact is somehow not working as well as the initial recursive import: <https://github.com/cursive-ide/cursive/issues/2562>
Thanks, I’ll take a look at that and see if I can figure out what the difference is.
left a comment… I think the problem may have been Maven fighting with Lein
❤️
@borkdude I’ve check the script you had in the video. So I proxied only a port on which the repl is listening on WSL but still cannot connect to it
> Not sure if that is related though. Perhaps your REPL isn’t listening on the wildcard address / public IP address of wsl(2) I’ll check that soon
Anyone running Cursive/IDEA on the Apple M1? Thoughts on how well it performs?
i've seen it on my colleague's machine. it's almost as good as my 8-core i9 27" iMac with 80GB RAM.
I don’t have an M1 machine, but I’ve only heard great things about them.
Looks like it’s not listening on wildcard address and I’m not sure how to do it :thinking_face:
what are you using, nREPL? how are you starting it?
I’m using leiningen in WSL. I’m starting it with lein repl
See lein repl --help
how to configure the host and port
Checked that unfortunately when I’m setting host to 0.0.0.0 then the repl is running but I can see that it’s listening on 127.0.0.1. Also I have a postgres container which is listening on 0.0.0.0… Weird.
unfortunately.... it's working?
@lite.what This works for me:
$ lein repl :start :host 0.0.0.0 :port 1337
nREPL server started on port 1337 on host 0.0.0.0 - <nrepl://0.0.0.0:1337>
I’m sorry I wrote wrong
Checking yours
Good point @borkdude thank you! I used positional arguments which was wrong… So it says for me that nREPL is running on 0.0.0.0:5555. Now I can connect via lein repl :connect
but I cannot with Cursive :thinking_face:
@borkdude solved! I restarted and invalidated cache and now I’m super happy to connect from Cursive 🙂
Snappy, blazing, joy inducing.
cool!
have you tried manually adding and renaming those modules with the same (inferred) name in Project Structure / Project Settings / Modules ? you can add them one at a time and rename them following a naming convention (e.g., services-foo
, modules-foo
).
https://stackoverflow.com/questions/29495060/multiple-intellij-maven-modules-with-same-name
Fantastic. On a Macbook Pro or Air?
Both. I have a 16G Air as my personal machine and a Pro as work machine