Fork me on GitHub
#spacemacs
<
2020-05-15
>
kirill.salykin09:05:31

goodday how one starts both clj and cljs? when I use cider-jack-in-clj&cljs - i am asked which command should be used? https://www.dropbox.com/s/k2whs2w7bwsyoq1/Screenshot%202020-05-15%2011.23.45.png?dl=0 (not clear is it for clj or for cljs?) If I select clojure-cli - failure with piggieback not found If i select shadow-cljs - i have two cljs buffers (seems like, because in the supposedly clj REPL I see mention of ;; ClojureScript REPL type: shadow) please advice? Thanks

aisamu13:05:38

If this is a shadow-cljs project, you should probably pick shadow-cljs. Regardless of what the buffers say, are you able to evaluate expressions on .clj files? As an ugly short term fix: if you really have two separate CLJS REPL connections, you may pick one of those and type/send `:cljs/quit - it'll be "demoted" to a CLJ REPL.

kirill.salykin14:05:56

thanks, i ll give it a shot

dev.4openID17:05:27

I assume you are running emacs/spacemcs. You can instigate multiple instances of CIDER and each one wil have a separate socket. You will have to be conscientious as to which you are mapped to. It is not obviously easy

kirill.salykin06:05:42

> Regardless of what the buffers say, are you able to evaluate expressions on `.clj` files? Nope, it is indeed shadow-cljs repl clj files cannot be valuted because deps are not loaded

aisamu14:05:47

Sure, but can you evaluate (+ 1 3) within a clj file? If there's a CLJ available anywhere, it'll be possible. If both are CLJS, it'll complain

kirill.salykin14:05:31

even if i can - the fact that it cant load any clj dependency makes it useless not a biggie, I still can start two repls separatly :)

kirill.salykin14:05:01

probably the cider issue… will file the ticket

kirill.salykin14:05:09

thanks for your help and advices

aisamu14:05:40

Yup, the point is to narrow down what's going on with your setup