Fork me on GitHub

I am curious how others are running a clojurescript repl. I follow the instructions and started a clojurescript REPL. When I load a file into this repl it complains that the dependencies are not loaded. If there is a file with no dependencies ( from my repo ) it works fine. So I am wondering why this repl is not loading all the files in my source tree ? might be something really dumb, but can't seem to figure it


what instructions are you working with just so I can help troubleshoot?


i actually was reading off the cursive slack channel from about a day ago where someone was asking same question


I got a CLJS repl started by using Templates / Clojure REPL / Local in the add a configuration section


then i selected clojure.main as the (Which type of repl to run ) and i picked for How to Run it => ( Run with deps ) option


then i tried Run with intellij project classpath for the option ( How to Run it )


and that not work either


don't get me wrong, the repl works as a repl ( where you type stuff in there ) But it does not load all the files in the working dir


unless there are no other dependencies to anything else ( because it can't find those other namespaced packages )


I'm wondering if I'm experiencing the same thing trying to import react dependencies using shadow? works fine in vscode but using cursive I get an error. Here's my post on #shadow-cljs


cool so I might be totally wrong about this, as I was encountering the same issue like a year or two ago when I was diving into cljs and getting it to work with cursive


basically, the crux of it is that cursive doesn’t actually maintain a cljs repl for you


you need to start it with some other tool like figwheel, shadow-cljs, lumo, etc and connect to it in your normal clj repl


once you run whatever your connect-to-cljs-repl function in a normal clj repl, cursive will pick up on the fact that it’s a cljs repl going forward and you’ll be good to go


so for example in a project I’m working on right now, my cljs code is built with shadow-cljs


I’ll start a process with shadow-cljs watch my-build, switch over to cursive and fire up a normal clj repl in clojure.main. I’ve added a repl command using Tools -> REPL -> Edit REPL Commands called connect-to-browser which runs (shadow.cljs.devtools.api/repl :my-build)


does that help?


boy that is very interesting .. and helpful. i will try that and let you know what happens .. thanks for idea


Good news for those suffering from the random symbol resolution problem - it’s been confirmed as a problem in the IntelliJ platform:

🎉 24