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

Connection to server got closed. Server will restart. #2199

Closed
Shandun opened this issue Jul 21, 2020 · 4 comments
Closed

Connection to server got closed. Server will restart. #2199

Shandun opened this issue Jul 21, 2020 · 4 comments

Comments

@Shandun
Copy link

Shandun commented Jul 21, 2020

Result from CocInfo

1 ## versions
1
2 vim version: VIM - Vi IMproved 8.1 8012269
3 node version: v10.19.0
4 coc.nvim version: 0.0.78-3afe7d5d7c
5 coc.nvim directory: /home/roro8/.vim/plugged/coc.nvim
6 term: dumb
7 platform: linux
8
9 ## Output channel: snippets
10
11 [Info 3:15:43 p.m.] Using ultisnips directories: UltiSnips /home/roro8/.config/coc/ultisnips
12 [Info 3:15:43 p.m.] Using ultisnips python command: pyx
13
14 ## Output channel: highlight
15
16 [Info - 3:15:43 p.m.] Highlight server running in node v10.19.0
17
18 ## Output channel: java
19
20 [Info - 3:15:47 p.m.] Connection to server got closed. Server will restart.
21 [Error - 3:15:47 p.m.] /usr/lib/jvm/java-8-openjdk-amd64/bin/java exited with code: 13
22 [Info - 3:15:49 p.m.] Connection to server got closed. Server will restart.
23 [Error - 3:15:49 p.m.] /usr/lib/jvm/java-8-openjdk-amd64/bin/java exited with code: 13
24 [Info - 3:15:50 p.m.] Connection to server got closed. Server will restart.
25 [Error - 3:15:50 p.m.] /usr/lib/jvm/java-8-openjdk-amd64/bin/java exited with code: 13
26 [Info - 3:15:51 p.m.] Connection to server got closed. Server will restart.
27 [Error - 3:15:51 p.m.] /usr/lib/jvm/java-8-openjdk-amd64/bin/java exited with code: 13
28 [Error - 3:15:53 p.m.] Connection to server got closed. Server will not be restarted.
29 [Error - 3:15:53 p.m.] /usr/lib/jvm/java-8-openjdk-amd64/bin/java exited with code: 13

Describe the bug

When I open vim to edit a java file, the language server do not work and I can not use command like gd

Reproduce the bug

We will close your issue when you don't provide minimal vimrc and we can't
reproduce it

" Install stable build
Plug 'neoclide/coc.nvim', {'branch': 'release'}

"go to definition
nmap gd (coc-definition)
nmap gy (coc-type-definition)
nmap gi (coc-implementation)
nmap gr (coc-references)


## Screenshots (optional)

If applicable, add screenshots to help explain your problem.
![image](https://user-images.githubusercontent.com/32905893/88113368-82d01880-cb66-11ea-89d8-dbae76097adf.png)
@fannheyward
Copy link
Member

Your Java language server is broken, how do you install it? Are you using coc-java?

Check https://github.com/neoclide/coc.nvim/wiki/Debug-language-server to get more info from language server.

@Shandun
Copy link
Author

Shandun commented Jul 22, 2020

Your Java language server is broken, how do you install it? Are you using coc-java?

Check https://github.com/neoclide/coc.nvim/wiki/Debug-language-server to get more info from language server.

Yes, I'm using coc-java, I finally found if we change to java 11, it's works fine, if change back to java 8, it breaks, but our project is base on java 8 so I hope someone could fix this bug if possible. Thank you.

@jkmrto
Copy link

jkmrto commented Nov 22, 2020

I was having a similar problem and the problem was related to jdt.ls. Hope this helps someone: neoclide/coc-java#99 (comment)

@baron-z
Copy link

baron-z commented Apr 22, 2024

删掉 CocConfig 中对应的文件, 例如
"directory": ".ccls-cache" 删掉 .ccls-cache 文件重新打开

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

No branches or pull requests

4 participants