leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
Mark Gerard 2020-08-17T13:39:31.003500Z

Hey, I am getting a strange coercion error when i run lein trampoline cljsbuild repl-rhino:

java.lang.IllegalArgumentException: No implementation of method: :as-file of protocol: #'<http://clojure.java.io/Coercions|clojure.java.io/Coercions> found for class: java.lang.Character

Mark Gerard 2020-08-17T13:39:52.004100Z

I thought googling this would turn up some answers but I have not been very successful, any pointers greatly appreciate

2020-08-17T13:45:45.005700Z

@cattabanks do you have a full stack trace? sounds like something wanted ["/path/to/a/file"] and got "/path/to/a/file" - so when it seqs on its input it gets characters instead of strings, and characters can't be mapped to files

Mark Gerard 2020-08-17T13:46:34.005900Z

Here is the full stack: https://pastebin.com/XHbpkrqW

2020-08-17T13:50:35.006800Z

so this is happening in the prep-tasks of cljsbuild, I'd look for file strings that are not inside vectors in your config, as a first stab at this

Mark Gerard 2020-08-17T13:51:29.007100Z

one sec

Mark Gerard 2020-08-17T13:55:39.007200Z

Put all strings in vectors, now getting this: Syntax error (FileNotFoundException) compiling at (cljsbuild/repl/rhino.clj:1:1).

Mark Gerard 2020-08-17T13:56:13.007600Z

Am I expected to install rhino separately?

2020-08-17T14:00:38.007800Z

I'd expect it to be a dep

Mark Gerard 2020-08-17T14:12:59.008Z

I am still stamped, here is my project.clj: https://pastebin.com/XrKBKkkb

Mark Gerard 2020-08-17T14:13:55.008200Z

Still getting this: https://pastebin.com/afDCShCR

2020-08-17T14:20:56.008400Z

cljs removed rhino (I think I recall this being an intentional decision) https://cljs.github.io/api/cljs.repl.rhino/-main - this shows the first cljs version that has the rhino ns, and the first that doesn't

Mark Gerard 2020-08-17T14:24:27.008600Z

ouch

Mark Gerard 2020-08-17T19:19:22.009800Z

The other alternative was to downgrade to a version with rhino