Fork me on GitHub
#practicalli
<
2024-04-01
>
Nik10:04:43

Hey, i'm using practicalli spacemacs installation. i've developed a toy clj app and everything is working. I'm trying cljs electron now. I'm using https://github.com/ahonn/shadow-electron-starter repo. I followed the steps, which fired up shadow-cljs in terminal then I used cider-connect-cljs which also worked without errors. but i'm not able to evaluate code in my buffers. if i run , e e i.e. eval-last-sexp nothing happens. if i open repl buffer and (+ 1 2) I get 3 as expected. Has some one faced similar issue before, I'm new to emacs so I'm not sure where to start. Maybe it is a shadow-cljs config issue? I have to add nrepl or cider-nrepl dependencies (or something along those lines). Previously in clojure, when I moved from jack-in to connect I had to add middlewares manually

practicalli-johnny11:04:53

I'm not familiar with that starter project, but I assume you are correct in thinking nREPL is not running. Or it could be that a clj repl is running but not a cljs REPL. I always recommend reading the shadow-cljs guide in depth before doing anything with shadow-cljs https://shadow-cljs.github.io/docs/UsersGuide.html

practicalli-johnny11:04:37

It is surprising that connect works, so nREPL must be running somewhere, although I do not see any dependencies in that starter project.