calva 2025-11-11

Hi When i jacking using leiningen + shadowcljs in my shadow-cljs when i try something like, got error

(js/Math.random)
; 2025-11-11T15:18:42.945Z siavash-systemproductname ERROR [re-frame.loggers:222] - re-frame: no :event handler registered for: :send-request
; Syntax error compiling at (.calva/output-window/output.calva-repl:1169:34).
; No such namespace: js

Failed starting cljs repl for build: :dev looks like the root cause. What do you see in the Jack-in terminal?

Iโ€™m not a Leiningen user, so havenโ€™t a ton of experience trouble shooting. But I just tested with a project I have that it still works there. (Not mean as a WorksOnMyMachine, just noting that there is hope we can figure it out without fixing something in Calva.)

๐Ÿ™‚ 1

That sounds like your REPL is connected to the Clojure side, not the ClojureScript side?

yep, i don't have this issue in Emacs but have in vs-code

I don't do any cljs work but I think you can toggle the dialect mode in the status bar of VS Code?

Check the Calva docs for tips on working with ClojureScript perhaps?

๐Ÿ‘ 1

ok thank you @seancorfield

This should just work.

๐Ÿ™‚ yep but unfortunately is not working

Another issue @pez it gives me this error, when is select :dev to be connected to!

; Cljs builds started
; Failed starting cljs repl for build: :dev. Is the build running and connected?
;    See the Output channel "Calva Connection Log" for any hints on what went wrong.
; Creating cljs repl session...
; Connecting cljs repl: Leiningen...
; Cljs builds started
; Failed starting cljs repl for build: :dev. Is the build running and connected?
;    See the Output channel "Calva Connection Log" for any hints on what went wrong.

my build also exists in the 9630