-
Notifications
You must be signed in to change notification settings - Fork 865
Open
Labels
Description
Stack trace
panic: cache entry not found [recovered, repanicked]
goroutine 34 [running]:
github.com/microsoft/typescript-go/internal/project.(*Snapshot).Clone.func1()
github.com/microsoft/typescript-go/internal/project/snapshot.go:238 +0xb8
panic({0x103a53680?, 0x103cce9d8?})
runtime/panic.go:860 +0x12c
github.com/microsoft/typescript-go/internal/project.(*RefCountCache[...]).Ref(0x103cf1ea0, {{{0x72ab06218c00, 0x71}, {0x72ab15344980, 0x71}, {0x0, 0x0}}, 0x3, {0xabad6dd56cc8caf0, 0x95c165df8124d237}})
github.com/microsoft/typescript-go/internal/project/refcountcache.go:64 +0x1c4
github.com/microsoft/typescript-go/internal/project.(*Snapshot).Clone(0x72ab69659200, {0x103cdb1d8, 0x72ab6a8ae660}, {{{0x72ab6844cfa0, 0x1, 0x1}, {0x0, 0x0, 0x0}, 0x0, ...}, ...}, ...)
github.com/microsoft/typescript-go/internal/project/snapshot.go:449 +0x1318
github.com/microsoft/typescript-go/internal/project.(*Session).UpdateSnapshot(0x72ab05f1e000, {0x103cdb1d8, 0x72ab6a8ae660}, 0x72ab6a8ae6c0, {{{0x72ab6844cfa0, 0x1, 0x1}, {0x0, 0x0, 0x0}, ...}, ...})
github.com/microsoft/typescript-go/internal/project/session.go:653 +0xd8
github.com/microsoft/typescript-go/internal/project.(*Session).getSnapshot(0x72ab05f1e000, {0x103cdb1d8, 0x72ab6a8ae660}, {{0x72ab6844cfa0, 0x1, 0x1}, {0x0, 0x0, 0x0}, 0x0, ...})
github.com/microsoft/typescript-go/internal/project/session.go:461 +0x314
github.com/microsoft/typescript-go/internal/project.(*Session).getSnapshotAndDefaultProject(0x72ab05f1e000, {0x103cdb1d8, 0x72ab6a8ae660}, {0x72ab4d10fd50, 0x6a})
github.com/microsoft/typescript-go/internal/project/session.go:512 +0xb0
github.com/microsoft/typescript-go/internal/project.(*Session).GetLanguageServiceAndSnapshot(0x88d623c091e?, {0x103cdb1d8?, 0x72ab6a8ae660?}, {0x72ab4d10fd50?, 0x164585270268c?})
github.com/microsoft/typescript-go/internal/project/session.go:533 +0x28
github.com/microsoft/typescript-go/internal/lsp.init.func1.registerLanguageServiceWithAutoImportsRequestHandler[...].28({0x103cdb1d8, 0x72ab6a8ae660}, 0x72ab4faf7440)
github.com/microsoft/typescript-go/internal/lsp/server.go:
767 +0xa0
github.com/microsoft/typescript-go/internal/lsp.(*Server).handleRequestOrNotification(0x72ab05d06e08, {0x103cdb210?, 0x72ab6a715720?}, 0x72ab4faf7440)
github.com/microsoft/typescript-go/internal/lsp/server.go:599 +0xc8
github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop(0x72ab05d06e08, {0x103cdb210?, 0x72ab05ca6000?})
github.com/microsoft/typescript-go/internal/lsp/server.go:483 +0x368
github.com/microsoft/typescript-go/internal/lsp.(*Server).Run.func1()
github.com/microsoft/typescript-go/internal/lsp/server.go:346 +0x24
golang.org/x/sync/errgroup.(*Group).Go.func1()
golang.org/x/sync@v0.19.0/errgroup/errgroup.go:93 +0x4c
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 1
golang.org/x/sync@v0.19.0/errgroup/errgroup.go:78 +0x90
StdIO connection closed
Exit code: 2
Command line: /Users/noel/work/revenuemarket-web/node_modules/@typescript/native-preview-darwin-arm64/lib/tsgo --lsp --stdio
Steps to reproduce
Sorry I cannot make reproduce about it, only occurs on our private monorepo(turborepo) repository.
Version: 7.0.0-dev.20260312.1
Reactions are currently unavailable