This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-08
Channels
- # asami (15)
- # babashka (123)
- # beginners (174)
- # calva (4)
- # cider (6)
- # cljdoc (4)
- # cljs-dev (4)
- # cljsrn (18)
- # clojure (268)
- # clojure-australia (1)
- # clojure-europe (107)
- # clojure-ireland (5)
- # clojure-nl (2)
- # clojure-uk (18)
- # clojured (1)
- # clojurescript (21)
- # conjure (4)
- # cursive (38)
- # data-science (1)
- # datahike (6)
- # datomic (4)
- # events (1)
- # fulcro (9)
- # graalvm (16)
- # helix (6)
- # honeysql (4)
- # instaparse (3)
- # jobs (1)
- # observability (15)
- # pathom (7)
- # pedestal (15)
- # polylith (9)
- # practicalli (1)
- # re-frame (6)
- # remote-jobs (2)
- # specter (7)
- # sql (16)
- # tools-deps (1)
- # vim (5)
- # xtdb (1)
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.
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?
@U04V15CAJ 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)
@U04V15CAJ 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
Looks like it’s not listening on wildcard address and I’m not sure how to do it :thinking_face:
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.
@UCMM72RT4 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 -
Good point @U04V15CAJ 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:
@U04V15CAJ solved! I restarted and invalidated cache and now I’m super happy to connect from Cursive 🙂
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?
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.
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
Cursive seems to control the module settings—the next ”import changes” will reset the names
you're right. we seem to have lost the ability to rename modules in this particular case where modules in different directories share the same name... 😞 Cursive threw 5 unhandled exceptions when i attempted to import and rename such modules...
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:
left a comment… I think the problem may have been Maven fighting with Lein
Anyone running Cursive/IDEA on the Apple M1? Thoughts on how well it performs?
Fantastic. On a Macbook Pro or Air?