Fork me on GitHub
#sci
<
2022-07-08
>
pmooser08:07:59

@borkdude I'm seeing something a bit confusing - sometimes, but not always, when I go to compile my cljs code, which makes use of sci.core/copy-ns, I will get an error like this:

Encountered error when macroexpanding sci.core/copy-ns.
IllegalStateException: Attempting to call unbound fn: #'sci.impl.cljs/cljs-ns-publics
There is of course a related stack trace, but I'm not sure how helpful it would be. Does this make any sense to you at all? I don't understand why this is "suddenly" not working. I saw this the other day and upgraded to 0.3.32, thinking that fixed it, but evidently I was incorrect.

borkdude08:07:30

@pmooser I've seen this too and it will go away when you clear your .shadow-cljs directory (assuming you use shadow-cljs)

pmooser08:07:22

Ahhh ... @borkdude I am indeed using shadow-cljs - is it safe for me to just blow away that whole directory, as far as you know?

pmooser08:07:40

Ok, just nuking .shadow-cljs/builds did it I think - thank you !

borkdude08:07:16

Yeah, it is safe. I'm not sure what is a better solution, but in sci.core, the cljs analyzer api loaded when you're using it from CLJS but not when using it from JVM Clojure without ClojureScript (as SCI should not depend on ClojureScript). So it's a little bit tricky. Maybe I should move copy-ns for CLJS to sci.cljs or so

pmooser08:07:05

Ah hrm ... hard to say. I'm happy to have a workaround for the moment though.