Skip to content

<semantic> TypeScript Server Error (5.9.3) No Project #300

@NullVoxPopuli

Description

@NullVoxPopuli

TypeScript version

5.9.3

System Info

❯ pnpm dlx envinfo --system --binaries --browsers
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +1
+
Progress: resolved 1, reused 0, downloaded 1, added 1, done

  System:
    OS: macOS 26.2
    CPU: (16) arm64 Apple M4 Max
    Memory: 20.57 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.12.0 - 🏠/.proto/tools/node/24.12.0/bin/node
    npm: 11.6.2 - 🏠/.proto/tools/node/24.12.0/bin/npm
    pnpm: 10.27.0 - 🏠/.proto/tools/pnpm/10.27.0/shims/pnpm
    bun: 1.3.3 - 🏠/.proto/shims/bun
  Browsers:
    Chrome: 144.0.7559.97
    Firefox: 147.0.2
    Safari: 26.2

Steps to reproduce

open a project for the first time (doesn't happen in all projects, just the giant one at work -- and I can't reproduce the problem in small projects :( )

trigger the "rename" action -- other actions work ok.
after triggering "rename", I get this stack:

Error on prepareRename: <semantic> TypeScript Server Error (5.9.3)
No Project.

Error: No Project.
    at Object.ThrowNoProject (<.pnpm>/typescript@5.9.3/node_modules/typescript/lib/typescript.js:186170:11)
    at IpcIOSession.getProjects (<.pnpm>/typescript@5.9.3/node_modules/typescript/lib/typescript.js:195732:21)
    at IpcIOSession.getRenameLocations (<.pnpm>/typescript@5.9.3/node_modules/typescript/lib/typescript.js:195752:27)
    at rename (<.pnpm>/typescript@5.9.3/node_modules/typescript/lib/typescript.js:194219:43)
    at <.pnpm>/typescript@5.9.3/node_modules/typescript/lib/typescript.js:196832:15
    at IpcIOSession.executeWithRequestId (<.pnpm>/typescript@5.9.3/node_modules/typescript/lib/typescript.js:196821:14)
    at IpcIOSession.executeCommand (<.pnpm>/typescript@5.9.3/node_modules/typescript/lib/typescript.js:196830:29)
    at IpcIOSession.onMessage (<.pnpm>/typescript@5.9.3/node_modules/typescript/lib/typescript.js:196878:68)
    at process.<anonymous> (<.pnpm>/typescript@5.9.3/node_modules/typescript/lib/_tsserver.js:519:14)
    at process.emit (node:events:508:28)
    at emit (node:internal/child_process:949:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

What is expected?

no error

What is actually happening?

the stack above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions