Skip to content
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

Closed
luanprins opened this issue Mar 30, 2021 · 19 comments
Closed

Getting Started REPL Jack-in process exited. Status: 1 #1085

luanprins opened this issue Mar 30, 2021 · 19 comments

Comments

@luanprins
Copy link

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
Item Value
CPUs AMD Ryzen 7 2700 Eight-Core Processor (16 x 3194)
GPU Status 2d_canvas: enabled
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
Load (avg) undefined
Memory (System) 15.95GB (9.85GB free)
Process Argv --crash-reporter-id 2feaa930-d56a-4849-8b21-a59342df2207
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30276681
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30259475
pythonvsnew554cf:30281909
pythontb:30265425
pythonvspyt943cf:30280190
wslfolderdoc:30282074
vspre833:30267464
pythonptprofiler:30281270
vshan820cf:30276953

@PEZ
Copy link
Collaborator

PEZ commented Mar 30, 2021

Thanks for reporting!

Adding this here, since relevant:

Off-band I have been shown that the error message says `java.io.FileNotFoundException (Access is denied)

@luanprins
Copy link
Author

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]"
Error building classpath. C:\Users\Prins (Access is denied)
java.io.FileNotFoundException: C:\Users\Prins (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)

Jack-in process exited. Status: 1

@PEZ
Copy link
Collaborator

PEZ commented Mar 31, 2021

Can you run that command in the VS Code terminal and see if you get the error?

@luanprins
Copy link
Author

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]"
Error: Unable to access jarfile .calva\deps.clj.jar

@PEZ PEZ changed the title Jack-in process exited. Status: 1 Getting Started REPL Jack-in process exited. Status: 1 Mar 31, 2021
@PEZ PEZ added the jack-in label Mar 31, 2021
@PEZ
Copy link
Collaborator

PEZ commented Mar 31, 2021

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...

@luanprins
Copy link
Author

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"

@luanprins
Copy link
Author

Update: Standalone REPL has the same error.

@borkdude
Copy link

@luanprins The above is just a quoting issue. This works in PS for me:

java -jar .\target\deps.clj-0.0.13-standalone.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]'

@borkdude
Copy link

Can't repro any problem in a dir with spaces:

PS C:\Temp\with spaces> java -jar deps.clj-0.0.13-standalone.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]'
nREPL server started on port 65370 on host kubernetes.docker.internal - nrepl://kubernetes.docker.internal:65370

@luanprins
Copy link
Author

@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?

@PEZ
Copy link
Collaborator

PEZ commented Apr 13, 2021

@luanprins you'll need to use a path to some deps.clj.jar file that you have.

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 deps.clj.jar to a directory that does not have spaces in the path and from that directory run:

java -jar deps.clj.jar

What do you get for those two experiments?

@luanprins
Copy link
Author

@PEZ
Both of those got the same error, which is below, although the second directory did not have spaces (directory was C:\tmp).

Error building classpath. C:\Users\Prins (Access is denied) java.io.FileNotFoundException: C:\Users\Prins (Access is denied) at java.base/java.io.FileOutputStream.open0(Native Method) at java.base/java.io.FileOutputStream.open(FileOutputStream.java:291) at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:234) 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)

@PEZ
Copy link
Collaborator

PEZ commented Apr 13, 2021

I wonder why it looks for files in your user folder...

@PEZ
Copy link
Collaborator

PEZ commented Apr 13, 2021

I have now bought a small PC. It was worth it. I can reproduce!

With a user named/home directoryPeter Strömberg:

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)

@borkdude
Copy link

I have a created a Windows user with the name Peter Strömberg but can't reproduce this.

Screenshot 2021-04-14 at 09 46 17

Screenshot 2021-04-14 at 09 50 56

@PEZ
Copy link
Collaborator

PEZ commented Apr 14, 2021

Seems my repro is a bit lucky. On another machine, the same user name does not cause any problems.

@PEZ
Copy link
Collaborator

PEZ commented Apr 14, 2021

Ah, yeah, didn't see your comment, @borkdude . On that machine. 😄

@borkdude
Copy link

Please try again with deps.clj 0.0.14:

https://github.com/borkdude/deps.clj/releases/tag/v0.0.14

@PEZ
Copy link
Collaborator

PEZ commented Apr 16, 2021

Works like a charm, @borkdude !

Here's a Calva VSIX bundling this new deps.clj: https://12881-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.188-1085-deps-clj-windows-space-0096b3e7.vsix

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 deps.clj.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants