This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-27
Channels
- # bangalore-clj (1)
- # beginners (11)
- # boot (23)
- # business (2)
- # cider (43)
- # cljs-dev (65)
- # cljsjs (17)
- # cljsrn (4)
- # clojure (144)
- # clojure-austin (4)
- # clojure-berlin (3)
- # clojure-finland (4)
- # clojure-nl (2)
- # clojure-russia (13)
- # clojure-spec (73)
- # clojure-uk (42)
- # clojured (2)
- # clojurescript (166)
- # core-matrix (4)
- # cursive (24)
- # datomic (39)
- # dirac (8)
- # hoplon (97)
- # jobs (2)
- # jobs-rus (11)
- # juxt (16)
- # lein-figwheel (8)
- # leiningen (1)
- # luminus (5)
- # lumo (46)
- # off-topic (1)
- # om (39)
- # onyx (43)
- # overtone (1)
- # pedestal (3)
- # perun (6)
- # play-clj (3)
- # protorepl (14)
- # re-frame (21)
- # reagent (25)
- # remote-jobs (1)
- # ring (1)
- # robots (4)
- # rum (13)
- # specter (5)
- # untangled (72)
- # yada (62)
@cfleming what about using this? https://github.com/google/closure-compiler/tree/master/externs
I’ll check the TypeScript ones, there’s potential I might be able to use the types if present. Looks like Closure uses jsdoc types though.
@cfleming any chance you could comment on https://github.com/cursive-ide/cursive/issues/711?
@dm3 Sure - so yes, Cursive understands Potemkin. There’s a hack you can use if the import-vars there works like Potemkin’s.
Cursive contains functionality to treat some forms in the same way as some existing form: https://cursive-ide.com/userguide/macros.html
Currently that has a hard-coded list of forms that you can resolve as, but under the hood it can be anything.
hm, I’m still confused - do I have to do anything special to make Cursive recognize imported vars the same way it does the original ones?
In the meantime, you can hack your resolve config file as discovered by @favila here: https://github.com/cursive-ide/cursive/issues/1440#issuecomment-232776904
If you modify the config file to treat clojure.java-time/import-vars (or whatever the var is) as potemkin/import-vars (or whatever that one is, I don’t have the code right here)...
Could you create a new issue for that so it’s not mixed with the intern issue, and put the full clojure.java-time var in there, and I’ll add that?