calva

siavash mohammady 2025-11-11T15:20:43.392919Z

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

pez 2025-11-12T11:53:59.585569Z

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

pez 2025-11-12T12:01:32.518039Z

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
seancorfield 2025-11-11T15:47:06.195819Z

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

siavash mohammady 2025-11-11T15:47:53.429789Z

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

seancorfield 2025-11-11T15:48:39.426569Z

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

seancorfield 2025-11-11T15:48:59.959189Z

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

๐Ÿ‘ 1
siavash mohammady 2025-11-11T15:53:03.140849Z

ok thank you @seancorfield

pez 2025-11-11T21:58:45.192329Z

This should just work.

siavash mohammady 2025-11-12T04:10:52.114029Z

๐Ÿ™‚ yep but unfortunately is not working

siavash mohammady 2025-11-12T05:28:32.947529Z

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.

siavash mohammady 2025-11-12T05:30:30.935629Z

my build also exists in the 9630