-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
Jack-in exits on start with lein project #1106
Comments
I'm not @thsam XD....i'm getting the same error. i posted it on the other issue... Here is my system info and experiment:
vsliv368:30146709 |
OK. Let's bring it here then. 😄 Can you try a thing for me? In a 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]" Then run it from the terminal: C:\...> .\calva\start What happens? |
And also for a Leinigen project, this content: lein update-in :dependencies conj [nrepl,\"0.8.3\"] -- update-in :plugins conj [cider/cider-nrepl,\"0.25.8\"] -- update-in [:repl-options,:nrepl-middleware] conj '["cider.nrepl/cider-middleware"]' -- with-profile +dev repl :headless |
I tried the command on a leiningen project and I got this: "launching repl using leiningen" that message stays in yellow in the bottom bar ...and for a deps.edn project the console doesn't return anything and nothing happens in the bar...:( |
Any news of this? I really need it :( |
@PEZ is this related to the Oracle bug mentioned here: #1162 (comment)? |
I didn't think so at first, but maybe it is. Which Java are you using @fabricioc8 and @thsam ? |
JDK SE 16 64bit |
So, it could be the same Java bug as #1162 is bumping against. If you from the
Then even more likely. Try with installing adoptjdk via scoop and make it your system Java (which might involve removing Let me know if this works or not. |
I tried what you suggested but I couldn't connect the REPL. I removed C:\Program Files\Common Files\Oracle\Java\javapath\ from my PATH and installed scoop via:
Then I installed adoptjdk via:
...and it appeared in my System enviroment PATH varible.
I went to the editor and try to connect the repl in a leningen project and got the same message on the VSC terminal:
Then I tried the process with 'scoop install adopt12-hotspot-jre' and it appeared in my PATH User enviroment variable but not in the System variable. Also appeared in JAVA_HOME User enviromet variable. (I don't know wich of adopt12-hotspot or adopt12-hotspot-jre should I have been installed) My JAVA_HOME System enviroment value ends with 'C:\Program Files\Java\jdk-16\bin;C:\Program Files\Java\jdk-16' after the whole process. If I did something wrong let me know and I will try again. |
@fabricioc8 what do you get if you from a |
I get this C:\Program Files\Common Files\Oracle\Java\javapath\java.exe |
So, there's the issue. That java.exe is broken. https://bugs.openjdk.java.net/browse/JDK-8266473 You'll need to make Windows use another java.exe in order for jack-in to work. I am a Windows noob so didn't know how to do this so I ended up copying |
I did that and get this on the VSC terminal when tried to jack-in:
previously without doing anything I saw a VSC notification with the message "connected to the nREPL" and 'nrepl://127.0.0.1:50476' in the bottom blue bar. |
This problem may not be exactly this, but may be related: clojure-emacs/cider-nrepl#651 Core issue is here:
Maybe the copying over of the exe causes some things (like that class) to be missing. |
You might have luck completely removing Java from your system, then adding an openjdk version. |
Yes, or edit the PATH variable and remove the |
I uninstalled Java JDK 16.0 and manually removed Oracle.../javapath from the PATH. Then I restared the pc and removed java bucket with 'scoop bucket rm java', ran again 'scoop bucket add java' and 'scoop install adoptopenjdk-hotspot-jre'. The 'where java' command throws:
Went to VSC open a leingen project, try to jack-in and got this in the terminal:
|
Also ran
|
Hmm... same issue again with the missing class - Just to rule something out, when you run
|
Only C:\Users\Usuario.m2\repository\nrepl\nrepl\0.6.0\nrepl-0.6.0.jar; Here is the rest: |
I find similar issues reported on cider and orchard: clojure-emacs/cider#2619 Maybe there are more. I'm not sure what the fix would be for you @fabricioc8 , but you can check if you have any nrepl, cider-nrepl or related middleware configured in your project or in your lein user profile. If so, see if it helps disabling those. It might also be that Calva's defaults for the Jack-in Dependency Versions setting are the problem. They are:
Maybe @bbatsov can tell us if there are known problems with that combo? |
Looking at the thread comments it seems like the Orchard issue with the JDK. The first ticket you linked to was a bad build, that's totally unrelated. |
@fabricioc8 I'm not totally sure which version is being used when you jack-in, but it could be So, with the version of lein I'm using, 2.9.5, nrepl 0.8.3 is the version it depends on. If I remove nrepl from my |
I was using lein version 2.9.3. I updated it to 2.9.6. I deleted the nrepl folder from .m2 (which had several versions, including 0.6.0 and 0.8.3) and ran 'lein classpath'. It only downloaded nrepl 0.8.3 but when trying the jack-in I got the same error:
|
Hmm. @bbatsov Did you mean it looks like it's related to this issue? clojure-emacs/orchard#50 @fabricioc8, you may find some helpful information in that issue. If you do end up finding a workaround or solution, please post here about it. |
I realize we've been troubleshooting a different issue now than the original, so @fabricioc8 it would be a good idea to create a new issue to track the |
Issue Type: Bug
Extension version: 2.0.185
VS Code version: Code 1.55.0 (c185983a683d14c396952dd432459097bc7f757f, 2021-03-30T16:01:55.261Z)
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: enabled
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: