Fork me on GitHub
Piotr Brzeziński18:01:48

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: 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"]]

Piotr Brzeziński18:01:54

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.

Piotr Brzeziński18:01:08

ohhh, that makes a lot of sense, haha

Piotr Brzeziński18:01:26

What (simple?) alternative should I be using then?


depends on what "simple" means to you and what you want to do 🙂

Piotr Brzeziński18:01:20

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

Piotr Brzeziński18:01:10

Is there something I can use with lein-generated project?

Piotr Brzeziński18:01:28

Gotcha. Thank you 🙂.

Piotr Brzeziński18:01:17

Oh, I was able to get what I need with lein trampoline cljsbuild repl-listen . Good stuff, thank you 🙂