You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the code below, we are able to start the language server and then send a textDocument/definition request to it. We use an unrecognized uri://dockerfile/x.txt URI as the text document identifier.
When you run the code, you will get a strange error back. The output has been formatted for readability purposes.
{
"jsonrpc": "2.0",
"id": 2,
"error": {
"code": -32603,
"message": "Request textDocument/definition failed with message: path must be a string or Buffer"
}
}
With the code below, we are able to start the language server and then send a
textDocument/definition
request to it. We use an unrecognizeduri://dockerfile/x.txt
URI as the text document identifier.When you run the code, you will get a strange error back. The output has been formatted for readability purposes.
The reason is because
file
isundefined
in the code below. Thefs.exists
function does not like it so it throws an error back at the caller.https://github.com/rcjsuen/dockerfile-language-server-nodejs/blob/17693c2c5aeb6c2693e033f2c136fc113e57f09e/src/server.ts#L72-L81
The text was updated successfully, but these errors were encountered: