This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-02
Channels
- # announcements (2)
- # beginners (69)
- # boot (1)
- # cider (35)
- # clara (1)
- # cljs-dev (1)
- # clojure (40)
- # clojure-spec (11)
- # clojure-uk (8)
- # clojurescript (9)
- # cursive (1)
- # datomic (5)
- # figwheel-main (25)
- # fulcro (64)
- # jobs (2)
- # jukebox (1)
- # kaocha (3)
- # off-topic (7)
- # pathom (39)
- # planck (5)
- # random (1)
- # re-frame (11)
- # reagent (8)
- # shadow-cljs (58)
- # test-check (41)
- # vim (13)
Hello, I started with clojure and spacemacs yesterday and have created an simple project
lein new project_name
When i try run cider on core.clj a bunch of warnings come out and repl does’nt start. Can anyone help me?$ lein version
Warning: implicit middleware found: refactor-nrepl.plugin/middleware
Please declare all middleware in :middleware as implicit loading is deprecated.
Warning: refactor-nrepl requires org.clojure/clojure 1.7.0 or greater.
Warning: refactor-nrepl middleware won't be activated due to missing dependencies.
Warning: implicit middleware found: cider-nrepl.plugin/middleware
Please declare all middleware in :middleware as implicit loading is deprecated.
Leiningen 2.8.3 on Java 11.0.2 Java HotSpot(TM) 64-Bit Server VM
ok. let's get rid of refactor-nrepl until we know we have a working env. I'm not sure of the state of refactor nrepl. There have been lots of changes and I'm not sure if the changes have been reflected there
I'm also surprised as a warning needing 1.7.0 or greater. are you running an older clojure? I thought i saw 1.9 in there
how can i see cider version?
this i don’t know
my suspicion is we have an old clojure somewhere and refactor-nrepl isn't playing nice
CIDER 0.21.0snapshot
My problem looks almost exactly like this. I can’t see clojure version because when i try, those errors come out https://github.com/clojure-emacs/cider-nrepl/issues/574
you can run lein deps :tree
and it will show you the dependencies involved. There's a change there's a clash between tools.nrepl and nrepl.nrepl. ( a recent low level migration that is unfortunately thorny due to how deep it is)
another easy test might be to just lein new testapp
and then try to jack into that. just to see if a clean project works and isolate this problem to dependencies in a certain project
I read this tools.nrepl thing but not understand. I will do this right now
Jarvis:/ gustavoisidio$ lein deps :tree
Warning: implicit middleware found: refactor-nrepl.plugin/middleware
Please declare all middleware in :middleware as implicit loading is deprecated.
Warning: refactor-nrepl requires org.clojure/clojure 1.7.0 or greater.
Warning: refactor-nrepl middleware won't be activated due to missing dependencies.
Warning: implicit middleware found: cider-nrepl.plugin/middleware
Please declare all middleware in :middleware as implicit loading is deprecated.
Couldn't find project.clj, which is needed for deps
yes, by the terminal
okay, will do this
ok. run lein new testapp
which should crank up a new skeleton app for you if you need
$ ls
CHANGELOG.md README.md project.clj src
LICENSE doc resources test
$ lein deps :tree
Warning: implicit middleware found: refactor-nrepl.plugin/middleware
Please declare all middleware in :middleware as implicit loading is deprecated.
Warning: implicit middleware found: cider-nrepl.plugin/middleware
Please declare all middleware in :middleware as implicit loading is deprecated.
[cider/cider-nrepl "0.10.0-20151127.123841-44"]
[org.tcrawley/dynapath "0.2.3" :exclusions [[org.clojure/clojure]]]
[clojure-complete "0.2.5" :exclusions [[org.clojure/clojure]]]
[nrepl "0.5.3" :exclusions [[org.clojure/clojure]]]
[nrepl/bencode "1.0.0"]
[org.clojure/clojure "1.9.0"]
[org.clojure/core.specs.alpha "0.1.24"]
[org.clojure/spec.alpha "0.1.143"]
[org.clojure/tools.nrepl "0.2.12"]
[refactor-nrepl "2.0.0-20160206.122040-20"]
`cider-nrepl should be version 20, not 10. Do you have a ~/profiles.clj
by any chance in your home directory?
also that tools.nrepl 0.2.12 is the old version and the nrepl "0.5.3" is the new version and they cannot peacefully coexist. we need to eradicate the tools.nrepl
Yes, i have. It’s just change my profiles.clj?
it should look like this?
{:user {:plugins [[refactor-nrepl "2.4.0-SNAPSHOT"]
[cider/cider-nrepl "0.20.0-SNAPSHOT"]]
:dependencies [[org.clojure/tools.nrepl "0.5.3"]]}}
`Thank you for saving my life
Works perfectly
So, this lines on profiles.clj was holding me in an old version of refactor, cider and tools right?
This may be useful if the updated version of those three has some problems. I’am right? And what more this profiles.clj file is for?