This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-01
Channels
- # announcements (1)
- # aws (3)
- # beginners (150)
- # boot (12)
- # calva (7)
- # carry (3)
- # cider (1)
- # clara (51)
- # cljdoc (17)
- # cljs-dev (17)
- # cljsrn (1)
- # clojure (64)
- # clojure-austin (2)
- # clojure-india (1)
- # clojure-italy (10)
- # clojure-nl (4)
- # clojure-spec (42)
- # clojure-uk (63)
- # clojurescript (24)
- # core-async (23)
- # cursive (6)
- # datascript (7)
- # datomic (5)
- # figwheel-main (43)
- # fulcro (74)
- # hoplon (7)
- # kaocha (30)
- # leiningen (32)
- # mount (51)
- # nrepl (34)
- # off-topic (29)
- # re-frame (6)
- # reagent (10)
- # reitit (13)
- # shadow-cljs (66)
- # slack-help (3)
- # spacemacs (2)
- # specter (5)
- # sql (2)
- # tools-deps (51)
- # yada (13)
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?
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
Maybe we can do something like (def React ^js/React (js/require "react"))
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?
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?