coc-java icon indicating copy to clipboard operation
coc-java copied to clipboard

where does The "java" server crashed 4 times in the last 3 minutes. message come from?

Open ssh352 opened this issue 2 years ago • 8 comments

[coc.nvim] The "java" server crashed 4 times in the last 3 minutes. The server will not be restarted.

I'd like to understand the issue better. I wonder where this message comes from? is it from the jdtls or somewhere? where does it store the crash count? if I delete the file that stores the crash count, the problem would go away.

ssh352 avatar Jun 18 '22 13:06 ssh352

@ssh352 see #99 and #207

The solution (for me at least) seems to be to replace the downloaded jtdls with the latest milestone version at https://download.eclipse.org/jdtls/

theVerySharpFlat avatar Jun 22 '22 14:06 theVerySharpFlat

@theVerySharpFlat Thanks, except the solution, do you know where the crash count is stored?

ssh352 avatar Jun 26 '22 13:06 ssh352

@ssh352 https://github.com/neoclide/coc.nvim/blob/b5950acdbb4e6d36323085b10926b41eac245738/src/language-client/client.ts#L325

if I delete the file that stores the crash count, the problem would go away.

No, you need to make jdtls to work.

fannheyward avatar Jun 26 '22 13:06 fannheyward

@ssh352 https://github.com/neoclide/coc.nvim/blob/b5950acdbb4e6d36323085b10926b41eac245738/src/language-client/client.ts#L325

if I delete the file that stores the crash count, the problem would go away.

No, you need to make jdtls to work.

Thanks Now I fully understand the issue. My manual restart of vim incremented the "crash count" and coc tracked it.

ssh352 avatar Jun 27 '22 10:06 ssh352

Downloading the latest tarball worked for me - you can run :echo coc#util#extension_root().'/coc-java-data/server' to find where to extract the files

daniellillja avatar Jul 09 '22 17:07 daniellillja

is this a bug using the latest snapshot build?

kwangyel avatar Jul 31 '22 12:07 kwangyel

Yes, I believe so. I tried to fix this in #207

theVerySharpFlat avatar Jul 31 '22 12:07 theVerySharpFlat

@theVerySharpFlat yes seems like your merge would resolve the issue. 😁

kwangyel avatar Jul 31 '22 12:07 kwangyel

@ssh352 see #99 and #207

The solution (for me at least) seems to be to replace the downloaded jtdls with the latest milestone version at https://download.eclipse.org/jdtls/

this works for me.

dapt4 avatar Nov 10 '22 15:11 dapt4

Should be fixed on recent version of coc-java, try upgrade coc.nvim to latest release and coc-java to version 1.14.0.

Latest coc-java comes with bundled jdt.ls

chemzqm avatar Jan 29 '23 08:01 chemzqm