Fork me on GitHub
#cider
<
2022-06-08
>
ag01:06:51

Damn, I broke something, again. Now I can't jack-in:

error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: Picked up JAVA_TOOL_OPTIONS: -Dapple.awt.UIElement=true
Jun 07, 2022 8:27:48 PM org.eclipse.jetty.util.log.JettyAwareLogger log
INFO: Logging initialized @3501ms to org.eclipse.jetty.util.log.Slf4jLog
Unexpected error (NoSuchFieldError) macroexpanding if-ns at (cider/piggieback.clj:22:1).
UNNECESSARY_ESCAPE
on CIDER 1.5.0-snapshot (package: 1.5.0-snapshot) it starts like this:
[nREPL] Starting server via /usr/local/bin/clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version "0.9.0"} cider/cider-nrepl {:mvn/version "0.28.4"} refactor-nrepl/refactor-nrepl {:mvn/version "3.5.2"}} :aliases {:cider/nrepl {:main-opts ["-m" "nrepl.cmdline" "--middleware" "[shadow.cljs.devtools.server.nrepl/middleware,refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"]}}}' -M:shadow-cljs:dev:test:cider/nrepl
but fails, anyone has a clue?

vemv03:06:41

from the stacktrace alone it looks like a dependency conflict of some java dep, piggieback expects version x and shadow-cljs causes y to be resolved instead

vemv03:06:41

could you determine the exact cause and then create an issue in https://github.com/nrepl/piggieback ? Easiest fix would be to mranderson ize some deps in that project. Although @U051BLM8F is less keen on that sort of solution lately.

bozhidar04:06:19

Piggieback has only provided deps, btw.

bozhidar04:06:11

And no direct ties to shadow-cljs (it doesn't use piggieback directly, it simply emulates its API)

Carsten Behring13:06:08

Using the cider-inspector with a repl I connected to with cider-connect gives me always an error like:

Inspector error for: ./validation/exportOpinions.csv.gz [10762 39]:

vemv13:06:58

I'd suggest creating an issue with a more generous description

Carsten Behring14:06:30

yes, thanks. I was hoping somebody has seen it and has a solution. It happens on "all" vars but only if I do cider-connect towards a already running repl. Code evaluations works as usual.

Carsten Behring15:06:43

I solved it. I was missing the cider-nrepl middleware in my setup.

yuhan17:06:03

Just curious, what command did you use to start the server without cider-nrepl middleware installed?

yuhan17:06:08

The error message can probably be improved - I thought that it's missing a call to cider-ensure-op-supported but actually the inspector middleware taps directly into the eval op

Carsten Behring17:06:12

I Just had repl/repl in the deps.edn. So this starts nrepl server and emacs connects to it. (but prints a warning on missing cider-nrepl, which I ignored ...) clojure -m nrepl.cmdline starts then sucessfully a nrepl server.

yuhan17:06:08

The error message can probably be improved - I thought that it's missing a call to cider-ensure-op-supported but actually the inspector middleware taps directly into the eval op