-
Notifications
You must be signed in to change notification settings - Fork 780
Open
Labels
Description
Stack trace
panic: cache entry not found [recovered, repanicked]
goroutine 97392 [running]:
github.com/microsoft/typescript-go/internal/project.(*Snapshot).Clone.func1()
github.com/microsoft/typescript-go/internal/project/snapshot.go:220 +0xc0
panic({0x10581aaa0?, 0x105a5c620?})
runtime/panic.go:783 +0x120
github.com/microsoft/typescript-go/internal/project.(*RefCountCache[...]).Ref(0x105a73060, {0x1403f9dca00, 0x40})
github.com/microsoft/typescript-go/internal/project/refcountcache.go:62 +0x198
github.com/microsoft/typescript-go/internal/project.(*Snapshot).Clone(0x1405df64b00, {0x105a67a68, 0x1405c2dd8f0}, {{{0x14018a50660, 0x1, 0x1}, {0x0, 0x0, 0x0}, 0x0}, ...}, ...)
github.com/microsoft/typescript-go/internal/project/snapshot.go:406 +0xff0
github.com/microsoft/typescript-go/internal/project.(*Session).UpdateSnapshot(0x1400031cea0, {0x105a67a68, 0x1405c2dd8f0}, 0x1405c2ddaa0, {{{0x14018a50660, 0x1, 0x1}, {0x0, 0x0, 0x0}, ...}, ...})
github.com/microsoft/typescript-go/internal/project/session.go:520 +0x7c
github.com/microsoft/typescript-go/internal/project.(*Session).getSnapshot(0x1400031cea0, {0x105a67a68, 0x1405c2dd8f0}, {{0x14018a50660, 0x1, 0x1}, {0x0, 0x0, 0x0}, 0x0})
github.com/microsoft/typescript-go/internal/project/session.go:398 +0x2b0
github.com/microsoft/typescript-go/internal/project.(*Session).getSnapshotAndDefaultProject(0x1400031cea0, {0x105a67a68, 0x1405c2dd8f0}, {0x1400f5836c0, 0x70})
github.com/microsoft/typescript-go/internal/project/session.go:448 +0xa4
github.com/microsoft/typescript-go/internal/project.(*Session).GetLanguageService(0x1404a84c6e8?, {0x105a67a68?, 0x1405c2dd8f0?}, {0x1400f5836c0?, 0x1404a84c6a8?})
github.com/microsoft/typescript-go/internal/project/session.go:460 +0x28
github.com/microsoft/typescript-go/internal/lsp.init.func1.registerLanguageServiceDocumentRequestHandler[...].24({0x105a67a68, 0x1405c2dd8f0}, 0x1405cd56db0)
github.com/microsoft/typescript-go/internal/lsp/server.go:612 +0x94
github.com/microsoft/typescript-go/internal/lsp.(*Server).handleRequestOrNotification(0x140001a2008, {0x105a67aa0?, 0x1408398a2d0?}, 0x1405cd56db0)
github.com/microsoft/typescript-go/internal/lsp/server.go:501 +0x128
github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop.func1()
github.com/microsoft/typescript-go/internal/lsp/server.go:404 +0x34
created by github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop in goroutine 19
github.com/microsoft/typescript-go/internal/lsp/server.go:424 +0x7a0
Exit code: 2
Command line: /Users/renatoaraujoc/Projects/rcambiental/node_modules/@typescript/native-preview-darwin-arm64/lib/tsgo --lsp --stdio
StdIO connection closed