-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add docs for how to use ocall. #29
Comments
(In the case of this specific bug, it seems to be expanding to a dynamic call to |
Hello @LeifAndersen, I had the same problem with the js-fn? macro. But this is unrelated to your oops library issue. The problem is that [[https://cljs.github.io/api/cljs.core/js-fnQMARK][js-fn?]] (used in some namespace in oops) requires Clojurescript 1.10.844 and above. And you are most probably using an older clourescript version. Concerning the usage for ocall, for me the following worked: If that doesn't help: The above example came from a proof of concept I wrote using the p5.js library (former processing.js graphics library). I managed to make it work with figwheel-main (for hot-reloading) and even make advance |
At the time of opening this issue, I was running: 1.10.872 (I have since upgraded to 1.10.932).
I'll try it out, thanks for the suggestion. |
Right now there doesn't seem to be any docs on how to use ocall...and I can't seem to figure it out by trial and error myself.
I'm trying to translate:
(.call (oget % "getDoc") %)
to useocall
, with no success. I've tried things such as:(ocall % "getDoc")
,(ocall % "getDoc" %)
,(ocall % ("getDoc"))
,(ocall "getDoc" %)
, etc.I would imagine the first one is what I should be using. But since there's no documentation I can't tell if its breaking because I'm using it wrong, or because of some other error.
The text was updated successfully, but these errors were encountered: