Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clojure Core functions not resolved in CLJS files #70

Open
askonomm opened this issue Feb 27, 2022 · 3 comments
Open

Clojure Core functions not resolved in CLJS files #70

askonomm opened this issue Feb 27, 2022 · 3 comments

Comments

@askonomm
Copy link

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
Copy link
Author

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
Copy link
Author

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

Screen Shot 2022-02-27 at 14 18 10

@tonsky
Copy link
Owner

tonsky commented Feb 28, 2022

Cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants