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
I thought googling this would turn up some answers but I have not been very successful, any pointers greatly appreciate
@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
Here is the full stack: https://pastebin.com/XHbpkrqW
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
one sec
Put all strings in vectors, now getting this: Syntax error (FileNotFoundException) compiling at (cljsbuild/repl/rhino.clj:1:1).
Am I expected to install rhino separately?
I'd expect it to be a dep
I am still stamped, here is my project.clj: https://pastebin.com/XrKBKkkb
Still getting this: https://pastebin.com/afDCShCR
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
ouch
The other alternative was to downgrade to a version with rhino