Hi. I’ll allow myself to repost a question I posted in #beginners early today and didn’t get an answer, maybe somebody over here will be able to help me out cause it made me stuck with my learning. Thanks in advance!
Following the "Living Clojure" I've ran into another issue that I'm unable to resolve. I am setting up clojurescript in my project and I was asked to run lein trampoline cljsbuild repl-rhino in my project root. It downloaded bunch of things and then failed when trying to build (I suppose?)
Exception in thread "main" Syntax error compiling at (cljsbuild/repl/rhino.clj:1:1).
.....
Caused by: java.io.FileNotFoundException: Could not locate cljs/repl/rhino__init.class, cljs/repl/rhino.clj or cljs/repl/rhino.cljc on classpath.
does rhino have to be added as one of dependencies/plugins? My deps look like that
:dependencies [[org.clojure/clojure "1.10.0"]
[compojure "1.6.1"]
[ring/ring-defaults "0.3.2"]
[ring/ring-json "0.5.0"]
[org.clojure/clojurescript "1.10.764"]]
My lein version is 2.9.1 on java 13.0.2
the rhino repl doesn't exist anymore. maybe try using an older clojurescript version.
ohhh, that makes a lot of sense, haha
What (simple?) alternative should I be using then?
depends on what "simple" means to you and what you want to do 🙂
I’m not yet sure what I want to be able to do. Rhino was suggested as a “simple” repl (whatever they had in mind) in the book I’m following. I suppose I just need to be able to run execute some simple forms.
if you have node/npm
installed npx create-cljs-project foo
then cd foo
npx shadow-cljs node-repl
Is there something I can use with lein-generated project?
Gotcha. Thank you 🙂.
Oh, I was able to get what I need with lein trampoline cljsbuild repl-listen
. Good stuff, thank you 🙂