serve-d.exe bug
Betty King
jimbrett0712 at gmail.com
Thu Jun 13 07:57:20 UTC 2024
On Thursday, 21 March 2024 at 10:49:29 UTC, WebFreak001 wrote:
> On Wednesday, 13 March 2024 at 21:48:02 UTC, Loire wrote:
>> serve-d_0.7.6-windows-x86_64
>>
>> A successful shutdown request/response and then a request
>> ```JS
>> {"jsonrpc":"2.0","id":6,"method":"exit"}
>> ```
>> gave a response
>> ```JS
>> {"error":{"code":-32601,"data":null,"message":"Request method
>> exit not found"},"id":6,"jsonrpc":"2.0"}
>> ```
>> https://microsoft.github.io/language-server-protocol/specifications/specification-3-14/#exit
>
> you specified an `"id"`, which makes this a request and not a
> notification (thus the "Request method not found" error), which
> would require a response.
>
> Remove the `"id"` to make it a notification like the spec says,
> then serve-d will handle it properly. [io
> games](https://iogames.games)
>
> Also you are looking at an old spec version there - it's easy
> to miss updates on it if you e.g. bookmark the pages, so a
> friendly reminder to check that you are implementing the right
> spec version right now.
If possible, consider using a version control system (e.g., Git)
to track changes to the specification. This will allow you to
easily see what has been updated between different versions.
More information about the Digitalmars-d-ide
mailing list