Closed achikin closed 5 years ago
Same here
There is a similar issue opened somewhere, also with fighweel. Till a simple project where this could be reproduced emerges I don't think there are hopes for fixing this.
@achikin can you reproduce with https://github.com/bhauman/figwheel-main/blob/master/README.md#try-figwheel-with-flappy-bird
I was using that without glitches with cider master last weekend.
In case you do, another thing that could be beneficial to see is the $HOME/.lein/profile.clj
@arichiardi let me try. I think I forgot to mention that it's Spacemacs.
@arichiardi I've re-installed Spacemacs and everything works as expected. Reproducible builds ¯ \ (ツ) / ¯
I just hit this issue as well. It seems the Clojure REPL hangs while the ClojureScript one is in the pending state.
I'm using Cider's connect
rather than jack-in
, my project.clj file has the figwheel-main
, cider/piggieback
and nrepl
dependencies, the cider/cider-nrepl
plugin, and cider.piggieback/wrap-cljs-repl
configured. I'm also serving the cljs app from the clj one and not figwheel-main's server!
This ends up in a deadlock where the cljs repl is pending a connection from the browser, the browser is waiting for the app server to come online, and the app server's repl hangs while the cljs one is pending a connection.
Fortunately, figwheel-main's default index also connects to the REPL; opening the domain part of the connect url in the browser unlocks both REPLs. However, for some unknown reason both the clj and cljs REPLs get swapped, without their current namespaces changing. Things work fine once I change those current namespaces back.
(I tried reinstalling Spacemacs, but it didn't work!)
Is there a solution for this?
Expected behavior
Both clj and cljs repls process input correctly
Actual behavior
clj
repl hangs on any command.[== ]
"progress bar" is running indefinitely, no output produced.Steps to reproduce the problem
cider-jack-in-clj&cljs
clj
repl(+ 1 1)
This does not happen if I use
cider-jack-in
instead ofcider-jack-in-clj&cljs
UPD:
cider-jack-in-clj
cider-jack-in-cljs
UPD2:
cider-jack-in-clj
cider-connect-sibling-clojurescript
UPD3:
Tried to switch to
figwheel-main
instead offigwheel
as a cljs repl type. Got a messageFigwheel-main is not available. Please check [cider docs link]
UPD4:
Managed to set up
figwheel-main
. The same issue persists - as soon ascljs
repl starts -clj
repl hangs.Environment & Version information
CIDER version information
Lein/Boot version
Leiningen 2.8.1 on Java 1.8.0_20 Java HotSpot(TM) 64-Bit Server VM
Emacs version
GNU Emacs 26.1
Operating system
MacOS Mojave 10.14.1