Fork me on GitHub
#emacs
<
2019-08-28
>
yenda09:08:25

Anyone else experiencing wrong buffer-repl-type in a shadow-cljs project using spacemacs? It is working fine for my colleague with a vanilla emacs. When we use cider-connect-clojurescript, the buffers of cljs files show not connected for me because the repl buffer is of repl-type clj and doesn't switch to cljs once the cljs.user prompt appears. It does for my colleagues

yenda10:08:21

btw by using cider-set-repl-type manually it works, the cljs file buffers then show connected and C-c C-z switches to repl buffer

yenda10:08:31

*nrepl-messages* are pretty much the same in both

yenda10:08:35

I also noticed that when I call cljr-clean-ns for instance (which doesn't work and fails with unrelated error) the repl-type switches back to clj:

Debugger entered--setting cider-repl-type in buffer *cider-repl ~/my-project:localhost:33673(cljs:shadow)* to clj: 
  debug--implement-debug-watch(cider-repl-type clj set #<buffer *cider-repl ~/my-project:localhost:33673(cljs:shadow)*>)
  cider-set-repl-type("clj")
  cider-repl--state-handler((dict "changed-namespaces" (dict) "id" "18" "repl-type" "clj" "session" "df02492d-a0c7-4553-b463-c45237d0c7c1" "status" ("state")))
  run-hook-with-args(cider-repl--state-handler (dict "changed-namespaces" (dict) "id" "18" "repl-type" "clj" "session" "df02492d-a0c7-4553-b463-c45237d0c7c1" "status" ("state")))
  nrepl-client-filter(#<process nrepl-connection> "d2:id2:182:ns17:app.camera.screen13:printed-valuei1e7:session36:df02492d-a0c7-4553-b463-c45237d0c7c15:value17:app.camera.screened2:id2:182:ns17:app.camera.screen13:printed-valuei1e7:session36:df02492d-a0c7-4553-b463-c45237d0c7c15:value17:app.camera.screened2:id2:187:session36:df02492d-a0c7-4553-b463-c45237d0c7c16:statusl4:doneeed18:changed-namespacesde2:id2:189:repl-type3:clj7:session36:df02492d-a0c7-4553-b463-c45237d0c7c16:statusl5:stateee")

bozhidar19:08:45

@yenda See the convo in #cider.

bozhidar19:08:08

Seems like a regression in shadow-cljs, but we’re not sure what caused it.