-
Notifications
You must be signed in to change notification settings - Fork 719
Open
Labels
Description
Stack trace
[ERROR][2025-10-09 23:34:38] ...p/_transport.lua:36 "rpc" "npx" "stderr" "panic handling request completionItem/resolve runtime error: invalid memory address or nil pointer dereference goroutine 5844 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:26 +0x5e
github.com/microsoft/typescript-go/internal/lsp.(*Server).recover(0xc0000cedc0, 0xc00b418ed0)
github.com/microsoft/typescript-go/internal/lsp/server.go:542 +0x58
panic({0x7ff7442ec7a0?, 0x7ff744c3f680?})
runtime/panic.go:783 +0x132
github.com/microsoft/typescript-go/internal/ls.*LanguageService).getAutoImportSymbolFromCompletionEntryData(0xc00a10db48?, 0xc00523b908, {0xc00bae4ea8, 0x3}, 0xc0022d8af0)
github.com/microsoft/typescript-go/internal/ls/completions.go:5256 +0x323
github.com/microsoft/typescript-go/internal/ls.(*LanguageService).getSymbolCompletionFromItemData(0xc00bb558f0, {0x7ff74464de10, 0xc00b8f9400}, 0xc00523b908, 0xc00a8ee608, 0x3f6, 0xc006ce1780, 0xc0074c0d20?, 0xc00a10ddb8)
github.com/microsoft/typescript-go/internal/ls/completions.go:5158 +0xc5
github.com/microsoft/typescript-go/internal/ls.(*LanguageService).getCompletionItemDetails(0xc00bb558f0, {0x7ff74464de10, 0xc00b8f9400}, 0x6?, 0x3f6, 0xc00a8ee608, 0xc003e5b860, 0xc006ce1780, 0xc0001e2ba0, 0xc00a10ddb8)
github.com/microsoft/typescript-go/internal/ls/completions.go:5070 +0x129
github.com/microsoft/typescript-go/internal/ls.(*LanguageService).ResolveCompletionItem(0xc00bb558f0, {0x7ff74464de10, 0xc00b8f9400}, 0xc003e5b860, 0xc006ce1780, 0xc0001e2ba0, 0xc00a10ddb8)
github.com/microsoft/typescript-go/internal/ls/completions.go:5028 +0xb1
github.com/microsoft/typescript-go/internal/lsp.(*Server).handleCompletionItemResolve(0xc0000cedc0, {0x7ff74464de10, 0xc00b8f9400}, 0xc003e5b860, 0xc00b418ed0)
github.com/microsoft/typescript-go/internal/lsp/server.go:807 +0x187
github.com/microsoft/typescript-go/internal/lsp.init.func1.registerRequestHandler[...].26({0x7ff74464de10, 0xc00b8f9400}, 0xc00b418ed0)
github.com/microsoft/typescript-go/internal/lsp/server.go:504 +0xb6
github.com/microsoft/typescript-go/internal/lsp.(*Server).handleRequestOrNotification(0xc0000cedc0, {0x7ff74464de10, 0xc00b8f9400}, 0xc00b418ed0)
github.com/microsoft/typescript-go/internal/lsp/server.go:425 +0x10d
github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop.func1()
github.com/microsoft/typescript-go/internal/lsp/server.go:330 +0x3a
created by github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop in goroutine 10
github.com/microsoft/typescript-go/internal/lsp/server.go:350 +0x8aa"
[ERROR][2025-10-09 23:34:38] .../vim/lsp/rpc.lua:482 "No callback found for server response id 19"
[ERROR][2025-10-09 23:34:38] ...m/lsp/client.lua:1051 "LSP[ts_go_ls]" "on_error" { code = "NO_RESULT_CALLBACK_FOUND", err = { id = 19, jsonrpc = "2.0" } }
Steps to reproduce
- Open a ts file
- Try to use the autocomplete
Infos
I'm using Neovim and I launched the lsp with npx tsgo --lsp --stdio
The problem doesn't seem to appear with vs code so I assume it should work
Node : v22.16.0
tsgo: Version 7.0.0-dev.20251009.1
neovim: v0.11.3
I can provide my lsp config if needed