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
Error: The "java" server crashed 5 times in the last 3 minutes. The server will not be restarted #99
Comments
Error from server
|
Version 57 of JDT Lang Sever works fine Quick hack for those who are facing this issue |
Getting the same error.
use Version 57 of JDT Lang Sever not get error |
Thank you very much, It solved the problem simply and it works now like a charm:) |
I just solved it the same way using the latest jdt lang server today, which is v0.9.0: https://download.eclipse.org/jdtls/milestones/0.9.0/ EDIT: I was wrong, 0.9.0 is from 2017. Download: "jdt-language-server-latest.tar.gz" from https://download.eclipse.org/jdtls/snapshots/?d in one way or another and run it with Java 11. |
That worked for me too (I'm on archlinux with neovim and openjdk 1.8). |
Thank you man, worked! |
Adding another +1 - downloading the latest JDT from Eclipse's website and overwriting what coc's populating in the extensions directory is the fix. So something's going wrong when coc.nvim populates that directory. |
Actually, the latest eclipse jdt lsp is NOT 0.9 but currently 0.61.0. That's the one I use now and it works perfectly fine, as long as you run it with Java 11. Sorry for the mess. I don't know what's the matter with these 0.7/0.8/0.9 versions, maybe they tried some advanced features and finally gave them up. You can search in Eclipse CI if you want, and in their Github repo, it's all public. |
That's it. Confirmed all working with java 11. |
Indeed, thank you - I downloaded the latest *tar.gz from your link: https://ci.eclipse.org/ls/job/jdt-ls-master/ At the time of this writing, that's jdt-language-server-0.61.0-202009090949.tar.gz. I overwrote all files/folders at That, and running with Java 11 (as provided/setup by SDKMAN!), I'm off to the races with a working coc-java install. Tested it with an existing package, and it's certainly faster than the "0.9" version. |
Thank you so much.. |
I'm using AdoptOpenJDK build 1.8.0_265-b01, it only work with 0.57 version. |
me, too. |
I had this issue as well just today and had to manually download the latest myself, which was 0.64, from https://ci.eclipse.org/ls/job/jdt-ls-master/ |
I'm reproducing this problem every time I try to open ... any java file from our android project. |
Are you using Java 11? The lsp requires Java 11 minimum. Besides, the LSP
doesn't fully support Gradle Android projects. And sometimes, a simple ":e"
on a file, or "CocRestart", or a clean of workspace suffice to solve the
situation.
Le jeu. 12 nov. 2020 à 12:32, CapSel <notifications@github.com> a écrit :
… I'm reproducing this problem every time I try to open ... any java file
from our android project.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#99 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALBYMI4TNXQXJUHKMVLNY23SPPBWJANCNFSM4PE3DEPA>
.
|
I have java 14 and this happens to me. |
enter the coc-java folder and replace the files with the eclipse-jdtls. https://download.eclipse.org/jdtls/snapshots/?d |
Nothing works for me i replaced it many times and changed from java 8 to 11 and 15 but still didn't work |
You need Java 11. Normally it should work. Please copy paste the file coc-settings.json. Type :CocConfig to get it. Also, tell me the content of |
my Config is
about the content : |
I suspect your problems lie with Besides, can you try renaming the folder I told you, and try to download the Java language server from within vim (:CocCommand java.updateLanguageServer)? Before doing all that you can also use java.trace.server=true or something like that (see readme troubleshooting of this repo and cox.nvim repo) and then, open the server log with the corresponding coc Java command, to look for an error, then paste it here. |
It works for me Thanks |
Could you tell mewhat was wrong? Which step helped you succeed?
Le mer. 6 janv. 2021 à 13:02, Mohamed Fawzy <notifications@github.com> a
écrit :
… I suspect your problems lie with
java.jdt.ls.vmargs parameter
Check here:
eclipse-jdtls/eclipse.jdt.ls#824 (comment)
<eclipse-jdtls/eclipse.jdt.ls#824 (comment)>
For default parameters.
Install coc-json (or jsonc, not sure), to get autocomplete in :CocConfig
for next time.
I think you may have removed important default parameters instead of
*adding* your lombok parameter to it.
Besides, can you try renaming the folder I told you, and try to download
the Java language server from within vim (:CocCommand
java.updateLanguageServer)?
Delete the old folder if it now works.
Before doing all that you can also use java.trace.server=true or something
like that (see readme troubleshooting of this repo and cox.nvim repo) and
then, open the server log with the corresponding coc Java command, to look
for an error, then paste it here.
Would be nice also if you could tell us the version of the language server
you're running.
It works for me
language server = 68
java 11
Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#99 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALBYMI6EANXAO5VQ5MVYU5DSYRGO5ANCNFSM4PE3DEPA>
.
|
it was because this one |
thinks! It`s work on windows10 with neovim-qt |
does not work with https://github.com/facebook/react-native/blob/master/ReactAndroid/build.gradle (a gradle/buck android project) but I wonder if the problem is with eclipse.jdt.ls itself
https://github.com/eclipse/eclipse.jdt.ls so is there a language server out there compatible with Gradle based android projects? |
I got the same exact error. I found that |
I just did |
JDK : 16.0.2 |
macOSjdt.ls auto installed when
set {
"java.home": "/Library/Java/JavaVirtualMachines/adoptopenjdk-13.jdk/Contents/Home",
"java.trace.server": "verbose",
"java.format.enabled": true,
"java.import.maven.enabled": true,
"java.maven.downloadSources": true
} WORKED!
As mentioned above, I think it should work when jdk version |
|
Thanks @juanMarinero, this worked for me in archlinux. |
After trying all the steps above it started successfully only after I issued |
Error: The "java" server crashed 5 times in the last 3 minutes. The server will not be restarted |
It definitely doesn't work with version 8. I switched to a newer one and everything is working fine. |
Thanks for that - it'd become annoying to the point that I was ready to uninstall |
As for me, i thought that i've already set the |
It works for me too. |
Hello, i'm facing this issue right now, i'm new in neovim and all of configs. I got confused about the jdtls thing. I don't use Lua as config files for Neovim. The directory in my ~/.config/coc/extensions/coc-java-data is only a directory called "1.14.1". Could someone help me please? |
I have coc.nvim installed and to install this extension, I just opened the vim and ran below command:
:CocInstall coc-java
the output is:
Install finished - ✓ coc-java Installed extension coc-java@1.4.11 at /home/milad/.config/coc/extensions/node_modules/coc-java
But when I open a .java file, I first see:
[coc.nvim] JDT Language Server starting at /home/path/to/my/directory
and after some seconds I face below Error:
[coc.nvim] The "java" server crashed 5 times in the last 3 minutes. The server will not be restarted.
I'm on linux and I can write java files in Visual Studio Code normally if it helps anyway.
some Information:
$ java -version
openjdk version "10.0.2" 2018-07-17 OpenJDK Runtime Environment (build 10.0.2+13) OpenJDK 64-Bit Server VM (build 10.0.2+13, mixed mode)
$ echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk
The text was updated successfully, but these errors were encountered: