Fork me on GitHub
#cursive
<
2017-10-19
>
maikteske13:10:14

Hi, I can't get Cursive to resolve symbols from native JavaScript APIs. e.g.

(.abs js/Math -100)
or
(. js/document (getElementById "app"))
How can I get rid of these warnings without disabling them? I am using IDEA 2017.2 together with Cursive 1.6.1 Any hints?

rauh13:10:42

@maik.teske (js/Math.abs 8)

maikteske13:10:49

Thanks, that seems to work, however (js/document.getElementById "app") does not

maikteske13:10:06

nor does (. js/document (getElementById "app"))

maikteske13:10:52

nor (.getElementById js/document "app")

maikteske13:10:31

I am getting a NullPointerException when right clicking on js/document 😞

maikteske13:10:13

Worker exited due to exception
java.lang.NullPointerException
	at cursive.psi.impl.synthetic.ClJavascriptAlias.getTarget(ClJavascriptAlias.java:132)
	at cursive.psi.impl.synthetic.ClJavascriptAlias.getNavigationElement(ClJavascriptAlias.java:104)
	at com.intellij.psi.impl.light.LightElement.isValid(LightElement.java:111)

dmarjenburgh19:10:27

Hi. I have a project with both Clojure(Script) and Ruby. When I do Find Usages on a keyword, it will also list Ruby symbols in the result list. Is this a bug?

zylox20:10:11

you've unlocked ruby interop, congrats