This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-08
Channels
- # architecture (8)
- # beginners (78)
- # boot (20)
- # cider (81)
- # clara (53)
- # cljdoc (10)
- # cljsjs (3)
- # clojure (55)
- # clojure-boston (1)
- # clojure-dev (25)
- # clojure-nl (3)
- # clojure-uk (65)
- # clojurescript (65)
- # core-async (1)
- # cursive (41)
- # data-science (4)
- # datomic (16)
- # editors (74)
- # emacs (17)
- # events (1)
- # figwheel (3)
- # hyperfiddle (39)
- # immutant (16)
- # jobs-discuss (62)
- # juxt (2)
- # keechma (2)
- # leiningen (6)
- # mount (7)
- # nrepl (1)
- # off-topic (30)
- # onyx (14)
- # protorepl (2)
- # re-frame (4)
- # reagent (15)
- # reitit (19)
- # shadow-cljs (102)
- # sim-testing (1)
- # spacemacs (44)
- # specter (15)
- # tools-deps (50)
- # vim (2)
Hi all, I am trying to jack in to the latest Cider from a project using :pedantic? :abort
and I am getting the following errors:
Starting nREPL server via lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.13\"\ \:exclusions\ \[org.clojure/clojure\]\] -- update-in :plugins conj \[refactor-nrepl\ \"2.4.0-SNAPSHOT\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.18.0-SNAPSHOT\"\] -- repl :headless :host ::...
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: Possibly confusing dependencies found:
[org.clojure/tools.nrepl "0.2.13" :exclusions [org.clojure/clojure]]
overrides
[org.clojure/tools.nrepl "0.2.12" :exclusions [org.clojure/clojure]]
Consider using these exclusions:
Aborting due to :pedantic? :abort
I am guessing the tools.nrepl “0.2.12” is coming from leiningen itself?
I have had not luck excluding it. Anyone have any ideas?One option for you would be to override cider-jack-in-dependencies
(the list of deps that get auto-injected).
I personally use pedantic just from time to time to audit the state of deps, but I don’t run every single command with it.
Too much noise, like this example you outlined - clearly this was done on purpose to supply a newer version of the library.
when is cider 0.18.0 planned to be released? Is it relatively soon or some way off?
@rickmoynihan Relatively soon, but there’s no concrete date for this. @vspinu asked for a bit more time to collect feedback about the new connection management system and improve it, before we cut the release.
Generally nothing more is planned for it. Adding the support for nREPL 0.4 was the final big item on the todo list.
I’d love to also incorporate @gonewest818’s improved handling of big responses, but it’s unlikely this will make it in 0.18.
thanks @bozhidar … how usable is the current melpa (non -stable
) build? And what needs to be done to update to it? Do I just unpin cider and clojure-mode, M-x package-install cider / clojure-mode
and bump cider/cider-nrepl
to 0.18.0-SNAPSHOT
in my profiles.clj?
btw amazing job :thumbsup: on keeping the CHANGELOG updated for master https://github.com/clojure-emacs/cider/blob/master/CHANGELOG.md#master-unreleased
I think it’s pretty usable. I would have probably declared it stable if Vitalie didn’t insist on squeezing more work into it.
Since a few days ago my emacs completely freezes up when doing cider-jack-in
after Direct connection to localhost:58363 established
The only way to regain control is to kill the emacs process. Running the repl from the command line and using cider-connect
works however
Incase it helps, heres what jack-in is doing
Starting nREPL server via clojure -A:dev:build:dev/cljs -Sdeps '{:deps {org.clojure/tools.nrepl {:mvn/version "0.2.13"} com.billpiel/sayid {:mvn/version "0.0.16"} refactor-nrepl {:mvn/version "2.4.0-SNAPSHOT"} cider/cider-nrepl {:mvn/version "0.18.0-SNAPSHOT"}}}' -e '(require (quote cider-nrepl.main)) (cider-nrepl.main/init ["com.billpiel.sayid.nrepl-middleware/wrap-sayid", "refactor-nrepl.middleware/wrap-refactor", "cider.nrepl/cider-middleware"])'...
try it without refactor nrepl and sayid. I believe there is a release of refactor-nrepl that plays nice. I haven't heard anything about sayiid
Seems to be spacemacs, is it possible to edit the clojure layer to stop those thing being injected when I do cider-jack-in? Sorry I’m new to all of this stuff
@alex395 There was a whole load of stuff a couple of days ago. Sorry, I don't remember the details, I'm not a spacemacs user, but if you scroll back a bit I think you might find some helpful stuff.
refactor-nrepl
, should work now. In this instance likely the problem is caused solely by sayid
. I’ve opened a PR for it, but it hasn’t been merged yet.
I used C-c C-p more often than I used C-x C-e the new format is having an impact, of course I can change it back
Yeah, @plexus also mentioned it. Didn’t know people were using this so much. After I’ve reverted the conflicting change in Projectile I can bring this back.
I’m not sure how I get the latest version of refactor-nrepl tbh. should it just download the latest?
Although a bit annoying to not have clj refactor anymore.. Guess its just until they update things
A few people already reported that the latest snapshot works fine for them with CIDER 0.18 and nREPL 0.4.
@alex395 try enabling the cljr-inject...
var and see if it still freezes. like said above, a new release has been cut
Still get a freeze when I enable cljr, I’m using CIDER 0.18 although I’m not entirely sure I’m using nREPL 0.4, can’t see it in my deps.edn
It will use it by default, but if it seems that nREPL 0.2.x is already loaded (e.g. because you did lein repl
, it will use nREPL 0.2 instead.
spacemacs develop branch: https://github.com/syl20bnr/spacemacs/blob/develop/layers/+lang/clojure/packages.el
And here’s a ticket which verifies that it works https://github.com/clojure-emacs/cider/issues/2399
Hmm this is what I get
[nREPL] Starting server via /usr/local/bin/clojure -A:dev:build:dev/cljs -Sdeps '{:deps {org.clojure/tools.nrepl {:mvn/version "0.2.13"} refactor-nrepl {:mvn/version "2.4.0-SNAPSHOT"} cider/cider-nrepl {:mvn/version "0.18.0"}}}' -e '(require (quote cider-nrepl.main)) (cider-nrepl.main/init ["refactor-nrepl.middleware/wrap-refactor", "cider.nrepl/cider-middleware"])'...
[nREPL] server started on 55686
[nREPL] Establishing direct connection to localhost:55686 ...
[nREPL] Direct connection to localhost:55686 established
Not sure what the deps are there, but you need the latest and greatest piggieback, figwheel, shadow, etc.
re. what is injecting sayid. just like with the other packages the emacs package has some code injecting it the same way as cljr
I tested this same invocation command myself and CIDER works just fine with the latest refactor-nrepl.
We can ask the author to transfer it to our org, but I’m not maintaining one more project. 😄
I noticed that my dir-locals aren’t working now
((clojure-mode
(cider-clojure-cli-global-options . "-A:server:dev")))
could that be related to the latest snapshot release?Seems there’s just one commit in the past year and something and it’s from @benedek 🙂
I think someone should advise the Spacemacs team to remove this from the default config.
I opened an issue: https://github.com/syl20bnr/spacemacs/issues/11146
anyone here already uses cider 0.18.0 with figwheel? I'm getting tons of exceptions trying to connect to already started repl.