micro-plugin-lsp icon indicating copy to clipboard operation
micro-plugin-lsp copied to clipboard

Nushell LSP failing

Open robaca opened this issue 1 month ago • 0 comments

Trying ´nu --lsp` from NuShell 0.108.0 as LSP provider, I get the following debug log:

2025/11/20 12:41:29 Starting server nu
2025/11/20 12:41:29 Received message for  nu map[id:0 jsonrpc:2.0 result:map[capabilities:map[completionProvider:map[] definitionProvider:true documentHighligh
tProvider:true documentSymbolProvider:true hoverProvider:true inlayHintProvider:true referencesProvider:map[workDoneProgress:true] renameProvider:map[preparePr
ovider:true workDoneProgress:true] semanticTokensProvider:map[full:true legend:map[tokenModifiers:map[] tokenTypes:map[1:function]]] signatureHelpProvider:map[
] textDocumentSync:2 workspace:map[workspaceFolders:map[changeNotifications:true supported:true]] workspaceSymbolProvider:true]]]
2025/11/20 12:41:29 Found running lsp server for  nu firing textDocument/didOpen...
2025/11/20 12:41:29 ONSTDERR Error:
2025/11/20 12:41:29 ONSTDERR   × malformed LSP payload: Error("invalid escape", line: 1, column: 100)
2025/11/20 12:41:29 ONSTDERR


2025/11/20 12:41:29 ONEXIT nu Content-Length: 578

{"jsonrpc":"2.0","id":0,"result":{"capabilities":{"textDocumentSync":2,"hoverProvider":true,"completionProvider":{},"signatureHelpProvider":{},"definitionProvi
der":true,"referencesProvider":{"workDoneProgress":true},"documentHighlightProvider":true,"documentSymbolProvider":true,"workspaceSymbolProvider":true,"renameP
rovider":{"prepareProvider":true,"workDoneProgress":true},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":true}},"semanticTokensProvide
r":{"legend":{"tokenTypes":["function"],"tokenModifiers":[]},"full":true},"inlayHintProvider":true}}}Error:   × malformed LSP payload: Error("invalid escape",
line: 1, column: 100)

robaca avatar Nov 20 '25 11:11 robaca