- Notifications
You must be signed in to change notification settings - Fork664
Open
Labels
Description
letx=someCall()/**/
Request completions at the/**/
cursor.
Expected: completions for infix operators at least, likesatisfes
,in
,as
, whatever.
Actual
panic handling request textDocument/completion runtime error: invalid memory address or nil pointer dereference goroutine 4464 [running]:runtime/debug.Stack()runtime/debug/stack.go:26 +0x64github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop.func1.1()github.com/microsoft/typescript-go/internal/lsp/server.go:357 +0x54panic({0x7ff6a477cbc0?, 0x7ff6a4fa1390?})runtime/panic.go:792 +0x124github.com/microsoft/typescript-go/internal/ls.getArgumentInfoForCompletions(0x400f82b780?, 0x400f82b730?, 0x400f82b6f1?, 0x400f82b6f3?)github.com/microsoft/typescript-go/internal/ls/completions.go:4574 +0x70github.com/microsoft/typescript-go/internal/ls.getContextualType(0x4011b5a600, 0x401263db88?, 0x400e1e3908?, 0x400e1e3908)github.com/microsoft/typescript-go/internal/ls/completions.go:2658 +0x198github.com/microsoft/typescript-go/internal/ls.getCompletionData(0x4010150c40?, 0x400e1e3908, 0x401263db88, 0x13, 0x400f82be70)github.com/microsoft/typescript-go/internal/ls/completions.go:1461 +0xc00github.com/microsoft/typescript-go/internal/ls.(*LanguageService).getCompletionsAtPosition(0x4011b5a360, {0x7ff6a4a79d10, 0x40138cab40}, 0x4012dcafc0, 0x401263db88, 0x13, 0x0, 0x400f82be70, 0x40001d9530)github.com/microsoft/typescript-go/internal/ls/completions.go:353 +0x21cgithub.com/microsoft/typescript-go/internal/ls.(*LanguageService).ProvideCompletion(0x4011b5a360, {0x7ff6a4a79d10, 0x40138cab40}, {0x40108491d0?, 0x40002e2000?}, {0x54a43f0?, 0x40?}, 0x401095fb30, 0x40001d9530, 0x4005fcbe70)github.com/microsoft/typescript-go/internal/ls/completions.go:42 +0xb8github.com/microsoft/typescript-go/internal/lsp.(*Server).handleCompletion(0x4000000b40, {0x7ff6a4a79d10, 0x40138cab40}, 0x4010980780)github.com/microsoft/typescript-go/internal/lsp/server.go:734 +0xe4github.com/microsoft/typescript-go/internal/lsp.(*Server).handleRequestOrNotification(0x4005fcbf68?, {0x7ff6a4a79d10?, 0x40138cab40?}, 0x7ff6a46138a0?)github.com/microsoft/typescript-go/internal/lsp/server.go:488 +0x134github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop.func1()github.com/microsoft/typescript-go/internal/lsp/server.go:370 +0x70created by github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop in goroutine 9github.com/microsoft/typescript-go/internal/lsp/server.go:388 +0x484[Error - 11:51:26 AM] Request textDocument/completion failed. Message: InternalError: panic handling request textDocument/completion: runtime error: invalid memory address or nil pointer dereference Code: -32603