fwcd / fwcd/kotlin-language-server
The Kotlin Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.
- Dominant language
- Kotlin
- Stars
- 2k
- Forks
- 252
- PR merge metrics
- No merged PRs in 30d
Description
I have just installed this extension in VS Code Insiders 1.26.0 on a Windows 10 x64 machine. However, when opening Kotlin projects, I get the message I put in the title. The Kotlin output window only shows this:
```
[Info - 9:52:56 AM] Connection to server got closed. Server will restart.
[Info - 9:52:56 AM] Connection to server got closed. Server will restart.
[Info - 9:52:56 AM] Connection to server got closed. Server will restart.
[Info - 9:52:56 AM] Connection to server got closed. Server will restart.
[Error - 9:52:56 AM] Connection to server got closed. Server will not be restarted.
```
And when looking in DevTools, I see this:
```
ERR Message header must separate key and value using :: Error: Message header must separate key and value using :
at C:\Users\Noah\.vscode-insiders\extensions\fwcd.kotlin-0.1.7\node_modules\vscode-jsonrpc\lib\messageReader.js:68:23
at Array.forEach ()
at MessageBuffer.tryReadHeaders (C:\Users\Noah\.vscode-insiders\extensions\fwcd.kotlin-0.1.7\node_modules\vscode-jsonrpc\lib\messageReader.js:65:17)
at StreamMessageReader.onData (C:\Users\Noah\.vscode-insiders\extensions\fwcd.kotlin-0.1.7\node_modules\vscode-jsonrpc\lib\messageReader.js:194:43)
at Socket. (C:\Users\Noah\.vscode-insiders\extensions\fwcd.kotlin-0.1.7\node_modules\vscode-jsonrpc\lib\messageReader.js:185:19)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at addChunk (_stream_readable.js:263:12)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at Pipe.onread (net.js:594:20)
```
That message is repeated 4 or 5 times in fast succession. Any solutions to this?
```
C:\Users\Noah\Desktop\kotlin> java -version
java version "1.8.0_151"
Java(TM) SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)
C:\Users\Noah\Desktop\kotlin> kotlin -version
Kotlin version 1.2.60-eap-75 (JRE 1.8.0_151-b12)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the crash by opening a Kotlin project in VS Code Insiders and review the Kotlin output and DevTools trace. Start with node_modules/vscode-jsonrpc/lib/messageReader.js, especially the reported header-parsing location; done means the language server stays running without repeated connection closures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, kotlin, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100