Ohh, TIL that there's a CIDER inspector. I'll check this out later!
From the few vids/articles I've watched/read, REBL has an implementation + UI of the datafy
/ nav
protocols
I'm a little baffled but looks like .dir-local.el
with cider-default-cljs-repl
doesn't work if I cider-jack-in-cljs
only when I cider-jack-in
(obviously doesn't work with the regular jack-in)
@macroz double check you're using .dir-locals.el
. Note locals is plural.
Also it has a dot at the beginning
Thanks, @dpsutton. I've updated my comment to include the leading dot. 🙂
.dir-locals.el
yes the filename is correct
I'm currently using cider-version
1.0.0snapshot (package: <tel:202009131139|20200913.1139>)
It works for me
I have this in my .dir-locals.el:
((nil . ((cider-clojure-cli-global-options . "-A:devtools:dev:shader-editor")
(cider-default-cljs-repl . shadow)
(cider-shadow-default-options . ":app")
(cider-shadow-cljs-global-options . "-A:devtools:dev:shader-editor"))))
I mean the cider-shadow-cljs-global-options is correctly passed to shadow-cljs when doing cider-jack-in-cljs. I still get a popup asking me to chose between clojure-cli and shadow-cljs which is weird.
If there are two project type files cider needs to ask which one to use. You can set cider preferred build tool if you like
Ah ok right. But there's no way to specify a different build tool for cider-jack-in-clj and cider-jack-in-cljs it seems. In my case I'm using clojure-cli for one and shadow-cljs for the other.
very baffled because I think it used to work, I can find issues of it working and not working, and even on this slack people suggesting it
Hi folks!
I've been chatting over in #shadow-cljs about a problem with jacking into a CLJS REPL. https://clojurians.slack.com/archives/C6N245JGG/p1602593984417600
The gist of it is when I invoke cider-jack-in-cljs
with a shadow-cljs project that uses tools.deps I'm told "No namespace: cider.piggieback found".
I found the following issue, that was closed by a rather egregious bot without a fix (the suggestion was to manually configure things rather than relying on Cider's built-in support): https://github.com/clojure-emacs/cider/issues/2812
I've tried the suggested workaround and unfortunately it did not get me a working CLJS REPL.
What I'm wondering is this: is this a combination of tools that people are using or have I wandered off the beaten path? Should I stick with Cider and Figwheel Main or do Cider and shadow-cljs play nice with a cider-jack-in-cljs
?
Shadow is phenomenal and you’re right where you want to be. The tooling is a little rough if you use deps to run shadow but is really nice if you use shadow to manage your deps
Thanks, @dpsutton. That's what I'm thinking.
If you look at the dir locals for lambda island “chui” it has some tricks to make deps managed shadow nicer though
Evaling indent rules. Interesting.
May I ask what is the best way to handle the following? Other than restarting emacs entirely? Under sesman-restart
for some cases and cider-restart
for other cases. But what other ways of restarting cider are there? Other than closing emacs 😮
error in process filter: nrepl-send-sync-request: Sync nREPL request timed out (op clone id 1
error in process filter: Sync nREPL request timed out (op clone id 1)
Well if your nrepl isn’t responding you can kill that process and then close the repl buffers.
@hybas3 Like the buffer? The error still occurs after killing the buffer and running cider-jack-in-cljs again
hello everyone, Im trying to customize the cider-jack-in
command, I need to expose an env variable and use a custom lein
command to open the repl
the official docs state that ‘You can use C-u M-x cider-jack-in
RET to specify the exact command that cider-jack-in
would run. This option is very useful is you want to specify a something like a lein
or deps.edn
profile.’
Im using doom emacs with evil mode, so C-u takes me to beggining of the buffer
is there any other way of doing that?
do you know how to do a prefix argument in emacs?
Im afraid not
did you try it from normal mode and insert mode? No idea how to do this in evil mode
probably ask in #emacs to get more eyes on it
alright, I was wondering if there was a command, accessible by M-x that would do what C-u M-x cider-jack-in
does, but thanks anyway 🙂
no. cider-jack-in
is the command. the prefix arg (`C-u`) is how you modify the command