cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
588 stars 7 forks source link

Unable to start a REPL if a leiningen plugin generates files on `lein $WHATEVER` #1650

Open vandr0iy opened 7 years ago

vandr0iy commented 7 years ago

Hi cursive devs! I just added org.clojars.cvillesteele/lein-git-version plugin to my project and set its path to etc. This would mean that it'd generate a file with ~projectname.version namespace that contains various git info and put it in my ~projectroot/etc folder every time I launch lein $WHATEVER from the shell. My problem with this behaviour is the fact that if I launch lein repl from terminal it starts, while it doesn't from cursive, which says Error reading /home/me/myproject/project.clj: etc/version.clj (No such file or directory). Does cursive have different $PATH than my user's default shell?

I posted it on #cursive channel in the clojurians slack group, but I think that it should belong to here, sort of.

danielcompton commented 7 years ago

One workaround is to launch the REPL with lein repl, and then connect to it as a remote REPL. You can set this in the Run/Debug Configurations window, e.g.

screenshot of intellij idea 1-02-17 10-05-43 pm