fwcd / fwcd/vscode-kotlin

[Bug] Extension seems to be not registered in VSCode

Open
#35 9 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
359
Forks
56
PR merge metrics
No merged PRs in 30d

Description

**Description**

1. Launching a kotlin debug configuration results in the following error message:
> Couldn't find a debug adapter descriptor for debug type 'kotlin' (extension might have failed to activate)

And the following error in the developer tools console:
```text
ERR timeout after 1000 ms: Error: timeout after 1000 ms
at t.RawDebugSession.handleErrorResponse (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3061:355)
at file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3060:679
at async t.RawDebugSession.shutdown (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:3058:772)
```

1. Running "Kotlin: Restart the Language Server" from the Command Palette results in the following error message:
> Command 'Kotlin: Restart the Language Server' resulted in an error (command kotlin.languageServer.restart' not found)

(the same error is also in developer tools console)

**Additional context**

There is also no mention of kotlin in my Extension Host log

**Reproducing**

1. 1. Create the following debug configuration:

```json
{
"version": "0.2.0",
"configurations": [
{
"type": "kotlin",
"request": "launch",
"name": "Kotlin Launch",
"projectRoot": "${workspaceFolder}",
"mainClass": "path.to.your.MainClassKt"
},
]
}
```

1. Launch the configuration
1. See error

1. 1. Run "Kotlin: Restart the Language Server" from the Command Palette
1. See error

**Environment**

Extension: 0.2.11
VSCode: 1.45.0 microsoft/vscode@d69a79b73808559a91206d73d7717ff5f798f23c
OS: Microsoft Windows 10.0.18363

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure with the supplied launch configuration and the “Kotlin: Restart the Language Server” command. Inspect the extension activation and registration path, then use the Extension Host log and developer tools console to compare behavior. Done means the Kotlin debug adapter and restart command are registered and both reproductions work.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin, typescript, vscode
Domain
developer-experience, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.