Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lein not using nrepl 0.2.7 even when latter is installed #1900

Closed
flexibeast opened this issue May 16, 2015 · 4 comments · Fixed by #2261
Closed

lein not using nrepl 0.2.7 even when latter is installed #1900

flexibeast opened this issue May 16, 2015 · 4 comments · Fixed by #2261
Labels

Comments

@flexibeast
Copy link

lein version reports

Leiningen 2.5.1 on Java 1.7.0_79 OpenJDK 64-Bit Server VM

My ~/.lein/profiles.clj looks like:

{:user {:dependencies ^:replace [[org.clojure/tools.nrepl "0.2.7"]]
        :plugins [[cider/cider-nrepl "0.9.0-SNAPSHOT"]
                  [lein-pprint "1.1.1"]]}}

and indeed, ~/.m2/repository/org/clojure/tools.nrepl/ contains 0.2.7/tools.nrepl-0.2.7.jar and 0.2.7/tools.nrepl-0.2.7.jar.sha1. However, running lein repl from ~/ still produces:

nREPL server started on port 57962 on host 127.0.0.1 - nrepl://127.0.0.1:57962
REPL-y 0.3.5, nREPL 0.2.6
Clojure 1.6.0

i've come across this issue whilst trying to upgrade nREPL for CIDER 0.9.0snapshot. In this SO thread about trying to upgrade to nrepl-0.2.7, one user says that the dependency is only enabled by lein if one is running lein repl from within a Clojure project. Is this the intended behaviour? Or might there be something wrong with the rest of my setup, such that the :dependencies vector in ~/.lein/profiles.clj is effectively ignored?

@tonyarkles
Copy link

I'm experiencing the same problem. From my debugging so far, it looks like lein itself depends on nrepl 0.2.6 and I haven't figured out a good way to override that yet. Still experimenting.

@tonyarkles
Copy link

@flexibeast to keep things a bit more isolated, I added a profiles.clj alongside my project.clj with:

{:dev {:dependencies [[org.clojure/tools.nrepl "0.2.10"]]}} in it to solve it. I agree that this seems pretty broken though.

@cch1
Copy link

cch1 commented Jul 14, 2015

We're seeing the same problem. Any suggestions on moving forward short of @tonyarkles' approach (which seems a bit hacky -and I write that with much respect)?

@abbioro
Copy link

abbioro commented Jul 15, 2015

I think this is part of the larger problem where none of the dependencies or plugins in ~/.lein/profiles.clj are merged unless you run lein repl from a project (i.e., a directory with project.clj).

See #1901

@hypirion hypirion added the bug label Jul 25, 2015
technomancy added a commit that referenced this issue Mar 28, 2017
This addresses the problems seen in #1900 and #1901. It doesn't fix
them because they can't be fixed without breaking other things,
(technomancy/grenchman#34) but at least it
lets people know what is going on and suggests a workaround.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants