-
Notifications
You must be signed in to change notification settings - Fork 7
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
js/*
completion does not work with react native js runtime
#31
Comments
Most likely not. Anyway what is a "react native runtime"? Where does it run (a phone, an emulator, sth else)? Where can I learn about its shadowcljs integration? The key question is - does https://github.com/nrepl/piggieback provide an "env" akin to |
I was testing on an iphone simulator. The runtime is named javascript core: https://reactnative.dev/docs/javascript-environment. also cc @PEZ I opened an issue here. |
I just tried with this project https://github.com/PEZ/rn-rf-shadow There is no completion on the The repl message log has this:
|
Well that doesn't seem too bad, at least you're getting completions for cljs.core etc, right? |
No, it is not too bad. All ClojureScript stuff works. Just a bit less on the JS side, where at least I get some completions in regular node and browser projects. |
Taking a look at Perhaps in for most js runtimes, the cljs analyzer creates a i.e. we're using an abstraction which would break here. Merely an hypothesis though. |
I'd be happy to take over a PR that introduced the following:
Without those, it's very much unlikely that this issue will get spontaneously fixed - I don't do cljs dev nowadays, much less RN dev. Maintenance is scarce in this project. However as said I'd quite happily pick up said PR and hunt for the actual issue. |
js/*
completion does not work with react native js runtime
As one last note, the https://github.com/clojure-emacs/clj-suitable/blob/8ec4258709d3a41f3cdd51c646674e0dba80219d/src/main/suitable/js_introspection.cljs cljs namespace is very much self-contained, see its You should be able to run it for the RN runtime and check if e.g. |
Thanks! Yeah, self-contained indeed. I played around with that yesterday for an unrelated thing. |
@vemv That returns very similar stuff to what I get in the browser. |
I can get completions with browser runtime, but no luck with react native runtime.
Wanna confirm if react native is supported here.
I am on Calva with shadowcljs.
The text was updated successfully, but these errors were encountered: