Clojure-Sublimed icon indicating copy to clipboard operation
Clojure-Sublimed copied to clipboard

Clojure Core functions not resolved in CLJS files

Open askonomm opened this issue 3 years ago • 3 comments

Hi! Love this project btw, and to my surprise, ClojureScript actually seems to work - albeit, in a bit of a tricky way. For example, it seems that Clojure Sublimed cannot resolve Clojure Core functions on its own, but will work just fine when I call them with the full namespace.

Take this example, which does not work: Screen Shot 2022-02-27 at 14 04 00

Whereas this example does work, because I'm calling the + with a full namespace: Screen Shot 2022-02-27 at 14 03 48

askonomm avatar Feb 27 '22 13:02 askonomm

On further investigation it seems it's because in CLJS core functions are actually in cljs.core namespace, not clojure.core, and so cljs.core does not work at all, but if I explicitly call the JVM clojure namespace, it works.

askonomm avatar Feb 27 '22 13:02 askonomm

And if I attempt to load cljs.core namespace I get this error instead:

Screen Shot 2022-02-27 at 14 18 10

askonomm avatar Feb 27 '22 13:02 askonomm

Cool!

tonsky avatar Feb 28 '22 17:02 tonsky