cursive-ide / cursive

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

Doesn't seem to check local-repo for jar when starting REPL #663

Closed fraburnham closed 9 years ago

fraburnham commented 9 years ago

I'm trying to include a simple tree representation that I wrote in java as part of my clojure project. It works perfectly when using lein on the command line, but cursive can't find the dependency and fails.

My project.clj (defproject fp-growth "0.1.0-SNAPSHOT" :description "Frequent Pattern Growth implementation" :url "http://github.com/fraburnham/fp-growth" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :local-repo "local-maven-repo" :dependencies [[org.clojure/clojure "1.6.0"] [Tree/Tree "0.1.0"]])

lein version: Leiningen 2.4.3 on Java 1.7.0_65 OpenJDK 64-Bit Server VM

IntelliJ IDEA version: 13.1.6 Build # IC-135.1306

Cursive version: 0.1.42

cursive-ide commented 9 years ago

Yes, this is an issue because Cursive invokes lein in-process and in Java you can't change the CWD of the current process. So Aether will look for the local repo relative to the CWD of the IntelliJ process, which is not what you want. The only workaround right now is to use an absolute path in the :local-repo config. This is being tracked in #572 and #573, so I'll close this one.