This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-13
Channels
- # adventofcode (36)
- # aleph (1)
- # announcements (7)
- # aws (4)
- # babashka (14)
- # beginners (61)
- # calva (79)
- # cider (19)
- # clojure (48)
- # clojure-austin (1)
- # clojure-australia (2)
- # clojure-czech (2)
- # clojure-europe (46)
- # clojure-france (8)
- # clojure-nl (19)
- # clojure-uk (4)
- # clojuredesign-podcast (14)
- # core-logic (42)
- # data-science (3)
- # datalevin (8)
- # datomic (76)
- # events (1)
- # figwheel-main (9)
- # fulcro (6)
- # helix (1)
- # holy-lambda (1)
- # honeysql (2)
- # jobs (2)
- # jobs-discuss (20)
- # leiningen (5)
- # lsp (87)
- # minecraft (11)
- # nextjournal (4)
- # off-topic (17)
- # practicalli (1)
- # reagent (22)
- # reitit (8)
- # releases (3)
- # rum (2)
- # shadow-cljs (18)
- # sql (11)
- # tools-build (5)
- # tools-deps (9)
- # xtdb (20)
Has anyone else run into a problem where adding a `.dir-locals.el` with tools.deps aliases results in cider-jack-in
failing to create a REPL window, and instead dropping the prompt into the `*nrepl-server <project>*` namespace that typically just holds the repl startup logging? Here's the `.dir-locals.el` that's causing the problem (created with `M-x add-dir-local-variable`, so presumably syntactically valid):
((clojure-mode . ((cider-clojure-cli-global-options . "-M:logging:repl"))))
can you see what the full startup command looks like? My guess is that no nrepl server is getting started so its just a regular repl and CIDER has no idea what to do with it
For sure! It's
/usr/local/bin/clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version "0.8.3"} refactor-nrepl {:mvn/version "2.5.1"} cider/cider-nrepl {:mvn/version "0.25.5"}}}' -M:logging:repl -m nrepl.cmdline --middleware '["refactor-nrepl.middleware/wrap-refactor","cider.nrepl/cider-middleware"]'
The odd thing is that if I just move the deps in those aliases to the main dependencies and remove .dir-locals.el
, cider-jack-in
starts up as expected.
The project has recently been switched from mount to integrant, and my guess is something about that is what's throwing it off.
It does, repl
is
:repl
{:extra-paths ["dev"]
:extra-deps {com.bhauman/rebel-readline {:mvn/version "0.1.4"}
integrant/repl {:mvn/version "0.3.2"}}
:main-opts ["-m" "user"]}
my guess is one of those has main args and the -m nrepl.cmdline ---middleware ...
is actually being passed as main args to another main args
if you want to not upgrade, you can put your main args for CIDER into an alias and ensure that alias comes last
No, no reason not to update -- I'm just a slow updater for everything emacs related since I'm on spacemacs and updates result in breakage a bit more often than I'd like 😜