-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Started REPL Jack-in process exited. Status: 1 #1085
Comments
Thanks for reporting! Adding this here, since relevant:
|
Error text below. The actual path to my home directory is "C:\Users\Prins Luan" so the "Luan" seems missing here: java -jar ".calva\deps.clj.jar" -Sdeps "{:deps {nrepl/nrepl {:mvn/version,""0.8.3""},cider/cider-nrepl {:mvn/version,""0.25.8""}}}" -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
Jack-in process exited. Status: 1 |
Can you run that command in the VS Code terminal and see if you get the error? |
Tried that now, got a different error (see end of this comment). The terminal it's linked to is PowerShell. I do know that PowerShell requires quotation marks around a path containing spaces; was wonder if the previous error signified that Calva was inputting without quotation marks? PS C:\Users\Prins Luan> java -jar ".calva\deps.clj.jar" -Sdeps "{:deps {nrepl/nrepl {:mvn/version,""0.8.3""},cider/cider-nrepl {:mvn/version,""0.25.8""}}}" -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]" |
Thanks! Yes, it needs to be run from inside the Calva extension itself ... On Mac and Linux the command line includes the whole path, but on Windows things are a bit different... |
Update: using PowerShell terminal in VSCode, I attempted to run the command within the temp directory created by Calva when starting up this REPL. My input: PS C:\Users\Prins Luan\AppData\Local\Temp\betterthantomorrow.calva\cefxc> java -jar ".calva\deps.clj.jar" -Sdeps "{:deps {nrepl/nrepl {:mvn/version,""0.8.3""},cider/cider-nrepl {:mvn/version,""0.25.8""}}}" -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]" Resulting output (different error): Error while parsing option "--config-data {:deps {nrepl/nrepl {:mvn/version,0.8.3},cider/cider-nrepl {:mvn/version,0.25.8}}}": java.lang.NumberFormatException: Invalid number: 0.8.3 Conversely, doing the same using the Command Prompt terminal in VSCode, I get the same output as originally posted, excluding the last line reporting "Jack-in process exited. Status: 1" |
Update: Standalone REPL has the same error. |
@luanprins The above is just a quoting issue. This works in PS for me:
|
Can't repro any problem in a dir with spaces:
|
@borkdude Tried what worked for you on PowerShell and this came up. Error: Unable to access jarfile .\target\deps.clj-0.0.13-standalone.jar Is this familiar to you? |
@luanprins you'll need to use a path to some But the quoting issue is a separate thing. Try remove that from the picture first. So if you run this from a project where jack-in has failed: java -jar .calva\deps.clj.jar And then copy java -jar deps.clj.jar What do you get for those two experiments? |
@PEZ
|
I wonder why it looks for files in your user folder... |
I have now bought a small PC. It was worth it. I can reproduce! With a user named/home directory C:\Users\Public>java -jar .\deps.clj.jar
Error building classpath. C:\Users\Peter (Access is denied)
java.io.FileNotFoundException: C:\Users\Peter (Access is denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at clojure.java.io$fn__11498.invokeStatic(io.clj:230)
at clojure.java.io$fn__11498.invoke(io.clj:230)
at clojure.java.io$fn__11435$G__11404__11442.invoke(io.clj:69)
at clojure.java.io$fn__11472.invokeStatic(io.clj:166)
at clojure.java.io$fn__11472.invoke(io.clj:166)
at clojure.java.io$fn__11448$G__11400__11455.invoke(io.clj:69)
at clojure.java.io$writer.invokeStatic(io.clj:119)
at clojure.java.io$writer.doInvoke(io.clj:104)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at clojure.lang.AFn.applyToHelper(AFn.java:154)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invokeStatic(core.clj:667)
at clojure.core$spit.invokeStatic(core.clj:6954)
at clojure.core$spit.doInvoke(core.clj:6954)
at clojure.lang.RestFn.invoke(RestFn.java:425)
at clojure.tools.deps.alpha.util.io$write_file.invokeStatic(io.clj:57)
at clojure.tools.deps.alpha.util.io$write_file.invoke(io.clj:48)
at clojure.tools.deps.alpha.script.make_classpath2$run.invokeStatic(make_classpath2.clj:126)
at clojure.tools.deps.alpha.script.make_classpath2$run.invoke(make_classpath2.clj:113)
at clojure.tools.deps.alpha.script.make_classpath2$_main.invokeStatic(make_classpath2.clj:169)
at clojure.tools.deps.alpha.script.make_classpath2$_main.doInvoke(make_classpath2.clj:140)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.lang.Var.applyTo(Var.java:705)
at clojure.core$apply.invokeStatic(core.clj:665)
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) |
Seems my repro is a bit lucky. On another machine, the same user name does not cause any problems. |
Ah, yeah, didn't see your comment, @borkdude . On that machine. 😄 |
Please try again with deps.clj 0.0.14: |
Works like a charm, @borkdude ! Here's a Calva VSIX bundling this new Will release a new Calva with this now, I think. But if I decide not to, you can give that VSIX a spin, @luanprins . You will need to choose to create new files when the Getting Started REPL asks about that, because otherwise you will be using old |
Issue Type: Bug
Fired up the "Getting Started" REPL. Output ended with message "Jack-in process exited. Status: 1". Did not finish jack-in. The ordinary jack-in command, on the other hand, appears to work.
Extension version: 2.0.183
VS Code version: Code 1.54.3 (2b9aebd5354a3629c3aba0a5f5df49f43d6689f8, 2021-03-15T10:55:45.459Z)
OS version: Windows_NT x64 10.0.19042
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: