Fork me on GitHub
#cursive
<
2018-11-01
>
frankiesardo00:11:47

Hello folks. I remembered at one point Cursive used to pick up js externs when I was using dot syntax in ClojureScript. Now I am in a new project and I have some cljs like foo.bar.baz and I don't know how to make Cursive not highlight it as a warning. Any help or link to a faq/doc that can point me in the right direction?

frankiesardo00:11:09

It seems to work only on global window objects like js/ReactNative.Text but not from js object defined in another namespace

(ns my.ns) (def ReactNative (js/require "react-native")) (ns other.ns (:require [my.ns :as my])) my/ReactNative.Text ;; <- gives warning

frankiesardo00:11:33

Maybe we can do something like (def React ^js/React (js/require "react"))

frankiesardo00:11:48

Also, when infer externs is set to true, aren't most of the infer generated automatically? Can Cursive ignore the warming when the extern is generated?

dazld15:11:37

did you try invalidating caches?

tanzoniteblack16:11:56

ctrl + {left, right} seem to work oddly in strings (i.e. I would expect it to jump to the end of the word if I hit ctrl + right, but instead it jumps to the end quote of the string. Is there a way I can alter this behavior?