This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-09
Channels
- # announcements (3)
- # aws (2)
- # aws-lambda (15)
- # beginners (38)
- # calva (15)
- # cider (17)
- # cljs-dev (2)
- # clojure (44)
- # clojure-dev (17)
- # clojure-spec (4)
- # clojure-sweden (1)
- # clojure-uk (8)
- # clojurescript (122)
- # cursive (19)
- # fulcro (25)
- # jobs-discuss (12)
- # nyc (3)
- # off-topic (20)
- # reagent (1)
- # rewrite-clj (4)
- # shadow-cljs (11)
- # spacemacs (65)
- # tools-deps (1)
- # vim (3)
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
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 https://clojurians.slack.com/archives/C6N245JGG/p1560103024119200
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
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)
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: https://github.com/cursive-ide/cursive/issues/2173#issuecomment-500250577