Fork me on GitHub
#cursive
<
2017-12-18
>
briantrice22:12:06

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?

briantrice22:12:23

I guess I’m unsure where it’s reading from, aside from dumping (env) results to the log.

briantrice22:12:49

I use direnv and some tricks to get the output into IntelliJ but sometimes the values don’t stick.

briantrice22:12:10

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!

cfleming23:12:17

@briantrice That’s my bad, sorry - the lein run config needs an env vars section.

cfleming23:12:19

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 required?

briantrice23:12:47

@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”.

briantrice23:12:50

that is interesting! I think so?