This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-18
Channels
- # adventofcode (326)
- # aws (1)
- # beginners (67)
- # cider (52)
- # cljs-dev (5)
- # cljsrn (5)
- # clojure (104)
- # clojure-art (2)
- # clojure-austin (34)
- # clojure-france (12)
- # clojure-greece (38)
- # clojure-india (2)
- # clojure-italy (6)
- # clojure-spec (11)
- # clojure-uk (32)
- # clojurescript (51)
- # core-async (5)
- # cursive (11)
- # data-science (5)
- # datascript (3)
- # datomic (3)
- # defnpodcast (7)
- # fulcro (26)
- # graphql (10)
- # hoplon (1)
- # instaparse (2)
- # jobs (1)
- # klipse (3)
- # lumo (13)
- # off-topic (50)
- # om (2)
- # onyx (19)
- # parinfer (1)
- # pedestal (4)
- # re-frame (18)
- # ring-swagger (1)
- # spacemacs (1)
- # specter (42)
- # sql (9)
- # uncomplicate (18)
- # unrepl (13)
Basic config question: how do I ensure that running leiningen tasks within Cursive/IntelliJ will pick up the environment variables set for Application or Clojure Application?
I guess I’m unsure where it’s reading from, aside from dumping (env) results to the log.
@briantrice env vars with IntelliJ are a bit annoying https://emmanuelbernard.com/blog/2012/05/09/setting-global-variables-intellij/
I use direnv and some tricks to get the output into IntelliJ but sometimes the values don’t stick.
I found some stale issues where my PATH had “$PATH” in it and some JSON was escaped for bash where IntelliJ doesn’t need it. Fun!
@briantrice That’s my bad, sorry - the lein run config needs an env vars section.
BTW re your earlier question, I’m still not quite sure what the problem is you’re suggesting a solution for. Can you give me an example of when you’d need editor support for a namespace that hasn’t been explicitly require
d?
@cfleming in the current case, I have Clojure backing an Om/ClojureScript application, and there are cases where I haven’t yet been able to make cljc code that synchronizes how callers and callees are meant to align across the implementation boundaries. Basically I need to say that “if you update a (de)serializer here, go visit there to ensure it matches”.
Ok, I see what you mean. Something like the expected/actual declarations here? https://blog.jetbrains.com/idea/2017/12/intellij-idea-2017-3-support-for-kotlin-multi-platform-projects
that is interesting! I think so?