I keep getting crashes of my LSP running in PhpStorm (on Windows). The code lives in WSL.
The LSP crashes without restarting.
This is not specific to a single file or specific typescript content.
panic:
lsproto.DocumentUri("overlay not found for changed file: file:///home/nc/flow/packages/node-table/src/NodeTableContext.tsx")
goroutine 10 [running]:
github.com/microsoft/typescript-go/internal/project.(*overlayFS).processChanges(0x2c7b3d628000, {0x2c7b8890a1e0, 0x1, 0x2c7b69ddd668?})
github.com/microsoft/typescript-go/internal/project/overlayfs.go:350 +0x1479
github.com/microsoft/typescript-go/internal/project.(*Session).flushChangesLocked(0x2c7b3d632008, {0x4cd014?, 0xd81580?})
github.com/microsoft/typescript-go/internal/project/session.go:1449 +0xb9
github.com/microsoft/typescript-go/internal/project.(*Session).flushChanges(0x2c7b3d632008, {0x1172818, 0x2c7b88b1ed50})
github.com/microsoft/typescript-go/internal/project/session.go:1430 +0x1e5
github.com/microsoft/typescript-go/internal/project.(*Session).getSnapshot(0x2c7b3d632008, {0x1172818, 0x2c7b88b1ed50}, {{0x2c7b8fd45ef0, 0x1, 0x1}, {0x0, 0x0, 0x0}, {0x0, ...}, ...}, ...)
github.com/microsoft/typescript-go/internal/project/session.go:913 +0x108
github.com/microsoft/typescript-go/internal/project.(*Session).getSnapshotAndDefaultProject(0x2c7b3d632008, {0x1172818, 0x2c7b88b1ed50}, {0x2c7b88b4c6e0, 0x41}, 0x0)
github.com/microsoft/typescript-go/internal/project/session.go:976 +0x13d
github.com/microsoft/typescript-go/internal/project.(*Session).GetLanguageService(0x116e220?, {0x1172818?, 0x2c7b88b1ed50?}, {0x2c7b88b4c6e0?, 0x0?})
github.com/microsoft/typescript-go/internal/project/session.go:989 +0x25
github.com/microsoft/typescript-go/internal/lsp.init.func1.registerLanguageServiceDocumentRequestHandler[...].14({0x1172818, 0x2c7b88b1ed50}, 0x2c7b88b1ecc0)
github.com/microsoft/typescript-go/internal/lsp/server.go:865 +0x85
github.com/microsoft/typescript-go/internal/lsp.(*Server).handleRequestOrNotification(0x2c7b3d47d508, {0x1172850?, 0x2c7b83717ea0?}, 0x2c7b88b1ecc0)
github.com/microsoft/typescript-go/internal/lsp/server.go:703 +0xec
github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop(0x2c7b3d47d508, {0x1172850?, 0x2c7b3d428500?})
github.com/microsoft/typescript-go/internal/lsp/server.go:577 +0x445
github.com/microsoft/typescript-go/internal/lsp.(*Server).Run.func1()
github.com/microsoft/typescript-go/internal/lsp/server.go:426 +0x1f
golang.org/x/sync/errgroup.(*Group).Go.func1()
golang.org/x/sync@v0.21.0/errgroup/errgroup.go:93 +0x50
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 1
golang.org/x/sync@v0.21.0/errgroup/errgroup.go:78 +0x95
StdIO connection closed
Exit code: 2
Command line: //wsl.localhost/Ubuntu/home/nc/flow/node_modules/.pnpm/@typescript+typescript-linux-x64@7.0.2/node_modules/@typescript/typescript-linux-x64/lib/tsc --lsp --stdio
No crash or at least restart or recover somehow without user interaction.
π Search Terms
"overlay not found for changed file"
π Version & Regression Information
β― Playground Link
No response
π» Code
No response
π Actual behavior
I keep getting crashes of my LSP running in PhpStorm (on Windows). The code lives in WSL.
The LSP crashes without restarting.
This is not specific to a single file or specific typescript content.
π Expected behavior
No crash or at least restart or recover somehow without user interaction.
Additional information about the issue
No response