This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-06
Channels
- # bangalore-clj (7)
- # beginners (51)
- # bigdata (1)
- # cider (97)
- # cljsjs (2)
- # clojure (41)
- # clojure-dev (2)
- # clojure-dusseldorf (5)
- # clojure-nl (16)
- # clojure-russia (43)
- # clojure-spec (13)
- # clojure-uk (59)
- # clojurescript (24)
- # community-development (16)
- # datomic (18)
- # defnpodcast (1)
- # editors (96)
- # figwheel-main (6)
- # fulcro (13)
- # jobs-discuss (2)
- # jobs-rus (8)
- # off-topic (8)
- # onyx (11)
- # pedestal (3)
- # re-frame (18)
- # reitit (2)
- # shadow-cljs (158)
- # spacemacs (7)
- # tools-deps (3)
- # vim (3)
I have a clojurescript project using shadow-cljs and I want cider to connect to a node repl. I tried running cider-jack-in-cljs
but it throws an error. This is what I see in the Messages buffer:
[nREPL] Starting server via /usr/local/bin/npx -d org.clojure/tools.nrepl:0.2.13 -d cider/piggieback:0.3.5 -d refactor-nrepl:2.4.0-SNAPSHOT -d cider/cider-nrepl:0.18.0-SNAPSHOT server...
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: npx: installed 226 in 8.863s
command not found: server
error in process sentinel: Could not start nREPL server: npx: installed 226 in 8.863s
command not found: server
I think it’s trying to run the command npx server
but I want it to run something like npx shadow-cljs node-repl
. Any ideas how to fix this?
@samarthkishor1 I think @dpsutton fixed this a while ago. It should actually run npx shadow-cljs server
.
@bherrmann As CIDER simply runs clj
I can’t imagine how this can be some CIDER-specific problem. Likely if you start the server using the same command that CIDER does you’ll get a similar result.
@samarthkishor1 this should be fixed. can you try upgrading CIDER and seeing if you it works for you then? If not file an issue with some particulars and I can correct that codepath. It's also not too difficult if you want to dive in yourself
@thheller I’ve issued cider-nrepl 0.18 just now. Hopefully this makes your life easier. 🙂
The release notes for cider-nrepl 0.18 are here https://github.com/clojure-emacs/cider-nrepl/releases/tag/v0.18.0
@bozhidar I'm getting middleware descriptor errors with cider-nrepl 0.18 & the included cider/nrepl 0.4.4
Hmm, eval failed with Exception in thread "nREPL-worker-0" java.lang.ClassCastException: cider.nrepl.middleware.track_state$make_transport$reify__11014 cannot be cast to nrepl.transport.Transport
too
clj -A:dev -Sdeps '{:deps {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"])
I did update it on master
, but never pushed the updated version, as I didn’t have permissions to do it.
@dominicm Btw, any suggestions how to make code like this safe to re-evaluate? https://github.com/clojure-emacs/refactor-nrepl/blob/master/src/refactor_nrepl/middleware.clj#L13
The end users won’t be bothered by this, but require
seems to blow up if you eval this a second time.
Yeah, not a big deal. I was just wondering I should not wrap this in some ns-aliases
check or something.
And this affects only people hacking on the tooling projects, so it’s not a big deal, but it’s an annoyance.
just upgraded CIDER from MELPA. Is it just me or C-c M-n M-n
doesn't work any more? It shows a spinner next to REPL[clj]
in the mode-line, but the REPL stays on user
namespace. Do you want me to file an issue?
I also get nrepl-send-sync-request: Sync nREPL request timed out (op ns-load-all)
when doing cider-load-all-project-ns
. But maybe that's another issue.
Starting up CIDER on a cljs node project I started a few weeks back I now get the error Sync nREPL request timed out
after selecting figwheel-main
[nREPL] Starting server via /usr/local/bin/clojure -Sdeps '{:deps {org.clojure/tools.nrepl {:mvn/version "0.2.13"} cider/piggieback {:mvn/version "0.3.5"} cider/cider-nrepl {:mvn/version "0.18.0-SNAPSHOT"}}}' -e '(require (quote cider-nrepl.main)) (cider-nrepl.main/init ["cider.nrepl/cider-middleware", "cider.piggieback/wrap-cljs-repl"])'...
[nREPL] server started on 60580
[nREPL] Establishing direct connection to localhost:60580 ...
[nREPL] Direct connection to localhost:60580 established
error in process filter: nrepl-send-sync-request: Sync nREPL request timed out (op clone id 1 time-stamp 2018-08-06 12:54:36.011701000)
error in process filter: Sync nREPL request timed out (op clone id 1 time-stamp 2018-08-06 12:54:36.011701000)
I'm only getting rather old and closed (and it looks like they are different) issues when searching. Any idea what is causing this?@manuel Ah, didn’t have time to check the issues, but I assume you’re problem must be something similar. That’s why I asked.
I think CIDER is injecting the nrepl and the piggieback dependencies into the start command itself. How can I update them? Do I need to add them as deps to deps.edn
?
Ah, sorry. Just update the latest CIDER snapshot then. I certainly changed the injection to use piggieback 0.3.8 earlier today.
You find cider
there, then press u
to mark it for upgrade and then x
to do the upgrade.
Oh yeah - I checked this morning if there was an update and didn't see the snapshot from today. Thanks installing now.
cider-apropos.el:28:1:Error: Cannot open load file: No such file or directory, sesman-browser
;; lots more of those...
In end of data:
nrepl-client.el:1338:1:Warning: the following functions are not known to be defined:
cider-format-connection-params, cider--gather-connect-params
Still no luck though, CIDER can't find piggieback
[nREPL] Starting server via /usr/local/bin/clojure -Sdeps '{:deps {org.clojure/tools.nrepl {:mvn/version "0.2.13"} cider/cider-nrepl {:mvn/version "0.18.0"}}}' -e '(require (quote cider-nrepl.main)) (cider-nrepl.main/init ["cider.nrepl/cider-middleware"])'...
[nREPL] server started on 61808
[nREPL] Establishing direct connection to localhost:61808 ...
[nREPL] Direct connection to localhost:61808 established
error in process filter: user-error: Piggieback is not available. See for details
error in process filter: Piggieback is not available. See for details
in package-list-packages I can see Status: Installed in ‘cider-20180806.728/’
Hmm, can’t imagine how this happened. You can just add piggieback your deps.edn as a workaround.
Just file a ticket, please. He was doing some refactoring to the jack-in code and I assume somewhere something went wrong.
@bozhidar Using piggieback 0.3.8 doesn't throw any errors, however when I start a cljs repl, it seems like it isn't identified properly (or at least not in the same way it used to be). I'm getting a Stdin:
prompt now. I'm starting my cljs repls using figwheel.main/start
from a clj REPL.
How do I actually run something in the repl? If I enter (+ 1 1)
and hit enter I get
no input at point
@mario.cordova.862 did you have a prompt visible when you started typing?
Magic 😉
i think i've seen this before and just hitting enter once or twice to get a new prompt knocks the cobwebs out 🙂
cider-load-buffer-and-switch-to-repl-buffer
is my go to. i hit that with a prefix and it loads the buffer and sets the namespace
@dpsutton Seems we forgot to document this one and I completely forgot it existed. 😄
@bozhidar i’ve fixed the conditional requires problem on refactor-nrepl.middleware
there are still some test failures and an error as well (both locally and on travis)
I’ve dropped the Clojure 1.7 support everywhere, after seeing that in last State of Clojure it’s usage had gone to around 5% (and this was over 6 months ago).