Open shanur00 opened 2 weeks ago
There may be a network error when downloading the language server, try deleting the files in
C:\Users\SHAHNUR\AppData\Local\coc\extensions\coc-kotlin-data\
and try again.
Still encounter same problem. Whe I run .bat file
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Content-Length: 127
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"main Kotlin Language Server: Version 1.3.12"}}Content-Length: 108
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"main Connected to client"}}
and got this
And also got this in languageserver.kotlin
[Error - 4:47:12 PM] Connection to server kotlin is erroring, write EPIPE. Shutting down server.
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:159:15)
at writeGeneric (node:internal/stream_base_commons:150:3)
at Socket._writeGeneric (node:net:958:11)
at Socket._write (node:net:970:8)
at writeOrBuffer (node:internal/streams/writable:572:12)
at _write (node:internal/streams/writable:501:10)
at Writable.write (node:internal/streams/writable:510:10)
at C:\Users\SHAHNUR\AppData\Local\nvim\plugged\coc.nvim\build\index.js:69886:25
at new Promise (<anonymous>)
at WritableStreamWrapper.write (C:\Users\SHAHNUR\AppData\Local\nvim\plugged\coc.nvim\build\index.js:69875:16)
[Error - 4:47:12 PM] Stopping server failed
Error: Client is not running and can't be stopped. It's current state is: 1
at LanguageClient.shutdown (C:\Users\SHAHNUR\AppData\Local\nvim\plugged\coc.nvim\build\index.js:122826:17)
at LanguageClient.stop (C:\Users\SHAHNUR\AppData\Local\nvim\plugged\coc.nvim\build\index.js:122815:21)
at LanguageClient.stop (C:\Users\SHAHNUR\AppData\Local\nvim\plugged\coc.nvim\build\index.js:123378:22)
at LanguageClient.handleConnectionError (C:\Users\SHAHNUR\AppData\Local\nvim\plugged\coc.nvim\build\index.js:122974:16)
at errorHandler (C:\Users\SHAHNUR\AppData\Local\nvim\plugged\coc.nvim\build\index.js:122918:16)
at C:\Users\SHAHNUR\AppData\Local\nvim\plugged\coc.nvim\build\index.js:121991:5
at CallbackList.invoke (C:\Users\SHAHNUR\AppData\Local\nvim\plugged\coc.nvim\build\index.js:67712:35)
at _Emitter.fire (C:\Users\SHAHNUR\AppData\Local\nvim\plugged\coc.nvim\build\index.js:67771:34)
at writeErrorHandler (C:\Users\SHAHNUR\AppData\Local\nvim\plugged\coc.nvim\build\index.js:68770:22)
at CallbackList.invoke (C:\Users\SHAHNUR\AppData\Local\nvim\plugged\coc.nvim\build\index.js:67712:35)
[Error - 4:47:12 PM] Server initialization failed.
Message: write EPIPE
Code: -32099
[Error - 4:47:12 PM] kotlin client: couldn't create connection to server.
Message: write EPIPE
Code: -32099
[Info - 4:47:12 PM] Connection to server got closed. Server will restart.
Error: Invalid or corrupt jarfile C:\Users\SHAHNUR\AppData\Local\coc\extensions\coc-kotlin-data\langServerInstall\server\bin\kotlin-language-server
[Error - 4:47:12 PM] java exited with code: 1
Error: Invalid or corrupt jarfile C:\Users\SHAHNUR\AppData\Local\coc\extensions\coc-kotlin-data\langServerInstall\server\bin\kotlin-language-server
[Error - 4:47:13 PM] java exited with code: 1
[Info - 4:47:13 PM] Connection to server got closed. Server will restart.
[Error - 4:47:13 PM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 4:47:13 PM] kotlin client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
Error: Invalid or corrupt jarfile C:\Users\SHAHNUR\AppData\Local\coc\extensions\coc-kotlin-data\langServerInstall\server\bin\kotlin-language-server
[Info - 4:47:13 PM] Connection to server got closed. Server will restart.
[Error - 4:47:13 PM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 4:47:13 PM] kotlin client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 4:47:13 PM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 4:47:13 PM] java exited with code: 1
Error: Invalid or corrupt jarfile C:\Users\SHAHNUR\AppData\Local\coc\extensions\coc-kotlin-data\langServerInstall\server\bin\kotlin-language-server
[Error - 4:47:13 PM] Connection to server got closed. Server will not be restarted.
[Error - 4:47:13 PM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 4:47:13 PM] kotlin client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 4:47:13 PM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 4:47:13 PM] java exited with code: 1
I simply tested on Windows, and the issue is reproduced in both Neovim and Vscode. It may be a kotlin-language-server issue, or it may be an Open-JDK version incompatible. It takes some time to test and figure out the problem.
I'll keep testing to see if the current version of kotlin-language-server works on Windows.
Result from CocInfo
Workspace showOutput
Extension version
Which version of the extension you are running.
Additional context
More information or screenshots.