This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-17
Channels
- # announcements (8)
- # atom-editor (8)
- # aws (1)
- # babashka (96)
- # beginners (128)
- # calva (7)
- # cider (12)
- # cljsrn (1)
- # clojure (75)
- # clojure-europe (28)
- # clojure-hamburg (2)
- # clojure-italy (7)
- # clojure-nl (7)
- # clojure-norway (3)
- # clojure-uk (13)
- # clojurescript (26)
- # conjure (2)
- # cursive (18)
- # data-science (7)
- # datalog (21)
- # datomic (9)
- # duct (15)
- # expound (29)
- # figwheel-main (14)
- # fulcro (59)
- # helix (4)
- # jobs (2)
- # kaocha (19)
- # leiningen (15)
- # luminus (4)
- # malli (57)
- # meander (2)
- # off-topic (2)
- # pathom (12)
- # pedestal (8)
- # re-frame (53)
- # reitit (9)
- # remote-jobs (1)
- # shadow-cljs (64)
- # spacemacs (1)
- # specter (2)
- # tools-deps (12)
- # tree-sitter (2)
- # vim (11)
- # xtdb (17)
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: #' 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
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
it's worth asking for more info on #clojurescript but I think the best bet is to pick a different js runtime (eg. node...)
one sec
it's worth asking for more info on #clojurescript but I think the best bet is to pick a different js runtime (eg. node...)
The other alternative was to downgrade to a version with rhino