fwcd / fwcd/kotlin-language-server
Kotlin Language server not starting (to do with incorrect headers)
- Dominant language
- Kotlin
- Stars
- 2k
- Forks
- 252
- PR merge metrics
- No merged PRs in 30d
Description
Using VS Code Kotlin (fwcd.kotlin) extension. The extension installed the language server, and on startup, gave the error:
"Kotlin language server crashed 5 times in the last 3 minutes and will not be restarted"
The following errors are displayed in developer tools
```
register @ workbench.desktop.main.js:1732
workbench.desktop.main.js:71 [Extension Host] Extension: [INFO] Activating Kotlin Language Server...
workbench.desktop.main.js:71 [Extension Host] Extension: [INFO] Connecting via Stdio.
workbench.desktop.main.js:71 [Extension Host] Extension: [INFO] Creating client at c:\Users\user1\AppData\Roaming\Code\User\globalStorage\fwcd.kotlin\langServerInstall\server\bin\kotlin-language-server.bat
workbench.desktop.main.js:1849 [[object Object]]Message header must separate key and value using :
$onExtensionRuntimeError @ workbench.desktop.main.js:1849
workbench.desktop.main.js:1849 Error: Message header must separate key and value using :
at s.tryReadHeaders (c:\Users\user1\.vscode\extensions\fwcd.kotlin-0.2.23\dist\extension.js:2:829640)
at f.onData (c:\Users\user1\.vscode\extensions\fwcd.kotlin-0.2.23\dist\extension.js:2:832971)
at Socket. (c:\Users\user1\.vscode\extensions\fwcd.kotlin-0.2.23\dist\extension.js:2:832766)
at Socket.emit (events.js:315:20)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
at Socket.Readable.push (internal/streams/readable.js:223:10)
at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)
```
```
The last two errors are repeated 4 more times in order
Finally, this message is displayed.
`workbench.desktop.main.js:786 The Kotlin Language Client server crashed 5 times in the last 3 minutes. The server will not be restarted.
onDidChangeNotification @ workbench.desktop.main.js:786
workbench.desktop.main.js:1849 Activating extension 'fwcd.kotlin' failed: Connection to server got closed. Server will not be restarted..
```
Uncaught errors in the Runtime Status Tab under the fwcd.kotlin extension:
```
Message header must separate key and value using :
Message header must separate key and value using :
Message header must separate key and value using :
Message header must separate key and value using :
Message header must separate key and value using :
```
VS Code Version:
```
Version: 1.61.2 (user setup)
Commit: 6cba118ac49a1b88332f312a8f67186f7f3c1643
Date: 2021-10-19T14:57:20.575Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19042
```
```
Java version:13.0.2
Java Installation directory (%JAVA_HOME%) :C:\Program Files\Java\jdk-13.0.2\bin\java.exe
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.