Skip to content

TypeScript: occurrences request failed with error #23278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mjbvz opened this issue Apr 9, 2018 · 7 comments
Closed

TypeScript: occurrences request failed with error #23278

mjbvz opened this issue Apr 9, 2018 · 7 comments
Labels
Bug A bug in TypeScript Needs More Info The issue still hasn't been fully clarified

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Apr 9, 2018

From @bpasero on April 9, 2018 9:5

Saw this today in selfhost in the file textFileEditorModel.ts using TS 2.8.1:

[Error  - 11:01:49 AM] 'occurrences' request failed with error.
Error processing request. Debug Failure. Did not expect MethodDeclaration to have an Identifier in its trivia
Error: Debug Failure. Did not expect MethodDeclaration to have an Identifier in its trivia
    at NodeObject.addSyntheticNodes (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:83665:34)
    at processNode (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:83709:29)
    at NodeObject.createChildren (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:83723:21)
    at NodeObject.getChildren (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:83749:22)
    at getTokenAtPositionWorker (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:66283:43)
    at getTouchingToken (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:66270:16)
    at Object.getTouchingPropertyName (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:66266:16)
    at getReferencesAtLocation (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:71721:44)
    at getReferencesInContainer (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:71717:21)
    at getReferencesInSourceFile (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:71709:24)
    at searchForName (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:71578:21)
    at getReferencedSymbolsForSymbol (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:71434:29)
    at Object.getReferencedSymbolsForNode (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:71349:24)
    at Object.getReferenceEntriesForNode (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:71192:58)
    at getSemanticDocumentHighlights (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:70200:57)
    at Object.getDocumentHighlights (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:70189:20)
    at getDocumentHighlights (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:84687:42)
    at Object.getOccurrencesAtPosition (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:84672:31)
    at IOSession.Session.getOccurrences (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:91137:64)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:90743:61)
    at /Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:92067:88
    at IOSession.Session.executeWithRequestId (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:92058:28)
    at IOSession.Session.executeCommand (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:92067:33)
    at IOSession.Session.onMessage (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:92087:35)
    at Interface.<anonymous> (/Applications/Visual Studio Code - Exploration.app/Contents/Resources/app/extensions/node_modules/typescript/lib/tsserver.js:93288:27)
    at emitOne (events.js:116:13)
    at Interface.emit (events.js:211:7)
    at Interface._onLine (readline.js:282:10)
    at Interface._normalWrite (readline.js:424:12)
    at Socket.ondata (readline.js:141:10)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at Pipe.onread (net.js:594:20)

Copied from original issue: microsoft/vscode#47470

@mjbvz
Copy link
Contributor Author

mjbvz commented Apr 9, 2018

I could not repo this issue with TS 2.8.1 just by scrolling through the file. @bpasero were you editing the file? Do you remember what triggered this error?

@mjbvz mjbvz removed their assignment Apr 9, 2018
@ghost
Copy link

ghost commented Apr 9, 2018

May be duplicate of #22924, please test with typescript@next

@DanielRosenwasser DanielRosenwasser added the Needs More Info The issue still hasn't been fully clarified label Apr 9, 2018
@bpasero
Copy link
Member

bpasero commented Apr 10, 2018

Yes I was editing the file for sure.

@mhegazy mhegazy assigned ghost Apr 10, 2018
@mhegazy mhegazy added this to the TypeScript 2.9 milestone Apr 10, 2018
@ghost
Copy link

ghost commented May 1, 2018

@bpasero Could you test again with typescript@next?

@mhegazy mhegazy added the Bug A bug in TypeScript label May 1, 2018
@ghost
Copy link

ghost commented May 14, 2018

@bpasero Ping

@bpasero
Copy link
Member

bpasero commented May 15, 2018

Since I do not know how I got into this error in the first place, I am not sure how to reproduce?

@ghost
Copy link

ghost commented Sep 18, 2018

Please create a new issue if you see this again. #27006 may help to diagnose.

@ghost ghost closed this as completed Sep 18, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Needs More Info The issue still hasn't been fully clarified
Projects
None yet
Development

No branches or pull requests

4 participants