Fork me on GitHub
#clj-on-windows
<
2023-05-10
>
pauld12:05:51

I have a regression that I'm having difficulty figuring out the cause of. I posted this to the spacemacs group but it doesn't seem to be spacemacs related. I rebooted my updated spacemacs and the elpa packages and rebooted my system. Now I can't jack-in with any simple test project.

pauld12:05:44

Here is my *messages*output:

Starting new CIDER session ...
[nREPL] Starting server via "c:/Users/Paul Dumais/scoop/shims/clojure.exe" -Sdeps '{:deps {nrepl/nrepl {:mvn/version "1.0.0"} cider/cider-nrepl {:mvn/version "0.30.0"}} :aliases {:cider/nrepl {:main-opts ["-m" "nrepl.cmdline" "--middleware" "[cider.nrepl/cider-middleware]"]}}}' -M:cider/nrepl
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: Error building classpath. Don't know how to create ISeq from: clojure.lang.Symbol

java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol

	at clojure.lang.RT.seqFrom(RT.java:557)

	at clojure.lang.RT.seq(RT.java:537)

	at clojure.core$seq__5467.invokeStatic(core.clj:139)

	at clojure.core$merge_with$merge2__6033.invoke(core.clj:3083)

	at clojure.lang.ArrayChunk.reduce(ArrayChunk.java:63)

	at clojure.core$reduce1.invokeStatic(core.clj:944)

	at clojure.core$reduce1.invokeStatic(core.clj:936)

	at clojure.core$merge_with.invokeStatic(core.clj:3076)

	at clojure.core$merge_with.doInvoke(core.clj:3068)

	at clojure.lang.RestFn.applyTo(RestFn.java:139)

	at clojure.core$apply.invokeStatic(core.clj:669)

	at clojure.tools.deps$merge_edns.invokeStatic(deps.clj:141)

	at clojure.tools.deps.script.make_classpath2$run_core.invokeStatic(make_classpath2.clj:86)

	at clojure.tools.deps.script.make_classpath2$run.invokeStatic(make_classpath2.clj:153)

	at clojure.tools.deps.script.make_classpath2$_main.invokeStatic(make_classpath2.clj:203)

	at clojure.tools.deps.script.make_classpath2$_main.doInvoke(make_classpath2.clj:174)

	at clojure.lang.RestFn.applyTo(RestFn.java:137)

	at clojure.lang.Var.applyTo(Var.java:705)

	at clojure.core$apply.invokeStatic(core.clj:667)

	at clojure.main$main_opt.invokeStatic(main.clj:514)

	at clojure.main$main_opt.invoke(main.clj:510)

	at clojure.main$main.invokeStatic(main.clj:664)

	at clojure.main$main.doInvoke(main.clj:616)

	at clojure.lang.RestFn.applyTo(RestFn.java:137)

	at clojure.lang.Var.applyTo(Var.java:705)

	at clojure.main.main(main.java:40)

 ("exited abnormally with code 1")
error in process sentinel: Could not start nREPL server: Error building classpath. Don't know how to create ISeq from: clojure.lang.Symbol

java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol

	at clojure.lang.RT.seqFrom(RT.java:557)

	at clojure.lang.RT.seq(RT.java:537)

	at clojure.core$seq__5467.invokeStatic(core.clj:139)

	at clojure.core$merge_with$merge2__6033.invoke(core.clj:3083)

	at clojure.lang.ArrayChunk.reduce(ArrayChunk.java:63)

	at clojure.core$reduce1.invokeStatic(core.clj:944)

	at clojure.core$reduce1.invokeStatic(core.clj:936)

	at clojure.core$merge_with.invokeStatic(core.clj:3076)

	at clojure.core$merge_with.doInvoke(core.clj:3068)

	at clojure.lang.RestFn.applyTo(RestFn.java:139)

	at clojure.core$apply.invokeStatic(core.clj:669)

	at clojure.tools.deps$merge_edns.invokeStatic(deps.clj:141)

	at clojure.tools.deps.script.make_classpath2$run_core.invokeStatic(make_classpath2.clj:86)

	at clojure.tools.deps.script.make_classpath2$run.invokeStatic(make_classpath2.clj:153)

	at clojure.tools.deps.script.make_classpath2$_main.invokeStatic(make_classpath2.clj:203)

	at clojure.tools.deps.script.make_classpath2$_main.doInvoke(make_classpath2.clj:174)

	at clojure.lang.RestFn.applyTo(RestFn.java:137)

	at clojure.lang.Var.applyTo(Var.java:705)

	at clojure.core$apply.invokeStatic(core.clj:667)

	at clojure.main$main_opt.invokeStatic(main.clj:514)

	at clojure.main$main_opt.invoke(main.clj:510)

	at clojure.main$main.invokeStatic(main.clj:664)

	at clojure.main$main.doInvoke(main.clj:616)

	at clojure.lang.RestFn.applyTo(RestFn.java:137)

	at clojure.lang.Var.applyTo(Var.java:705)

	at clojure.main.main(main.java:40)

 ("exited abnormally with code 1")

pauld12:05:04

Well not a real regression 🙂 - just that I had things working 2 days ago.

pauld12:05:45

I can launch a repl from the command-line though.

borkdude12:05:51

You still have the space in your user folder right?

borkdude12:05:40

might be related to that?

Alex Miller (Clojure team)12:05:14

What version of the CLI?

borkdude12:05:17

another possibility is the powershell shim that isn't properly working

pauld12:05:04

I'm on spacemacs develop.

pauld12:05:37

It could be that scoop clojure on windows only works after installing but not after reboot.

pauld12:05:55

how do I check version of CLI?

borkdude12:05:15

clojure --version

pauld12:05:09

Clojure CLI version (deps.clj) 1.11.1.1273

borkdude12:05:30

since you speak of a regression, when did it start happening? what did you change?

pauld12:05:01

I'm going to try launching from cmd line again but with the same args as in emacs.

pauld12:05:13

That works.

pauld12:05:31

So it's just jacking-in that's broken suddenly.

borkdude12:05:38

note that quoting of strings will be different depending on: • you're shelling out from Java • you're shelling out from Powershell • you're shelling out cmd.exe

pauld12:05:58

I tried rolling back packages and the spacemacs repo but that didn't help.

borkdude12:05:19

I think I would try shelling out from java to reproduce this

pauld12:05:41

How would I do that?

borkdude12:05:54

let me whip up an example... just a minute

borkdude13:05:43

@U0FH1UL84 Like this:

(let [process-builder (java.lang.ProcessBuilder. ["clojure.exe" "-Spath" "-Sdeps" (pr-str '{:deps {org.clojure/clojure {:mvn/version "1.12.0-alpha2"}}})])
      process (.start process-builder)
      output (slurp (.getInputStream process))
      error (slurp (.getErrorStream process))]
  (println output)
  (println error))

borkdude13:05:53

and then adapt the clojure.exe invocation

borkdude13:05:52

or wait, CIDER isn't shelling out from Java, right, it's doing this from elisp?

pauld13:05:13

Not sure... it is calling clojure.exe.

borkdude13:05:05

but from where?

pauld13:05:44

Yeah, elisp command I suppose. Not sure how emacs cider internals work that well. There is a variable that holds the command that gets launched.

pauld13:05:22

That command runs fine in my git bash shell but not from emacs-jack-in (any longer).

pauld13:05:38

I might try posting this over in the cider group.

👍 1
littleli07:05:39

@U0FH1UL84 so you're using scoop? which package? clj-deps?

pauld12:05:56

Yeah scoop clojure via clj-deps package. It was working fine earlier. Not sure what I could have done to break it.

borkdude12:05:45

@U0FH1UL84 did you upgrade clj-deps? or did you upgrade CIDER? Are you using a unstable version of CIDER from melpa?

pauld12:05:16

Did not upgrade anything via scoop yet. Maybe I should! As for cider - It's whichever version in spacemacs develop branch. Not sure how to check.

pauld12:05:52

trying emacs list-packages

pauld12:05:34

which was required by helm-cider-20220706.944

pauld12:05:00

Woops thats wrong <tel:202304261815|20230426.1815>

pauld12:05:09

is the version of cider I have

pauld12:05:51

I had upgraded cider, but I also reverted those upgrades to see if that would help but it did not.