This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-02
Channels
- # announcements (1)
- # beginners (15)
- # calva (6)
- # cider (72)
- # clojure (105)
- # clojure-europe (2)
- # clojure-france (1)
- # clojure-italy (4)
- # clojure-nl (2)
- # clojure-uk (32)
- # clojurescript (14)
- # code-reviews (10)
- # cursive (8)
- # data-science (2)
- # datomic (38)
- # events (1)
- # fulcro (31)
- # graphql (1)
- # hyperfiddle (47)
- # java (4)
- # jobs (4)
- # off-topic (18)
- # overtone (2)
- # parinfer (12)
- # pathom (19)
- # pedestal (4)
- # philosophy (2)
- # portkey (22)
- # re-frame (42)
- # reagent (1)
- # rum (1)
- # shadow-cljs (36)
- # specter (3)
- # tools-deps (2)
Bah! Did the stupidest thing. Upgraded emacs, lein, and cider at the same time, and now my env is not working š
[nREPL] Starting server via /usr/local/bin/lein update-in :dependencies conj \[acyclic/squiggly-clojure\ \"0.1.9-SNAPSHOT\"\ \:exclusions\ \[org.clojure/tools.reader\]\] -- update-in :dependencies conj \[nrepl\ \"0.5.3\"\] -- update-in :plugins conj \[refactor-nrepl\ \"2.4.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.19.0\"\] -- repl :headless :host localhost...
[nREPL] server started on 51819
[nREPL] Establishing direct connection to localhost:51819 ...
[nREPL] Direct connection to localhost:51819 established
error in process filter: nrepl-send-sync-request: Sync nREPL request timed out (op version prefix-rewriting false debug false)
error in process filter: Sync nREPL request timed out (op version prefix-rewriting false debug false)
Iāve started today to delete the support for tools.nrepl
completely, so down the road people wonāt see such weird errors.
So I might be on the good path now. Just need to get my setup back to where it was before I started debugging š
> So I might be on the good path now. Just need to get my setup back to where it was before I started debugging š
That should fairly easy - once you eliminate the rogue deps everything will work just fine.
I'm still trying to make cider run something when the clojure repl has loaded, and something like this
(defun start-finops-admin ()
(interactive)
(cider-jack-in-clj&cljs)
(cider-switch-to-repl-buffer)
(insert "(go)")
(newline))
could work in theory , but of course it doesn't find the repl buffer at that point
could maybe sleep for a bit but is there a way to wait for that buffer to be ready?
@andrea.crotti Did you try using cider-connected-hook
?
what about this? https://github.com/clojure-emacs/cider/issues/2538
CIDER development now (0.20-snapshot) requires lein 2.8.3 minimum for leiningen projects, correct? It cannot work with 2.7.1 or 2.8.1 correct?
ah ok cool @bozhidar, but can I use set it locally on a project?
This variable may be risky if used as a file-local variable.
?
If you want to use an older lein thereās always https://github.com/nrepl/lein-nrepl
we use a plugin called slothconfig that provides the project.clj map to the application at runtime. We've been wanting to get away from it but its just always at the bottom of the priority heap
@bozhidar I'm not seeing a release for lein-nrepl "0.3.2". any chance you could cut one when you have time? That's the version in the readme > Put [nrepl/lein-nrepl "0.3.2"] into the :plugins vector of your :user profile.
Could not find artifact nrepl:lein-nrepl:jar:0.3.2 in central ( )
Could not find artifact nrepl:lein-nrepl:jar:0.3.2 in clojars ( )
anyway @bozhidar your suggestion seems to work, only problem is that it then runs on on both repls, while it should only run on the clojure one
nice it works thanks @bozhidar (I did (equal cider-repl-type "clj")
instead but that's it
btw is there a way to kill automatically both repls? cider-quit
only kills the clojure one
Youāre looking for http://www.cider.mx/en/latest/managing_connections/#sessions sesman-quit
.
> nice it works thanks @bozhidar (I did (equal cider-repl-type "clj")
instead but thatās it
I guess youāre on some older version - it the most recent one the type is supposed to be a symbol.
I'll try third time š What about Unix paths vs Windows paths under Cygwin? Previously cider-to-nrepl-filename-function
was used in such occasions. But now sesman-friendly-session-p
ignores that combination and expects that Emacs and nRepl operate on the same path styles.
Iād just suggest using Edebug and stepping though the problematic code to see where exactly the problem is coming from.
I did it. And this is the case. Emacs and Cygwin are using unix-like paths ie. /home/user/file etc. JVM and nrepl are using Windows paths. So exactly this line fails https://github.com/clojure-emacs/cider/blob/master/cider-connection.el#L438 because of that
file-name-directory
expects unix-like-path but classpath
is filled by Windows paths
in previous versions of Cider cider-to-nrepl-filename-function
was the solution. It wraps cygwin-convert-file-name-to-windows
which is native Cygwin' Emacs function
The same problem can be observed when repl is run on linux and emacs connects from Windows. I believe that making simple proxy which converts one style into another between nrepl and cider can solve the problem globally.
Iām using emacs 26.1 and wanting to try out the new cider version. Even though Iāve added melpa-stable, M-x package-install <ret> cider <ret> refuses to work. It wants me to choose cider-eval-sexp-fu or cider-hydraā¦
I mean that <ret> does not start installing and it inserts a hypen indicating the command is unfinished
hitting <tab> after it has inserted the hyphen shows:
Click on a completion to select it.
In this buffer, type RET to select the completion near point.
Possible completions are:
cider-eval-sexp-fu
cider-hydra
The only CIDER I see is:
cider 20180717.553 installed Clojure Interactive Development Environment that Rocks
ah yes that would probably do it. it won't offer to install an already installed package