cursive

Issues at: https://git.io/cursive-issues
cfleming 2021-06-08T02:50:37.149100Z

Hmm, that’s odd, I’ll look at that.

cfleming 2021-06-08T02:51:49.149300Z

@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?

1
cfleming 2021-06-08T03:41:12.149700Z

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

cfleming 2021-06-08T03:42:28.150Z

If you look in Preferences | Build, Execution, Deployment | Build Tools | Clojure Deps do you see the correct version reported?

Azzurite 2021-06-08T08:25:33.152900Z

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...)

cfleming 2021-06-08T08:31:21.153200Z

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.

alexmiller 2021-06-08T12:26:33.156800Z

Yeah, it’s a bug

👍 1
2021-06-08T12:37:21.160Z

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?

borkdude 2021-06-08T12:44:32.160100Z

Can you connect using other tools, e.g. lein repl :connect ?

favila 2021-06-08T12:53:19.161600Z

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?

cfleming 2021-06-10T21:11:08.173800Z

Ugh, sorry, I meant to add a workaround of some kind for this, I’ll do it for the next release.

1
favila 2021-06-08T12:54:27.161700Z

To be more concrete: services/foo/deps.edn and modules/foo/deps.edn are different deps projects in the same intellij project

favila 2021-06-08T12:55:11.161900Z

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.

2021-06-08T14:34:54.162200Z

@borkdude Unfortunately I cannot

borkdude 2021-06-08T14:36:35.162400Z

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

borkdude 2021-06-08T14:37:22.162700Z

Not sure if that is related though. Perhaps your REPL isn't listening on the wildcard address / public IP address of wsl(2)

2021-06-08T14:46:05.163400Z

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>

cfleming 2021-06-10T21:10:22.173600Z

Thanks, I’ll take a look at that and see if I can figure out what the difference is.

2021-06-11T17:32:06.174400Z

left a comment… I think the problem may have been Maven fighting with Lein

Azzurite 2021-06-08T15:00:59.163500Z

❤️

2021-06-08T15:24:51.163700Z

@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

2021-06-08T15:26:39.164Z

> 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

2021-06-08T15:57:13.164600Z

Anyone running Cursive/IDEA on the Apple M1? Thoughts on how well it performs?

onetom 2021-06-09T13:26:23.173100Z

i've seen it on my colleague's machine. it's almost as good as my 8-core i9 27" iMac with 80GB RAM.

cfleming 2021-06-10T21:11:41.174Z

I don’t have an M1 machine, but I’ve only heard great things about them.

2021-06-08T15:58:31.164700Z

Looks like it’s not listening on wildcard address and I’m not sure how to do it :thinking_face:

borkdude 2021-06-08T16:03:31.164900Z

what are you using, nREPL? how are you starting it?

2021-06-08T16:10:18.165100Z

I’m using leiningen in WSL. I’m starting it with lein repl

borkdude 2021-06-08T16:15:53.165300Z

See lein repl --help how to configure the host and port

2021-06-08T17:24:35.166100Z

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.

borkdude 2021-06-08T17:26:16.166300Z

unfortunately.... it's working?

borkdude 2021-06-08T17:30:45.166700Z

@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>

2021-06-08T17:30:52.166900Z

I’m sorry I wrote wrong

2021-06-08T17:31:09.167100Z

Checking yours

2021-06-08T17:46:35.167300Z

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:

2021-06-08T17:54:35.167500Z

@borkdude solved! I restarted and invalidated cache and now I’m super happy to connect from Cursive 🙂

danieroux 2021-06-08T18:04:24.168100Z

Snappy, blazing, joy inducing.

borkdude 2021-06-08T19:54:18.168300Z

cool!

salam 2021-06-08T20:49:52.168500Z

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).

2021-06-08T21:41:34.169Z

Fantastic. On a Macbook Pro or Air?

danieroux 2021-06-08T22:48:18.169200Z

Both. I have a 16G Air as my personal machine and a Pro as work machine