-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
CIDER's version (0.12.0) does not match cider-nrepl's version (nil) #1728
Comments
Do you have any other plugin under the user profile? |
Yes, here they are: |
Just exploring the possibilities here. Could you try removing your profiles.clj file completely? |
Thank you for your help. The problem turned out to be the [lein-gorilla "0.3.6"] plugin. |
They used to bundle some version of |
I'm seeing the same error message upon (deftask cider "CIDER profile"
[]
(require 'boot.repl)
(swap! @(resolve 'boot.repl/*default-dependencies*)
concat '[[org.clojure/tools.nrepl "0.2.12"]
[cider/cider-nrepl "0.12.0"]
[refactor-nrepl "2.2.0"]])
(swap! @(resolve 'boot.repl/*default-middleware*)
concat '[cider.nrepl/cider-middleware
refactor-nrepl.middleware/wrap-refactor])
identity) Looking into |
Update: i tried removing refactor-nrepl references in the above, and still get the same error message. Any suggestions for fixing this please? Thanks in advance. |
How are you starting the repl? Are there any other tasks being used? What's the content of your |
Hi @Malabarba,
...plus a lot more stuff, too long to put here (unless you think it would help). |
Here's the problem:
nrepl version should be 0.2.12. It's possible one of your other tasks is conflicting here. |
Or, better, just make sure you have |
@Malabarba Thanks a lot for the quick help, doing |
Fwiw, I had the same problem when using Leiningen. Running
Bumping Clojure from 1.6.0 to 1.8.0 in my project.clj did the trick. I don't get those error messages from Cider after |
Thanks. Glad that the message helped you solve the problem. |
Hi everyone, Google led me here since I seem to be having a similar problem. The message that my cider env throws is
Here are the relevant contents of my NOTE : the error message is thrown once I include :dependencies '[[org.clojure/clojure "1.9.0-alpha17"]
[adzerk/boot-test "RELEASE" :scope "test"]
;; Matrix stuff
[net.mikera/core.matrix "0.60.3"]
[net.mikera/vectorz-clj "0.47.0"]
;; Asynchronous stuff
[org.clojure/core.async "0.3.443"]
;; Pattern matching in clojure
[org.clojure/core.match "0.3.0-alpha5"]
;; Typed clojure
;; TODO Creates an issue with cider's nrepl - probably transitive dependency
;[org.clojure/core.typed "0.4.0"]
;; TODO Middleware - might help to mitige the cider error caused by core.typed
;[org.clojure/tools.nrepl "0.2.12" :scope "test"]
;; MiniKanren
[org.clojure/core.logic "0.8.11"]
;; Clojure reader in clojure
[org.clojure/tools.reader "1.0.5"]
;; Shell library
[me.raynes/conch "0.8.0"]])
I've tried to remedy it with a (require 'boot.repl)
(swap! boot.repl/*default-dependencies*
concat '[[cider/cider-nrepl "0.15.1-SNAPSHOT"]])
(swap! boot.repl/*default-middleware*
conj 'cider.nrepl/cider-middleware)
Sadly, this doesn't seem to be working 😞 |
I'm seeing the same thing using leiningen. When I remove my dependency on core.typed from the project, everything is fine. Otherwise, I see the same error from CIDER. |
@jmckitrick Likely some bad interaction with |
I am using the latest melpa-stable release of cider on a clean install
of emacs 24.5.1 on ubuntu 16.04.
When I cider-jack-in I get:
;; CIDER 0.12.0 (Seattle), nREPL 0.2.12
;; Clojure 1.7.0, Java 1.8.0_03-Ubuntu
WARNING: CIDER's version (0.12.0) does not match cider-nrepl's version (nil). Things will break!
So I figured I'd do this manually (following the docs):
(setq cider-inject-dependencies-at-jack-in nil)
then add
{:repl {:plugins [[cider/cider-nrepl "0.12.0"]]}} to ~/.lein/profiles.clj
No, that doesn't work either. Same warning.
But if I add the plugin to :user instead of :repl (which the docs say
I shouldn't do "as this way CIDER's middleware will always get loaded,
causing lein to start slower), I avoid the warning.
If the plugin is in :user, it doesn't matter whether cider-inject-dependencies-at-jack-in
is nil or not, the warning is gone.
I should also note that the same happens on windows 7-64 bit, but I don't really care.
The text was updated successfully, but these errors were encountered: