Fork me on GitHub
#cider
<
2018-05-03
>
gastove05:05:59

How... does cider decide whether or not CLJS is supported?

gastove05:05:50

I have a CLJ/CLJS project which does use figwheel; I've updated to the cider cut of piggieback. And yet, when I try to jack in to a CLJS repl, I always get ClojureScript is not available.

gastove05:05:00

Is there.... a toggle I need to fiddle with?

gastove05:05:38

lein figwheel starts right up for me in the console, for what it's worth

gastove05:05:50

...aha:

Set up Figwheel as normal, but make sure :cljsbuild and :figwheel settings are in the root of your Leiningen project definition.

gastove05:05:06

Didn't spot that my first pass through the docs.

gastove05:05:51

Bleh, but it doesn't change anything.

andrea.crotti09:05:59

mm don't think I had that issue @gastove you could try to do a cider-jack-in-clojure and then evaluate the commands to start figwheel in the CLJ repl

andrea.crotti09:05:22

see if that works first

dpsutton11:05:53

you can set cider-check-cljs-repl-requirements to nil and see if it works without the check

dpsutton11:05:39

someone recently needed to do this. i think it may java 9 or java 10 thing. i'm not remembering exactly. but it will at least let your app succeed or fail on its own merits

bozhidar12:05:20

That bug was fixed on master, though.

bozhidar12:05:43

So CIDER simply checks that the libraries required by the various REPLs are on the classpath.

bozhidar12:05:20

clojurescript is a requirement for all REPLs, piggieback for everything except shadow-cljs, etc.

gastove17:05:37

I think I've got all the requirements set properly, but possibly my installed version of cider is behind?

gastove17:05:55

I am on Java 10, so that could be the thing.

gastove17:05:31

My cider version is:

gastove17:05:35

CIDER 0.17.0snapshot (package: 20180430.444)

gastove17:05:19

I think that's the most current.

gastove17:05:00

Huh, yep. Setting cider-check-cljs-repl-requirements to nil and then jacking in appears to be working; I don't have the time right now to actually do any development, but my Figwheel repl is up and running, connected to the browswer, and seems to be evaluating CLJS in a perfectly civil manner.

gastove17:05:40

As soon as I can find the time, I'll try to dig in, see what specifically cider-library-present-p is failing on.

gastove18:05:13

Yep. It sure can't find ClojureScript.

gastove18:05:55

Which is... surprising to me

gastove18:05:22

$ find ~/.m2 -name "clojurescript*.jar"
/home/rdonaldson/.m2/repository/org/clojure/clojurescript/1.10.238/clojurescript-1.10.238.jar
/home/rdonaldson/.m2/repository/org/clojure/clojurescript/1.10.191/clojurescript-1.10.191.jar
/home/rdonaldson/.m2/repository/org/clojure/clojurescript/1.10.126/clojurescript-1.10.126.jar

gastove18:05:47

Also to my surprise, calling cider-classpath returns an empty buffer?