Skip to content

[ServerErrors][JavaScript] main #65611

Open

Description

@typescript-automation

The following errors were reported by main
Pipeline that generated this bug
Logs for the pipeline run
File that generated the pipeline

This run considered 300 popular TS repos from GH (after skipping the top 0).

Successfully analyzed 244 of 300 visited repos
Outcome Count
Detected interesting changes 16
Detected no interesting changes 228
Timeout 26
Unknown failure 30

Seed: waIrpd;_#S@!IW&2g(gr

Activity

  1. typescript-automation commented on Nov 20, 2026

    @typescript-automation
    ContributorAuthor

    panic handling request textDocument/diagnostic: flaky diagnostic(s) logged:

    textDocument/diagnostic
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).recover(0x1923e968a708, 0x1923ecab3770)
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleDocumentDiagnostic(0x1923e968a708, {0x1cc7e30?, 0x1923ea3f5710?}, 0x1923e9a2dc00, 0x1923ea3f5740)
    github.com/microsoft/TypeScript/tsc/internal/lsp.handlerMap.registerLanguageServiceDocumentRequestHandler[...].1.1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleRequestOrNotification.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop.func3()
    created by github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop in goroutine 20
    

    Affected repos

    chartjs/Chart.js Raw error text: RepoResults1/chartjs.Chart.js.rawError.txt in the artifact folder
    Replay commands: RepoResults1/chartjs.Chart.js.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"request","method":"textDocument/diagnostic","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/controllers/controller.bubble.js"}}}
    {"kind":"request","method":"textDocument/codeLens","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/controllers/controller.bubble.js"}}}
    {"kind":"request","method":"textDocument/inlayHint","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/controllers/controller.bubble.js"},"range":{"start":{"line":0,"character":0},"end":{"line":169,"character":0}}}}
    {"kind":"request","method":"textDocument/semanticTokens/full","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/controllers/controller.bubble.js"}}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/chartjs/Chart.js --recurse-submodules
    git -C "./Chart.js" reset --hard 56682e54a082bc7a83d4e3c04f779ef0e0021a4f
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults1&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults1.zip "$downloadUrl"
    unzip -p RepoResults1.zip RepoResults1/chartjs.Chart.js.replay.txt > chartjs.Chart.js.replay.txt
    npm install --no-save @typescript/server-replay

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

  2. typescript-automation commented on Nov 20, 2026

    @typescript-automation
    ContributorAuthor

    panic handling request textDocument/typeDefinition: did not expect KindBinaryExpression to have KindIdentifier in its trivia

    textDocument/typeDefinition
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).recover(0x1e579cdac008, 0x1e57a912fd70)
    github.com/microsoft/TypeScript/tsc/internal/astnav.getTokenAtPosition(0x1e579d61d888, 0x328d, 0x0, 0x1ccb410)
    github.com/microsoft/TypeScript/tsc/internal/astnav.GetTouchingPropertyName(...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).provideTypeDefinitionAtPosition(0x1e57a334da00, {0x1cc7e30, 0x1e57a5064450}, 0x1e57a1738008, 0x1e579d61d888, 0x6?, 0x1)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).ProvideTypeDefinition(0x1e57a334da00, {0x1cc7e30, 0x1e57a5064450}, {0x1e57a0f229b0, 0x42}, {0x1e5?, 0x6?})
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleTypeDefinition(0x1e57a0f22910?, {0x1cc7e30?, 0x1e57a5064450?}, 0x1e57a51c9ec0?, 0xdf7e05?)
    github.com/microsoft/TypeScript/tsc/internal/lsp.handlerMap.registerLanguageServiceDocumentRequestHandler[...].1.1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleRequestOrNotification.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop.func3()
    created by github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop in goroutine 34
    

    Affected repos

    processing/p5.js Raw error text: RepoResults6/processing.p5.js.rawError.txt in the artifact folder
    Replay commands: RepoResults6/processing.p5.js.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"request","method":"textDocument/codeAction","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/io/p5.XML.js"},"range":{"start":{"line":485,"character":5},"end":{"line":485,"character":5}},"context":{"diagnostics":[],"only":["refactor"]}}}
    {"kind":"request","method":"textDocument/selectionRange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/io/p5.XML.js"},"positions":[{"line":485,"character":5}]}}
    {"kind":"request","method":"textDocument/rangeFormatting","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/io/p5.XML.js"},"range":{"start":{"line":485,"character":0},"end":{"line":495,"character":0}},"options":{"tabSize":3,"insertSpaces":true}}}
    {"kind":"request","method":"textDocument/typeDefinition","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/io/p5.XML.js"},"position":{"line":485,"character":6}}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/processing/p5.js --recurse-submodules
    git -C "./p5.js" reset --hard 717aceec39150a698c71e51b26b9864a6243e38f
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults6&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults6.zip "$downloadUrl"
    unzip -p RepoResults6.zip RepoResults6/processing.p5.js.replay.txt > processing.p5.js.replay.txt
    npm install --no-save @typescript/server-replay

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

  3. typescript-automation commented on Nov 20, 2026

    @typescript-automation
    ContributorAuthor

    panic handling request textDocument/completion: did not expect KindImportDeclaration to have KindIdentifier in its trivia

    textDocument/completion
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).recover(0x1c17eaaac008, 0x1c17f612cfc0)
    github.com/microsoft/TypeScript/tsc/internal/astnav.getTokenAtPosition(0x1c1802f46e08, 0x58, 0x1, 0x0)
    github.com/microsoft/TypeScript/tsc/internal/astnav.GetTokenAtPosition(...)
    github.com/microsoft/TypeScript/tsc/internal/ls.isInReferenceComment(0x1c1802f46e08, 0x58)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).getStringLiteralCompletions(0x1c180423c400, {0x1cc7e30, 0x1c17f19a1530}, 0x1c1802f46e08, 0x58, 0x1c17f767ce20, 0x1c18041bd808, 0x1c17ea858308, 0x0)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).getCompletionsAtPosition(0x1c180423c400, {0x1cc7e30, 0x1c17f19a1530}, 0x1c1802f46e08, 0x58, 0x0, 0x0)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).ProvideCompletion(0x1c180423c400, {0x1cc7e30, 0x1c17f19a1440}, {0x1c1810649650?, 0xb0000000a?}, {0xea9012c0?, 0x1c17?}, 0x1c18016a4830)
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleCompletion(0x0?, {0x1cc7e30?, 0x1c17f19a1440?}, 0x1c17f62dc540?, 0x0?)
    github.com/microsoft/TypeScript/tsc/internal/lsp.handlerMap.registerLanguageServiceWithAutoImportsRequestHandler[...].1.1.1()
    github.com/microsoft/TypeScript/tsc/internal/project.(*Session).WithLanguageServiceAndSnapshot.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleRequestOrNotification.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop.func3()
    created by github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop in goroutine 34
    

    Affected repos

    decolua/9router Raw error text: RepoResults4/decolua.9router.rawError.txt in the artifact folder
    Replay commands: RepoResults4/decolua.9router.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"request","method":"textDocument/selectionRange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/app/api/proxy-pools/cloudflare-deploy/route.js"},"positions":[{"line":1,"character":32}]}}
    {"kind":"request","method":"textDocument/completion","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/app/api/proxy-pools/cloudflare-deploy/route.js"},"position":{"line":1,"character":32},"context":{"triggerKind":1}}}
    {"kind":"request","method":"completionItem/resolve","params":{"label":"POST","kind":3,"sortText":"11","commitCharacters":[".",",",";"],"data":{"fileName":"@PROJECT_ROOT@/src/app/api/proxy-pools/cloudflare-deploy/route.js","position":86,"name":"POST"}}}
    {"kind":"request","method":"textDocument/completion","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/app/api/proxy-pools/cloudflare-deploy/route.js"},"position":{"line":1,"character":34},"context":{"triggerKind":1}}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/decolua/9router --recurse-submodules
    git -C "./9router" reset --hard 1855aa44473e88feac9d3f131b9c0c5fc9706b68
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults4&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults4.zip "$downloadUrl"
    unzip -p RepoResults4.zip RepoResults4/decolua.9router.replay.txt > decolua.9router.replay.txt
    npm install --no-save @typescript/server-replay

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

  4. typescript-automation commented on Nov 20, 2026

    @typescript-automation
    ContributorAuthor

    panic handling request textDocument/completion: did not expect KindCallExpression to have KindIdentifier in its trivia

    textDocument/completion
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).recover(0x2bc9bf66c008, 0x2bc9ca361b90)
    github.com/microsoft/TypeScript/tsc/internal/astnav.getTokenAtPosition(0x2bc9cd4f3508, 0x72753, 0x1, 0x0)
    github.com/microsoft/TypeScript/tsc/internal/astnav.GetTokenAtPosition(...)
    github.com/microsoft/TypeScript/tsc/internal/ls.isInReferenceComment(0x2bc9cd4f3508, 0x72753)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).getStringLiteralCompletions(0x2bc9c2885200, {0x1cc7e30, 0x2bc9c9478510}, 0x2bc9cd4f3508, 0x72753, 0x2bc9c373c580, 0x2bc9db4fa808, 0x2bc9bf9d0908, 0x0)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).getCompletionsAtPosition(0x2bc9c2885200, {0x1cc7e30, 0x2bc9c9478510}, 0x2bc9cd4f3508, 0x72753, 0x0, 0x0)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).ProvideCompletion(0x2bc9c2885200, {0x1cc7e30, 0x2bc9c9478060}, {0x2bc9d93d2600?, 0x505f53?}, {0xd48be0b0?, 0x2bc9?}, 0x2bc9c63a8120)
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleCompletion(0x3?, {0x1cc7e30?, 0x2bc9c9478060?}, 0x1d5b180?, 0x2bc9d48be0b0?)
    github.com/microsoft/TypeScript/tsc/internal/lsp.handlerMap.registerLanguageServiceWithAutoImportsRequestHandler[...].1.1.1()
    github.com/microsoft/TypeScript/tsc/internal/project.(*Session).WithLanguageServiceAndSnapshot.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleRequestOrNotification.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop.func3()
    created by github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop in goroutine 7
    

    Affected repos

    zhaoolee/ChromeAppHeroes Raw error text: RepoResults5/zhaoolee.ChromeAppHeroes.rawError.txt in the artifact folder
    Replay commands: RepoResults5/zhaoolee.ChromeAppHeroes.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"request","method":"textDocument/references","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/backup/118-immersive-translate/0.5.5_0/popup.js"},"position":{"line":12575,"character":23},"context":{"includeDeclaration":true}}}
    {"kind":"request","method":"textDocument/hover","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/backup/118-immersive-translate/0.5.5_0/popup.js"},"position":{"line":12575,"character":23}}}
    {"kind":"request","method":"textDocument/prepareCallHierarchy","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/backup/118-immersive-translate/0.5.5_0/popup.js"},"position":{"line":12575,"character":23}}}
    {"kind":"request","method":"textDocument/completion","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/backup/118-immersive-translate/0.5.5_0/popup.js"},"position":{"line":12575,"character":23},"context":{"triggerKind":1}}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/zhaoolee/ChromeAppHeroes --recurse-submodules
    git -C "./ChromeAppHeroes" reset --hard 50e71a3d291337d3c9d8a9ccfd07a0be115f04e1
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults5&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults5.zip "$downloadUrl"
    unzip -p RepoResults5.zip RepoResults5/zhaoolee.ChromeAppHeroes.replay.txt > zhaoolee.ChromeAppHeroes.replay.txt
    npm install --no-save @typescript/server-replay
    # Install the repro project's packages
    npx tsreplay install ./ChromeAppHeroes

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

  5. typescript-automation commented on Nov 20, 2026

    @typescript-automation
    ContributorAuthor

    panic handling request textDocument/references: Panics occurred during cross-project handling: [panic handling request: did not expect KindBinaryExpression to have KindIdentifier in its trivia

    textDocument/references
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).handleCrossProject[...].func2.1.1()
    github.com/microsoft/TypeScript/tsc/internal/astnav.getTokenAtPosition(0x170b53d0f188, 0x91ed, 0x0, 0x1ccb410)
    github.com/microsoft/TypeScript/tsc/internal/astnav.GetTouchingPropertyName(...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesAtLocation(0x170b0e9faa80, 0x170b0cde4f64?, 0x1?, 0x170b3f3f5b90, 0x1)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesInContainer(0x170b0e9faa80, 0x170b53d0f188, 0x170b53d0f188, 0x170b3f3f5b90, 0x1)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesInSourceFile(...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).searchForName(0x170b0e9faa80, 0x170b53d0f188, 0x170b3f3f5b90)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesInContainerOrFiles(0x170b0e9faa80, 0x170b0cde0670?, 0x170b3f3f5b90)
    github.com/microsoft/TypeScript/tsc/internal/ls.getReferencedSymbolsForSymbol({0x1cc7e30, 0x170b6778e5d0}, 0x170b142c0c08, 0x170b0cf8f930, 0x170b0cde0670, {0x170b0cf9a008, 0x763, 0x7ff}, 0x170b5f3b0c38, 0x170b0c425808, ...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).getReferencedSymbolsForNode(0x170b0d3e5400, {0x1cc7e30, 0x170b6778e5d0}, 0xf64, 0x170b0cde0670, 0x170b142c0c08, {0x170b0cf9a008, 0x763, 0x7ff}, {0x0, ...})
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).getSymbolAndEntries(0x170b14302e08?, {0x1cc7e30?, 0x170b6778e5d0?}, 0x1ccb410?, 0x170b362c0630?, 0x170b24394eb8?, 0x48?, 0x7c?)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).provideSymbolsAndEntriesAtPosition(0x170b0d3e5400, {0x1cc7e30, 0x170b6778e5d0}, 0x170b142c0c08, 0x170b14302e08, 0xf64, 0x0, 0x0)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).provideSymbolsAndEntries(0x170b0d3e5400, {0x1cc7e30, 0x170b6778e5d0}, {0x170b36d16d90?, 0x170b08ec7808?}, {0x8ec7d40?, 0x170b?}, 0x0, 0x0)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).handleCrossProject[...].func2.1()
    github.com/microsoft/TypeScript/tsc/internal/core.(*parallelWorkGroup).Queue.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).recover(0x170b08d24008, 0x170b3e1d6b10)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).handleCrossProject[...](0xfcfd20, {0x1cc7e30, 0x170b6778e5d0}, 0x170b6778e600, {0x1cc8418, 0x170b6778e690}, 0x1ccc940, 0x1ccc998, 0x0, 0x0, ...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).ProvideReferences(0x1cc7e30?, {0x1cc7e30?, 0x170b6778e5d0?}, 0x0?, {0x1cc8418?, 0x170b6778e690?})
    github.com/microsoft/TypeScript/tsc/internal/lsp.handlerMap.registerMultiProjectReferenceRequestHandler[...].1.1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleRequestOrNotification.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop.func3()
    created by github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop in goroutine 4
    

    Affected repos

    nosir/cleave.js Raw error text: RepoResults8/nosir.cleave.js.rawError.txt in the artifact folder
    Replay commands: RepoResults8/nosir.cleave.js.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"request","method":"textDocument/signatureHelp","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/addons/phone-type-formatter.lc.js"},"position":{"line":23,"character":470},"context":{"triggerCharacter":",","triggerKind":2,"isRetrigger":false}}}
    {"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/addons/phone-type-formatter.lc.js","version":4231},"contentChanges":[{"range":{"start":{"line":24,"character":5},"end":{"line":24,"character":525}},"text":""}]}}
    {"kind":"request","method":"textDocument/prepareCallHierarchy","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/addons/phone-type-formatter.lc.js"},"position":{"line":25,"character":63}}}
    {"kind":"request","method":"textDocument/references","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/addons/phone-type-formatter.lc.js"},"position":{"line":25,"character":122},"context":{"includeDeclaration":true}}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/nosir/cleave.js --recurse-submodules
    git -C "./cleave.js" reset --hard a966c95cf5193f223485a10eec8405bb32b8f6dd
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults8&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults8.zip "$downloadUrl"
    unzip -p RepoResults8.zip RepoResults8/nosir.cleave.js.replay.txt > nosir.cleave.js.replay.txt
    npm install --no-save @typescript/server-replay
    # Install the repro project's packages
    npx tsreplay install ./cleave.js

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

  6. typescript-automation commented on Nov 20, 2026

    @typescript-automation
    ContributorAuthor

    panic handling request textDocument/implementation: Panics occurred during cross-project handling: [panic handling request: did not expect KindBinaryExpression to have KindIdentifier in its trivia

    textDocument/implementation
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).handleCrossProject[...].func2.1.1()
    github.com/microsoft/TypeScript/tsc/internal/astnav.getTokenAtPosition(0x24d43555f188, 0xe77b, 0x0, 0x1ccb410)
    github.com/microsoft/TypeScript/tsc/internal/astnav.GetTouchingPropertyName(...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).provideSymbolsAndEntriesAtPosition(0x24d4387ef400, {0x1cc7e30, 0x24d43ca56990}, 0x24d424595008, 0x24d43555f188, 0xe77b, 0x0, 0x1)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).provideSymbolsAndEntries(0x24d4387ef400, {0x1cc7e30, 0x24d43ca56990}, {0x24d421bb8a20?, 0x0?}, {0x387ef400?, 0x24d4?}, 0x0, 0x1)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).handleCrossProject[...].func2.1()
    github.com/microsoft/TypeScript/tsc/internal/core.(*parallelWorkGroup).Queue.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).recover(0x24d41812e008, 0x24d441c58c90)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).handleCrossProject[...](0xfcfbe0, {0x1cc7e30, 0x24d43ca56990}, 0x24d43ca569c0, {0x1cc8418, 0x24d43ca56a50}, 0x1ccc930, 0x1ccc988, 0x0, 0x1, ...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).provideImplementationsEx(...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).ProvideImplementations(0x24d437ff3688?, {0x1cc7e30?, 0x24d43ca56990?}, 0x24d437ff3660?, {0x1cc8418?, 0x24d43ca56a50?})
    github.com/microsoft/TypeScript/tsc/internal/lsp.handlerMap.registerMultiProjectReferenceRequestHandler[...].1.1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleRequestOrNotification.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop.func3()
    created by github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop in goroutine 35
    

    Affected repos

    louislam/uptime-kuma Raw error text: RepoResults1/louislam.uptime-kuma.rawError.txt in the artifact folder
    Replay commands: RepoResults1/louislam.uptime-kuma.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"request","method":"textDocument/hover","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/server/server.js"},"position":{"line":1681,"character":3}}}
    {"kind":"request","method":"textDocument/completion","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/server/server.js"},"position":{"line":1681,"character":3},"context":{"triggerKind":1}}}
    {"kind":"request","method":"completionItem/resolve","params":{"label":"updateMonitorNotification","kind":3,"sortText":"11","commitCharacters":[".",",",";"],"data":{"fileName":"@PROJECT_ROOT@/server/server.js","position":59258,"name":"updateMonitorNotification"}}}
    {"kind":"request","method":"textDocument/implementation","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/server/server.js"},"position":{"line":1681,"character":4}}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/louislam/uptime-kuma --recurse-submodules
    git -C "./uptime-kuma" reset --hard b0cd0f1daf708a6c04f074c925a20e0229e80258
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults1&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults1.zip "$downloadUrl"
    unzip -p RepoResults1.zip RepoResults1/louislam.uptime-kuma.replay.txt > louislam.uptime-kuma.replay.txt
    npm install --no-save @typescript/server-replay
    # Install the repro project's packages
    npx tsreplay install ./uptime-kuma

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

  7. typescript-automation commented on Nov 20, 2026

    @typescript-automation
    ContributorAuthor

    panic handling request textDocument/hover: did not expect KindCallExpression to have KindIdentifier in its trivia

    textDocument/hover
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).recover(0x331712316e08, 0x331716084e70)
    github.com/microsoft/TypeScript/tsc/internal/astnav.getTokenAtPosition(0x331716d15508, 0x3ee50, 0x0, 0x1ccb410)
    github.com/microsoft/TypeScript/tsc/internal/astnav.GetTouchingPropertyName(...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).ProvideHover(0x3317175eee00, {0x1cc7e30, 0x331714f7e720}, 0x331714f7e750)
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleHover(0x100000001cc8418?, {0x1cc7e30?, 0x331714f7e720?}, 0x0?, 0x0?)
    github.com/microsoft/TypeScript/tsc/internal/lsp.handlerMap.registerLanguageServiceDocumentRequestHandler[...].1.1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleRequestOrNotification.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop.func3()
    created by github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop in goroutine 22
    

    Affected repos

    gorhill/uBlock Raw error text: RepoResults1/gorhill.uBlock.rawError.txt in the artifact folder
    Replay commands: RepoResults1/gorhill.uBlock.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/lib/codemirror/lib/codemirror.js","version":894},"contentChanges":[{"range":{"start":{"line":6332,"character":1},"end":{"line":6332,"character":2}},"text":""}]}}
    {"kind":"request","method":"textDocument/codeAction","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/lib/codemirror/lib/codemirror.js"},"range":{"start":{"line":6345,"character":33},"end":{"line":6345,"character":33}},"context":{"diagnostics":[],"only":["refactor"]}}}
    {"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/lib/codemirror/lib/codemirror.js","version":895},"contentChanges":[{"range":{"start":{"line":6346,"character":62},"end":{"line":6346,"character":62}},"text":"@"}]}}
    {"kind":"request","method":"textDocument/hover","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/lib/codemirror/lib/codemirror.js"},"position":{"line":6346,"character":64},"verbosityLevel":2}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/gorhill/uBlock --recurse-submodules
    git -C "./uBlock" reset --hard 4d6a3adc716c1a8e47167234f37279eb83613e66
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults1&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults1.zip "$downloadUrl"
    unzip -p RepoResults1.zip RepoResults1/gorhill.uBlock.replay.txt > gorhill.uBlock.replay.txt
    npm install --no-save @typescript/server-replay

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

  8. typescript-automation commented on Nov 20, 2026

    @typescript-automation
    ContributorAuthor

    panic handling request textDocument/hover: did not expect KindBinaryExpression to have KindIdentifier in its trivia

    textDocument/hover
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).recover(0x232bd66b6008, 0x232c03b4ec30)
    github.com/microsoft/TypeScript/tsc/internal/astnav.getTokenAtPosition(0x232bf28ea008, 0x22ccb, 0x0, 0x1ccb410)
    github.com/microsoft/TypeScript/tsc/internal/astnav.GetTouchingPropertyName(...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).ProvideHover(0x232bf0f69a00, {0x1cc7e30, 0x232c03ac8e40}, 0x232c03ac8e70)
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleHover(0x12?, {0x1cc7e30?, 0x232c03ac8e40?}, 0x2d?, 0x232c03c8a210?)
    github.com/microsoft/TypeScript/tsc/internal/lsp.handlerMap.registerLanguageServiceDocumentRequestHandler[...].1.1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleRequestOrNotification.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop.func3()
    created by github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop in goroutine 35
    

    Affected repos

    amark/gun Raw error text: RepoResults8/amark.gun.rawError.txt in the artifact folder
    Replay commands: RepoResults8/amark.gun.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"request","method":"textDocument/rename","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/test/mocha.js"},"position":{"line":6169,"character":3},"newName":"renamedSymbol"}}
    {"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/test/mocha.js","version":1001},"contentChanges":[{"range":{"start":{"line":6170,"character":64},"end":{"line":6170,"character":64}},"text":"x"}]}}
    {"kind":"request","method":"textDocument/rename","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/test/mocha.js"},"position":{"line":6171,"character":3},"newName":"renamedSymbol"}}
    {"kind":"request","method":"textDocument/hover","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/test/mocha.js"},"position":{"line":6171,"character":4},"verbosityLevel":4}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/amark/gun --recurse-submodules
    git -C "./gun" reset --hard 209413c09321b4612ed59990cd627cd805d5354d
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults8&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults8.zip "$downloadUrl"
    unzip -p RepoResults8.zip RepoResults8/amark.gun.replay.txt > amark.gun.replay.txt
    npm install --no-save @typescript/server-replay
    # Install the repro project's packages
    npx tsreplay install ./gun

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

  9. typescript-automation commented on Nov 20, 2026

    @typescript-automation
    ContributorAuthor

    Server connection closed prematurely: undefined

    unknown
    Server connection closed prematurely: undefined
    

    Affected repos

    react/react Raw error text: RepoResults1/react.react.rawError.txt in the artifact folder
    Replay commands: RepoResults1/react.react.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/react-client/src/ReactFlightClient.js","version":5657},"contentChanges":[{"range":{"start":{"line":3653,"character":6},"end":{"line":3653,"character":6}},"text":"`"}]}}
    {"kind":"request","method":"textDocument/hover","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/react-client/src/ReactFlightClient.js"},"position":{"line":3656,"character":30}}}
    {"kind":"request","method":"textDocument/completion","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/react-client/src/ReactFlightClient.js"},"position":{"line":3658,"character":10},"context":{"triggerKind":1}}}
    {"kind":"request","method":"textDocument/completion","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/react-client/src/ReactFlightClient.js"},"position":{"line":3663,"character":35},"context":{"triggerKind":1}}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/react/react --recurse-submodules
    git -C "./react" reset --hard 7b22099e3cfde41ea2fa27ebfbfc34623b4d1a4b
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults1&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults1.zip "$downloadUrl"
    unzip -p RepoResults1.zip RepoResults1/react.react.replay.txt > react.react.replay.txt
    npm install --no-save @typescript/server-replay

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

    react/create-react-app Raw error text: RepoResults1/react.create-react-app.rawError.txt in the artifact folder
    Replay commands: RepoResults1/react.create-react-app.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"request","method":"textDocument/selectionRange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/react-error-overlay/fixtures/bundle.mjs"},"positions":[{"line":24870,"character":3}]}}
    {"kind":"request","method":"textDocument/completion","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/react-error-overlay/fixtures/bundle.mjs"},"position":{"line":24870,"character":3},"context":{"triggerKind":1}}}
    {"kind":"request","method":"completionItem/resolve","params":{"label":"@abstract","kind":14,"sortText":"11","commitCharacters":[".",",",";"],"data":{"fileName":"@PROJECT_ROOT@/packages/react-error-overlay/fixtures/bundle.mjs","position":882037,"name":"@abstract"}}}
    {"kind":"request","method":"textDocument/hover","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/react-error-overlay/fixtures/bundle.mjs"},"position":{"line":24892,"character":3}}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/react/create-react-app --recurse-submodules
    git -C "./create-react-app" reset --hard 6254386531d263688ccfa542d0e628fbc0de0b28
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults1&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults1.zip "$downloadUrl"
    unzip -p RepoResults1.zip RepoResults1/react.create-react-app.replay.txt > react.create-react-app.replay.txt
    npm install --no-save @typescript/server-replay
    # Install the repro project's packages
    npx tsreplay install ./create-react-app

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

  10. typescript-automation commented on Nov 20, 2026

    @typescript-automation
    ContributorAuthor

    Server connection closed prematurely: undefined

    unknown
    Server connection closed prematurely: undefined
    

    Affected repos

    usebruno/bruno Raw error text: RepoResults2/usebruno.bruno.rawError.txt in the artifact folder
    Replay commands: RepoResults2/usebruno.bruno.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"request","method":"textDocument/definition","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/bruno-app/src/providers/ReduxStore/slices/global-environments.js"},"position":{"line":0,"character":37}}}
    {"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/bruno-app/src/providers/ReduxStore/slices/global-environments.js","version":3969},"contentChanges":[{"range":{"start":{"line":0,"character":47},"end":{"line":0,"character":47}},"text":" //comment"}]}}
    {"kind":"request","method":"textDocument/completion","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/bruno-app/src/providers/ReduxStore/slices/global-environments.js"},"position":{"line":2,"character":34},"context":{"triggerKind":1}}}
    {"kind":"request","method":"completionItem/resolve","params":{"label":"createSlice","kind":6,"sortText":"11","commitCharacters":[".",",",";"],"data":{"fileName":"@PROJECT_ROOT@/packages/bruno-app/src/providers/ReduxStore/slices/global-environments.js","position":135,"name":"createSlice"}}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/usebruno/bruno --recurse-submodules
    git -C "./bruno" reset --hard 87f3380c1dd3a4c629bc6cf60519215a532474ef
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults2&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults2.zip "$downloadUrl"
    unzip -p RepoResults2.zip RepoResults2/usebruno.bruno.replay.txt > usebruno.bruno.replay.txt
    npm install --no-save @typescript/server-replay
    # Install the repro project's packages
    npx tsreplay install ./bruno

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

    serverless/serverless Raw error text: RepoResults2/serverless.serverless.rawError.txt in the artifact folder
    Replay commands: RepoResults2/serverless.serverless.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"request","method":"textDocument/formatting","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/serverless/test/unit/lib/plugins/aws/mcp/validate.test.js"},"options":{"tabSize":4,"insertSpaces":true,"trimTrailingWhitespace":true,"trimFinalNewlines":true,"insertFinalNewline":true}}}
    {"kind":"notification","method":"textDocument/didClose","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/serverless/test/unit/lib/plugins/aws/mcp/discovery-route.test.js"}}}
    {"kind":"notification","method":"textDocument/didOpen","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/serverless/test/unit/lib/plugins/aws/mcp/entry/compose.test.js","languageId":"javascript","version":4827,"text":"import { describe, it, expect, jest } from '@jest/globals'\nimport path from 'node:path'\nimport { HTTPException } from 'hono/http-exception'\n\nconst composeModulePath =\n  '../../../../../../../lib/plugins/aws/mcp/entry/lib/compose.mjs'\n\nconst composeModule = await import(composeModulePath)\nconst { readEntryEnv, resolveServerModulePath, buildApp } = composeModule\n\n// A REST API (payload v1) event as API Gateway delivers it: `path` is the\n// stage-less resource path and `requestContext.path` carries the stage prefix.\n// The entry no longer reconstructs a client-facing URL from any of that, so the\n// event exists here only to prove the app is indifferent to it.\nconst restEvent = ({\n  path = '/crm/mcp',\n  stage = 'dev',\n  domainName = 'abc123.execute-api.us-east-1.amazonaws.com',\n  headers = {},\n} = {}) => ({\n  version: '1.0',\n  httpMethod: 'POST',\n  path,\n  headers: {\n    Host: domainName,\n    'X-Forwarded-Proto': 'https',\n    ...headers,\n  },\n  requestContext: { domainName, stage, path: `/${stage}${path}` },\n})\n\ndescribe('mcp entry composition', () => {\n  // The entry is transport and lifecycle only: token verification and\n  // protected-resource discovery are the deployment's to configure on the API,\n  // not this function's to perform. Nothing may reintroduce them here.\n  it('exports nothing but the environment, module and app composition', () => {\n    expect(Object.keys(composeModule).sort()).toEqual([\n      'buildApp',\n      'readEntryEnv',\n      'resolveServerModulePath',\n    ])\n  })\n\n  describe('readEntryEnv', () => {\n    it('names SERVERLESS_MCP_SERVER_MODULE when it is missing', () => {\n      expect(() => readEntryEnv({})).toThrow(/SERVERLESS_MCP_SERVER_MODULE/)\n    })\n\n    it('names SERVERLESS_MCP_SERVER_MODULE when it is empty', () => {\n      expect(() => readEntryEnv({ SERVERLESS_MCP_SERVER_MODULE: '' })).toThrow(\n        /SERVERLESS_MCP_SERVER_MODULE/,\n      )\n    })\n\n    it('teaches what the variable is and who sets it', () => {\n      expect(() => readEntryEnv({})).toThrow(/\"server:\" property/)\n    })\n\n    it('reads the module path with no state key', () => {\n      expect(\n        readEntryEnv({ SERVERLESS_MCP_SERVER_MODULE: 'src/crm.mjs' }),\n      ).toEqual({\n        serverModulePath: 'src/crm.mjs',\n        stateKeyRef: undefined,\n        region: undefined,\n        taskRoot: undefined,\n      })\n    })\n\n    it('carries the state key reference, region and task root through', () => {\n      expect(\n        readEntryEnv({\n          SERVERLESS_MCP_SERVER_MODULE: 'src/crm.mjs',\n          SERVERLESS_MCP_STATE_KEY_REF: 'arn:aws:secretsmanager:::secret:k',\n          AWS_REGION: 'eu-west-1',\n          LAMBDA_TASK_ROOT: '/var/task',\n        }),\n      ).toEqual({\n        serverModulePath: 'src/crm.mjs',\n        stateKeyRef: 'arn:aws:secretsmanager:::secret:k',\n        region: 'eu-west-1',\n        taskRoot: '/var/task',\n      })\n    })\n\n    // A function deployed by an earlier release still carries these in its\n    // environment. They describe verification this entry no longer performs, so\n    // they must not reappear in the configuration it reads.\n    it('reads nothing from the auth variables of an earlier release', () => {\n      const config = readEntryEnv({\n        SERVERLESS_MCP_SERVER_MODULE: 'src/crm.mjs',\n        SERVERLESS_MCP_AUTH_ISSUER: 'https://issuer.example.com',\n        SERVERLESS_MCP_AUTH_AUDIENCES: '[\"aud-one\"]',\n        SERVERLESS_MCP_PUBLIC_BASE_URL: 'https://api.acme.com/assistant',\n      })\n      expect(Object.keys(config).sort()).toEqual([\n        'region',\n        'serverModulePath',\n        'stateKeyRef',\n        'taskRoot',\n      ])\n    })\n  })\n\n  describe('resolveServerModulePath', () => {\n    const exists = (present) => (candidate) => present.includes(candidate)\n    // Both the stubbed filesystem and the expectations are built with the\n    // same `path.resolve` the resolver uses, so the assertions hold on every\n    // runner: on Windows, resolving against '/var/task' yields a\n    // drive-qualified backslash path, and a POSIX string literal would never\n    // match it.\n    const at = (relative) => path.resolve('/var/task', relative)\n\n    it('resolves against the task root', () => {\n      expect(\n        resolveServerModulePath({\n          modulePath: 'src/crm.mjs',\n          taskRoot: '/var/task',\n          exists: exists([at('src/crm.mjs')]),\n        }),\n      ).toBe(at('src/crm.mjs'))\n    })\n\n    it('finds the built JavaScript sibling of a TypeScript source path', () => {\n      // `server:` names the source file, but what ships in the artifact is\n      // whatever the bundler emitted next to it.\n      expect(\n        resolveServerModulePath({\n          modulePath: 'src/crm.ts',\n          taskRoot: '/var/task',\n          exists: exists([at('src/crm.js')]),\n        }),\n      ).toBe(at('src/crm.js'))\n    })\n\n    it('prefers the configured path over a sibling', () => {\n      expect(\n        resolveServerModulePath({\n          modulePath: 'src/crm.mjs',\n          taskRoot: '/var/task',\n          exists: exists([at('src/crm.mjs'), at('src/crm.js')]),\n        }),\n      ).toBe(at('src/crm.mjs'))\n    })\n\n    it('skips a TypeScript source that also reached the artifact', () => {\n      // `package.patterns` can ship the sources alongside the build output. A\n      // TypeScript path is never loadable at runtime — node20 refuses the\n      // extension outright and node22+ type-strips it, importing unbundled\n      // source with its bare imports unresolved — so it is not a candidate at\n      // all and the built sibling wins.\n      expect(\n        resolveServerModulePath({\n          modulePath: 'src/crm.ts',\n          taskRoot: '/var/task',\n          exists: exists([at('src/crm.ts'), at('src/crm.js')]),\n        }),\n      ).toBe(at('src/crm.js'))\n    })\n\n    // The rewrite packaging (and dev mode) performs names the emitted file\n    // outright; a leftover from an earlier build with another extension must\n    // not outrank it - an explicit path is never a probe.\n    it('takes an explicit .js path over a stale .mjs sibling', () => {\n      expect(\n        resolveServerModulePath({\n          modulePath: 'src/crm.js',\n          taskRoot: '/var/task',\n          exists: exists([at('src/crm.mjs'), at('src/crm.js')]),\n        }),\n      ).toBe(at('src/crm.js'))\n    })\n\n    it('probes .mjs ahead of .js', () => {\n      expect(\n        resolveServerModulePath({\n          modulePath: 'src/crm.ts',\n          taskRoot: '/var/task',\n          exists: exists([at('src/crm.js'), at('src/crm.mjs')]),\n        }),\n      ).toBe(at('src/crm.mjs'))\n    })\n\n    it('falls back to the working directory with no task root', () => {\n      const resolved = path.resolve(process.cwd(), 'src/crm.mjs')\n      expect(\n        resolveServerModulePath({\n          modulePath: 'src/crm.mjs',\n          taskRoot: undefined,\n          exists: exists([resolved]),\n        }),\n      ).toBe(resolved)\n    })\n\n    it('names the configured path and every candidate when none exists', () => {\n      let error\n      try {\n        resolveServerModulePath({\n          modulePath: 'src/crm.ts',\n          taskRoot: '/var/task',\n          exists: exists([]),\n        })\n      } catch (thrown) {\n        error = thrown\n      }\n      expect(error).toBeDefined()\n      expect(error.message).toContain('src/crm.ts')\n      expect(error.message).toContain(at('src/crm.js'))\n      expect(error.message).toContain(at('src/crm.mjs'))\n    })\n  })\n\n  describe('buildApp', () => {\n    const origin = 'https://abc123.execute-api.us-east-1.amazonaws.com'\n\n    const fakeHandler = (response) => ({\n      calls: [],\n      fetch(request, options) {\n        this.calls.push({ request, options })\n        return response ?? new Response('ok', { status: 202 })\n      },\n    })\n\n    const post = (app, { body = { jsonrpc: '2.0' }, headers = {} } = {}) =>\n      app.request(\n        `${origin}/crm/mcp`,\n        {\n          method: 'POST',\n          headers: { 'content-type': 'application/json', ...headers },\n          body: JSON.stringify(body),\n        },\n        { event: restEvent() },\n      )\n\n    it('builds without logging the host-guard warning at cold start', () => {\n      // `createMcpHonoApp({ host: '0.0.0.0' })` warns about \"binding without\n      // DNS rebinding protection\" — advice that does not apply behind API\n      // Gateway. Every cold start would print it to the user's logs.\n      const warn = jest.spyOn(console, 'warn').mockImplementation(() => {})\n      try {\n        buildApp({ mcpHandler: fakeHandler() })\n        expect(warn).not.toHaveBeenCalled()\n      } finally {\n        warn.mockRestore()\n      }\n    })\n\n    it('forwards to the handler with the pre-parsed body', async () => {\n      const mcpHandler = fakeHandler()\n      const app = buildApp({ mcpHandler })\n      const response = await post(app)\n      expect(response.status).toBe(202)\n      expect(mcpHandler.calls).toHaveLength(1)\n      expect(mcpHandler.calls[0].options).toEqual({\n        parsedBody: { jsonrpc: '2.0' },\n      })\n    })\n\n    it('returns the handler response verbatim', async () => {\n      const handlerResponse = new Response('body', {\n        status: 207,\n        headers: { 'x-marker': 'from-handler' },\n      })\n      const app = buildApp({ mcpHandler: fakeHandler(handlerResponse) })\n      const response = await post(app)\n      expect(response).toBe(handlerResponse)\n      expect(response.headers.get('x-marker')).toBe('from-handler')\n    })\n\n    it('hands the untouched raw request to the handler', async () => {\n      const mcpHandler = fakeHandler()\n      const app = buildApp({ mcpHandler })\n      await post(app, { headers: { authorization: 'Bearer whatever' } })\n      const [{ request }] = mcpHandler.calls\n      expect(request.method).toBe('POST')\n      expect(new URL(request.url).pathname).toBe('/crm/mcp')\n      // The entry does not read, strip or act on the Authorization header — it\n      // belongs to the user's server (and to the API's own authorizer).\n      expect(request.headers.get('authorization')).toBe('Bearer whatever')\n    })\n\n    // One MCP server per function means one catch-all route: there is no path\n    // or method the app answers on its own.\n    it.each([\n      ['GET', '/crm/mcp'],\n      ['DELETE', '/crm/mcp'],\n      ['OPTIONS', '/crm/mcp'],\n      ['GET', '/.well-known/oauth-protected-resource/crm/mcp'],\n      ['POST', '/anything/else'],\n    ])('routes %s %s to the handler', async (method, requestPath) => {\n      const mcpHandler = fakeHandler()\n      const app = buildApp({ mcpHandler })\n      const response = await app.request(\n        `${origin}${requestPath}`,\n        { method },\n        { event: restEvent({ path: requestPath }) },\n      )\n      expect(response.status).toBe(202)\n      expect(mcpHandler.calls).toHaveLength(1)\n    })\n\n    // Hono's `#handleError` rethrows anything that is not an `Error`, so these\n    // escape `app.fetch` unless the route catches them — and the Lambda bridge\n    // answers an escaped rejection with error text and no prelude, i.e. a 200.\n    it.each([\n      ['a thrown string', 'boom'],\n      ['a rejected plain object', { code: -32000 }],\n      ['a rejected null', null],\n    ])(\n      'answers a 500 when the handler fails with %s',\n      async (_label, thrown) => {\n        const error = jest.spyOn(console, 'error').mockImplementation(() => {})\n        try {\n          const app = buildApp({\n            mcpHandler: {\n              fetch: async () => {\n                throw thrown\n              },\n            },\n          })\n          const response = await post(app)\n\n          expect(response.status).toBe(500)\n          // Nothing of the throwable reaches the client.\n          expect(await response.text()).toBe('Internal Server Error')\n          // The body is text, and says so - the sibling 500 hono answers for a\n          // plain `Error` carries the same content type, so the two 500s a\n          // client can see are not told apart by their headers.\n          expect(response.headers.get('content-type')).toBe(\n            'text/plain; charset=UTF-8',\n          )\n          expect(error).toHaveBeenCalled()\n        } finally {\n          error.mockRestore()\n        }\n      },\n    )\n\n    // A plain `Error` is Hono's to answer, and it answers 500 — so the status a\n    // client sees does not depend on what the server threw.\n    it('leaves a plain Error to hono, which answers 500', async () => {\n      const error = jest.spyOn(console, 'error').mockImplementation(() => {})\n      try {\n        const app = buildApp({\n          mcpHandler: {\n            fetch: async () => {\n              throw new Error('boom')\n            },\n          },\n        })\n        const response = await post(app)\n\n        expect(response.status).toBe(500)\n        // The content type the guard's own 500 is matched against.\n        expect(response.headers.get('content-type')).toBe(\n          'text/plain; charset=UTF-8',\n        )\n      } finally {\n        error.mockRestore()\n      }\n    })\n\n    // The reason the guard has to stop at `Error`: Hono's error handler serves\n    // anything carrying `getResponse` verbatim, which is how a server emits its\n    // own challenge. Swallowing it would turn a documented 401 into a flat 500.\n    it('serves an HTTPException from the handler verbatim', async () => {\n      const app = buildApp({\n        mcpHandler: {\n          fetch: async () => {\n            throw new HTTPException(401, {\n              res: new Response('nope', {\n                status: 401,\n                headers: {\n                  'www-authenticate':\n                    'Bearer resource_metadata=\"https://api.acme.com/.well-known/oauth-protected-resource\"',\n                },\n              }),\n            })\n          },\n        },\n      })\n      const response = await post(app)\n\n      expect(response.status).toBe(401)\n      expect(response.headers.get('www-authenticate')).toBe(\n        'Bearer resource_metadata=\"https://api.acme.com/.well-known/oauth-protected-resource\"',\n      )\n      expect(await response.text()).toBe('nope')\n    })\n\n    it('never answers a request without a token itself', async () => {\n      const mcpHandler = fakeHandler()\n      const app = buildApp({ mcpHandler })\n      const response = await post(app)\n      expect(response.status).toBe(202)\n      expect(response.headers.get('www-authenticate')).toBeNull()\n    })\n  })\n})\n"}}}
    {"kind":"request","method":"textDocument/codeAction","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/packages/serverless/test/unit/lib/plugins/aws/mcp/entry/compose.test.js"},"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":0}},"context":{"diagnostics":[],"only":["source.organizeImports"]}}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/serverless/serverless --recurse-submodules
    git -C "./serverless" reset --hard 0c1a2bb23e06ab912c38377c50bcad18959d14f0
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults2&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults2.zip "$downloadUrl"
    unzip -p RepoResults2.zip RepoResults2/serverless.serverless.replay.txt > serverless.serverless.replay.txt
    npm install --no-save @typescript/server-replay

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

  11. typescript-automation commented on Nov 20, 2026

    @typescript-automation
    ContributorAuthor

    Server connection closed prematurely: undefined

    unknown
    Server connection closed prematurely: undefined
    

    Affected repos

    tastejs/todomvc Raw error text: RepoResults4/tastejs.todomvc.rawError.txt in the artifact folder
    Replay commands: RepoResults4/tastejs.todomvc.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/examples/typescript-react/js/bundle.js","version":1220},"contentChanges":[{"range":{"start":{"line":20934,"character":5},"end":{"line":20934,"character":6}},"text":""}]}}
    {"kind":"request","method":"textDocument/signatureHelp","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/examples/typescript-react/js/bundle.js"},"position":{"line":20934,"character":329},"context":{"triggerCharacter":"(","triggerKind":2,"isRetrigger":false}}}
    {"kind":"request","method":"textDocument/hover","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/examples/typescript-react/js/bundle.js"},"position":{"line":20934,"character":340},"verbosityLevel":5}}
    {"kind":"request","method":"textDocument/onTypeFormatting","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/examples/typescript-react/js/bundle.js"},"position":{"line":20935,"character":34},"ch":"}","options":{"tabSize":4,"insertSpaces":true}}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/tastejs/todomvc --recurse-submodules
    git -C "./todomvc" reset --hard ff43b02e59dfa604386bb382034b2cd07c2bcd8a
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults4&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults4.zip "$downloadUrl"
    unzip -p RepoResults4.zip RepoResults4/tastejs.todomvc.replay.txt > tastejs.todomvc.replay.txt
    npm install --no-save @typescript/server-replay
    # Install the repro project's packages
    npx tsreplay install ./todomvc

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

  12. typescript-automation commented on Nov 20, 2026

    @typescript-automation
    ContributorAuthor

    panic handling request textDocument/implementation: Panics occurred during cross-project handling: [panic handling request: did not expect KindCallExpression to have KindIdentifier in its trivia

    textDocument/implementation
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).handleCrossProject[...].func2.1.1()
    github.com/microsoft/TypeScript/tsc/internal/astnav.getTokenAtPosition(0x3b00482b4008, 0xb50a, 0x0, 0x1ccb410)
    github.com/microsoft/TypeScript/tsc/internal/astnav.GetTouchingPropertyName(...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesAtLocation(0x3b00393f5e00, 0x3b0031e6c1c6?, 0x5?, 0x3b003f172d90, 0x1)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesInContainer(0x3b00393f5e00, 0x3b00482b4008, 0x3b00482b4008, 0x3b003f172d90, 0x1)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesInSourceFile(...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).searchForName(0x3b00393f5e00, 0x3b00482b4008, 0x3b003f172d90)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesInContainerOrFiles(0x3b00393f5e00, 0x3b0039fbcb88?, 0x3b003f172d90)
    github.com/microsoft/TypeScript/tsc/internal/ls.getReferencedSymbolsForSymbol({0x1cc7e30, 0x3b004798b740}, 0x3b0032d9bc08, 0x3b00334f6000, 0x3b0039fbcb88, {0x3b0031f93408, 0x49d, 0x49f}, 0x3b0043268730, 0x3b0045581808, ...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).getReferencedSymbolsForNode(0x3b0037cc6200, {0x1cc7e30, 0x3b004798b740}, 0xbe8f, 0x3b0039fbcb88, 0x3b0032d9bc08, {0x3b0031f93408, 0x49d, 0x49f}, {0x0, ...})
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).getSymbolAndEntries(0x3b00482b4008?, {0x1cc7e30?, 0x3b004798b740?}, 0x1ccb410?, 0x3b0047a550d0?, 0x3b0039a43e00?, 0x48?, 0x9c?)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).provideSymbolsAndEntriesAtPosition(0x3b0037cc6200, {0x1cc7e30, 0x3b004798b740}, 0x3b0032d9bc08, 0x3b00482b4008, 0xbe8f, 0x0, 0x1)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).provideSymbolsAndEntries(0x3b0037cc6200, {0x1cc7e30, 0x3b004798b740}, {0x3b003bbb2cc0?, 0x0?}, {0x0?, 0x0?}, 0x0, 0x1)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).handleCrossProject[...].func2.1()
    github.com/microsoft/TypeScript/tsc/internal/core.(*parallelWorkGroup).Queue.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).recover(0x3b0031f9ee08, 0x3b0047a3b230)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).handleCrossProject[...](0xfcfbe0, {0x1cc7e30, 0x3b004798b740}, 0x3b004798b770, {0x1cc8418, 0x3b0049a37650}, 0x1ccc930, 0x1ccc988, 0x0, 0x1, ...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).provideImplementationsEx(...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).ProvideImplementations(0x3b0056219e00?, {0x1cc7e30?, 0x3b004798b740?}, 0xdf9c45?, {0x1cc8418?, 0x3b0049a37650?})
    github.com/microsoft/TypeScript/tsc/internal/lsp.handlerMap.registerMultiProjectReferenceRequestHandler[...].1.1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleRequestOrNotification.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop.func3()
    created by github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop in goroutine 25
    

    Affected repos

    bilawalsidhu/gods-eye-view Raw error text: RepoResults1/bilawalsidhu.gods-eye-view.rawError.txt in the artifact folder
    Replay commands: RepoResults1/bilawalsidhu.gods-eye-view.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/scenes/director.test.mjs","version":4710},"contentChanges":[{"range":{"start":{"line":1215,"character":5},"end":{"line":1215,"character":5}},"text":"&"}]}}
    {"kind":"request","method":"custom/textDocument/sourceDefinition","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/scenes/director.test.mjs"},"position":{"line":1215,"character":16}}}
    {"kind":"notification","method":"textDocument/didChange","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/scenes/director.test.mjs","version":4711},"contentChanges":[{"range":{"start":{"line":1218,"character":1},"end":{"line":1218,"character":1}},"text":"."}]}}
    {"kind":"request","method":"textDocument/implementation","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/src/scenes/director.test.mjs"},"position":{"line":1218,"character":17}}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/bilawalsidhu/gods-eye-view --recurse-submodules
    git -C "./gods-eye-view" reset --hard 41c792208e73f2ded123844cfce41fe88fd6d4f3
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults1&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults1.zip "$downloadUrl"
    unzip -p RepoResults1.zip RepoResults1/bilawalsidhu.gods-eye-view.replay.txt > bilawalsidhu.gods-eye-view.replay.txt
    npm install --no-save @typescript/server-replay
    # Install the repro project's packages
    npx tsreplay install ./gods-eye-view

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

  13. typescript-automation commented on Nov 20, 2026

    @typescript-automation
    ContributorAuthor

    panic handling request textDocument/implementation: Panics occurred during cross-project handling: [panic handling request: did not expect KindCallExpression to have KindIdentifier in its trivia

    textDocument/implementation
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).handleCrossProject[...].func2.1.1()
    github.com/microsoft/TypeScript/tsc/internal/astnav.getTokenAtPosition(0x5d48e8e9508, 0xae8, 0x0, 0x1ccb410)
    github.com/microsoft/TypeScript/tsc/internal/astnav.GetTouchingPropertyName(...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesAtLocation(0x5d48cb75680, 0x5d4887dfdc4?, 0x7?, 0x5d498d08f50, 0x1)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesInContainer(0x5d48cb75680, 0x5d48e8e9508, 0x5d48e8e9508, 0x5d498d08f50, 0x1)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesInSourceFile(...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).searchForName(0x5d48cb75680, 0x5d48e8e9508, 0x5d498d08f50)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesInContainerOrFiles(0x5d48cb75680, 0x5d48e4ef150?, 0x5d498d08f50)
    github.com/microsoft/TypeScript/tsc/internal/ls.getReferencedSymbolsForSymbol({0x1cc7e30, 0x5d4917404b0}, 0x5d4929fb408, 0x5d48e509558, 0x5d48e4ef150, {0x5d48d95c808, 0xe6, 0xff}, 0x5d498af8940, 0x5d499680008, ...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).getReferencedSymbolsForNode(0x5d48e896200, {0x1cc7e30, 0x5d4917404b0}, 0xec4, 0x5d48e4ef150, 0x5d4929fb408, {0x5d48d95c808, 0xe6, 0xff}, {0x0, ...})
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).getSymbolAndEntries(0x5d48e8e9508?, {0x1cc7e30?, 0x5d4917404b0?}, 0x1ccb410?, 0x5d48c2ebd20?, 0x5d498ccc7b8?, 0x48?, 0x1c?)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).provideSymbolsAndEntriesAtPosition(0x5d48e896200, {0x1cc7e30, 0x5d4917404b0}, 0x5d4929fb408, 0x5d48e8e9508, 0xec4, 0x0, 0x1)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).provideSymbolsAndEntries(0x5d48e896200, {0x1cc7e30, 0x5d4917404b0}, {0x5d48c9bd4a0?, 0x0?}, {0x0?, 0x0?}, 0x0, 0x1)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).handleCrossProject[...].func2.1()
    github.com/microsoft/TypeScript/tsc/internal/core.(*parallelWorkGroup).Queue.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).recover(0x5d488a2c008, 0x5d4917402a0)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).handleCrossProject[...](0xfcfbe0, {0x1cc7e30, 0x5d4917404b0}, 0x5d4917404e0, {0x1cc8418, 0x5d491740810}, 0x1ccc930, 0x1ccc988, 0x0, 0x1, ...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).provideImplementationsEx(...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).ProvideImplementations(0x5d48dac5e88?, {0x1cc7e30?, 0x5d4917404b0?}, 0x5d48dac5e60?, {0x1cc8418?, 0x5d491740810?})
    github.com/microsoft/TypeScript/tsc/internal/lsp.handlerMap.registerMultiProjectReferenceRequestHandler[...].1.1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleRequestOrNotification.func1()
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop.func3()
    created by github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop in goroutine 34
    

    Affected repos

    request/request Raw error text: RepoResults5/request.request.rawError.txt in the artifact folder
    Replay commands: RepoResults5/request.request.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"request","method":"textDocument/hover","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/tests/test-defaults.js"},"position":{"line":143,"character":0}}}
    {"kind":"request","method":"textDocument/typeDefinition","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/tests/test-defaults.js"},"position":{"line":147,"character":28}}}
    {"kind":"request","method":"textDocument/documentHighlight","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/tests/test-defaults.js"},"position":{"line":153,"character":19}}}
    {"kind":"request","method":"textDocument/implementation","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/tests/test-defaults.js"},"position":{"line":154,"character":4}}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/request/request --recurse-submodules
    git -C "./request" reset --hard 3c0cddc7c8eb60b470e9519da85896ed7ee0081e
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults5&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults5.zip "$downloadUrl"
    unzip -p RepoResults5.zip RepoResults5/request.request.replay.txt > request.request.replay.txt
    npm install --no-save @typescript/server-replay

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

  14. typescript-automation commented on Nov 20, 2026

    @typescript-automation
    ContributorAuthor

    panic: Panics occurred during cross-project handling: [panic handling request: did not expect KindArrayLiteralExpression to have KindIdentifier in its trivia

    unknown
    	github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).handleCrossProject[...].func2.1.1()
    	github.com/microsoft/TypeScript/tsc/internal/astnav.getTokenAtPosition(0x1b06b25dca88, 0x11c528, 0x0, 0x1ccb410)
    	github.com/microsoft/TypeScript/tsc/internal/astnav.GetTouchingPropertyName(...)
    	github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesAtLocation(0x1b06877fef00, 0x1b06a8b31145?, 0x7?, 0x1b068e8403f0, 0x1)
    	github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesInContainer(0x1b06877fef00, 0x1b06b25dca88, 0x1b06b25dca88, 0x1b068e8403f0, 0x1)
    	github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesInSourceFile(...)
    	github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).searchForName(0x1b06877fef00, 0x1b06b25dca88, 0x1b068e8403f0)
    	github.com/microsoft/TypeScript/tsc/internal/ls.(*refState).getReferencesInContainerOrFiles(0x1b06877fef00, 0x1b067dde91c0?, 0x1b068e8403f0)
    	github.com/microsoft/TypeScript/tsc/internal/ls.getReferencedSymbolsForSymbol({0x1cc7e30, 0x1b06869d17a0}, 0x1b069170a008, 0x1b067dc45820, 0x1b067dde91c0, {0x1b0683ec6008, 0x48c, 0x49f}, 0x1b0683dfd068, 0x1b0679eb1808, ...)
    	github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).getReferencedSymbolsForNode(0x1b067e6d9200, {0x1cc7e30, 0x1b06869d17a0}, 0x11f145, 0x1b067dde91c0, 0x1b069170a008, {0x1b0683ec6008, 0x48c, 0x49f}, {0x0, ...})
    	github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).getSymbolAndEntries(0x1b067dde91c0?, {0x1cc7e30?, 0x1b06869d17a0?}, 0x1ccb410?, 0x1b067cb44e20?, 0x1b068b29d610?, 0x48?, 0xcc?)
    	github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).provideSymbolsAndEntriesAtPosition(0x1b067e6d9200, {0x1cc7e30, 0x1b06869d17a0}, 0x1b069170a008, 0x1b06b25dca88, 0x11f145, 0x1, 0x0)
    	github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).provideSymbolsAndEntries(0x1b067e6d9200, {0x1cc7e30, 0x1b06869d17a0}, {0x1b067a275000?, 0x0?}, {0x0?, 0x0?}, 0x1, 0x0)
    	github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).handleCrossProject[...].func2.1()
    	github.com/microsoft/TypeScript/tsc/internal/core.(*parallelWorkGroup).Queue.func1()
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).handleCrossProject[...](0xfcfb40, {0x1cc7e30, 0x1b06869d17a0}, 0x1b06869d17d0, {0x1cc8418, 0x1b06869d1860}, 0x1ccb5d8, 0x1ccb5e8, 0x1, 0x0, ...)
    github.com/microsoft/TypeScript/tsc/internal/ls.(*LanguageService).ProvideRename(...)
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleRename(0x1b067a040008, {0x1cc7e30, 0x1b06869d17a0}, 0x1b06869d17d0, 0x1b0686f0c840)
    github.com/microsoft/TypeScript/tsc/internal/lsp.handlerMap.registerRequestHandler[...].1({0x1cc7e30, 0x1b06869d17a0}, 0x1b0686f0c840)
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).handleRequestOrNotification(0x1b067a040008, {0x1cc7e68?, 0x1b0688177590?}, 0x1b0686f0c840)
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).dispatchLoop(0x1b067a040008, {0x1cc7e68?, 0x1b067a034050?})
    github.com/microsoft/TypeScript/tsc/internal/lsp.(*Server).Run.func1()
    

    Affected repos

    overleaf/overleaf Raw error text: RepoResults8/overleaf.overleaf.rawError.txt in the artifact folder
    Replay commands: RepoResults8/overleaf.overleaf.replay.txt in the artifact folder

    Old server result

    The old server completed successfully for this repo.

    Last few requests

    {"kind":"request","method":"custom/textDocument/sourceDefinition","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/services/web/app/src/Features/Metadata/packageMapping.mjs"},"position":{"line":50413,"character":12}}}
    {"kind":"request","method":"textDocument/signatureHelp","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/services/web/app/src/Features/Metadata/packageMapping.mjs"},"position":{"line":50415,"character":4},"context":{"triggerKind":1,"isRetrigger":false}}}
    {"kind":"request","method":"textDocument/onTypeFormatting","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/services/web/app/src/Features/Metadata/packageMapping.mjs"},"position":{"line":50415,"character":4},"ch":"}","options":{"tabSize":4,"insertSpaces":true}}}
    {"kind":"request","method":"textDocument/rename","params":{"textDocument":{"uri":"@PROJECT_ROOT_URI@/services/web/app/src/Features/Metadata/packageMapping.mjs"},"position":{"line":50431,"character":6},"newName":"renamedSymbol"}}
    

    Repro steps

    #!/bin/bash
    
    git clone https://github.com/overleaf/overleaf --recurse-submodules
    git -C "./overleaf" reset --hard e039ad26c5bf5422eb57b89fc7e57c75055e631d
    downloadUrl=$(curl -s "https://typescript.visualstudio.com/TypeScript/_apis/build/builds/170310/artifacts?artifactName=RepoResults8&api-version=7.0" | jq -r ".resource.downloadUrl")
    wget -O RepoResults8.zip "$downloadUrl"
    unzip -p RepoResults8.zip RepoResults8/overleaf.overleaf.replay.txt > overleaf.overleaf.replay.txt
    npm install --no-save @typescript/server-replay

    To run the repro, use the "Launch replay test" launch configuration in your local copy of native TypeScript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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