microsoft / microsoft/vscode-mono-debug
No response to initialize request
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 180
- Forks
- 182
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 1
Description
Issue:
The debug adapter doesn't respond to the following request:
Content-Length: 377\r\n\r\n{"type": "request", "seq": 1, "command": "initialize", "arguments": {"adapterID": "nvim-dap", "clientID": "neovim", "clientName": "neovim", "columnsStartAt1": true, "linesStartAt1": true, "locale": "en_US.UTF-8", "pathFormat": "path", "supportsProgressReporting": true, "supportsRunInTerminalRequest": true, "supportsStartDebuggingRequest": true, "supportsVariableType": true}}
Reason:
String.IndexOf(TWO_CRLF) returns -1 instead of the expected value 19
(related to: https://github.com/dotnet/runtime/issues/43736)
Fix:
Using a verbatim string solves the issue
protected const string TWO_CRLF = @"\r\n\r\n";
built using dotnet version 9.0.108
ran using mono version Mono JIT compiler version 6.8.0.105
on:
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the TWO_CRLF constant in the debug adapter and reproduce the initialize request described in the issue on Ubuntu with Mono. Verify that the delimiter is found and that the adapter responds to initialize; the issue's proposed verbatim-string change indicates the expected direction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100