Fork me on GitHub
#cursive
<
2022-10-28
>
kwladyka19:10:17

anyone find a way to use .envrc with Cursive?

nwjsmith21:10:26

It would probably be simple to add support to https://github.com/Fapiko/intellij-better-direnv

nwjsmith21:10:49

I haven't been using it for Clojure projects, but works great in my other ones

cfleming22:10:47

I’m not sure if this is the same thing, but Cursive does support https://github.com/Ashald/EnvFile

kwladyka10:10:59

Better direnv didn’t work for me for Cursive.

onetom12:10:21

better direnv needs every kind of run configuration supported by it and Cursive is not yet supported. i use direnv to have a nix-shell environment for our Clojure projects, but what IntelliJ and the REPLs started from it, should be concerned about is only a few things, so in practice, I just setup the following manually: 1. clojure CLI path (`which clojure`) 2. JDK path (`which java`) 3. node & npm or yarn (`which node`)