Skip to content
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

Error: Could not find file in 'getValidSourceFile' during 'quickinfo' #21813

Closed
aozgaa opened this issue Feb 9, 2018 · 3 comments
Closed

Error: Could not find file in 'getValidSourceFile' during 'quickinfo' #21813

aozgaa opened this issue Feb 9, 2018 · 3 comments
Labels
Bug A bug in TypeScript Duplicate An existing issue was already created Source: Telemetry The issue relates to the telemetry in editors

Comments

@aozgaa
Copy link
Contributor

aozgaa commented Feb 9, 2018

This issue comes from crash dumps in telemetry. We've tried to de-duplicate issues on a best-effort basis, comparing the sequence of methods called and the command requested while ignoring line numbers.
TypeScript Version Prefix: 2.7.1
VSCode Version 1.20.0-insider
command requested: quickinfo
hitting sessions: 517
proportion of all sessions: 0.001930019076204022
five line hash: aa32ec08def5c848b6234b69de3e8613
stack

Error: Could not find file
    at getValidSourceFile (tsserver.js:82737:23)
    at Object.getQuickInfoAtPosition (tsserver.js:82889:30)
    at IOSession.Session.getQuickInfoWorker (tsserver.js:89819:62)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (tsserver.js:88972:61)
    at unknown (tsserver.js:90393:88)
    at IOSession.Session.executeWithRequestId (tsserver.js:90384:28)
    at IOSession.Session.executeCommand (tsserver.js:90393:33)
    at IOSession.Session.onMessage (tsserver.js:90413:35)
    at Interface.<anonymous> (tsserver.js:91614:27)
    at emitOne (events.js:96:13)
    at Interface.emit (events.js:191:7)
    at Interface._onLine (readline.js:241:10)
    at Interface._normalWrite (readline.js:384:12)
    at Socket.ondata (readline.js:101:10)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20)
@aozgaa aozgaa added the Source: Telemetry The issue relates to the telemetry in editors label Feb 9, 2018
@mhegazy mhegazy added the Bug A bug in TypeScript label Feb 9, 2018
@mhegazy
Copy link
Contributor

mhegazy commented Feb 9, 2018

looks related to #20785

@mhegazy mhegazy assigned ghost Feb 9, 2018
@mhegazy mhegazy added this to the TypeScript 2.8 milestone Feb 9, 2018
@aozgaa
Copy link
Contributor Author

aozgaa commented Mar 5, 2018

This issue reproduced in the following context:
TypeScript Version Prefix: 2.7.2
VSCode Version 1.20.1
command requested: quickinfo
hitting sessions: 113
proportion of all sessions: 0.00231989981317621
stack

Error: Could not find file
    at getValidSourceFile (tsserver.js:82897:23)
    at Object.getQuickInfoAtPosition (tsserver.js:83049:30)
    at IOSession.Session.getQuickInfoWorker (tsserver.js:89979:62)
    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (tsserver.js:89132:61)
    at unknown (tsserver.js:90553:88)
    at IOSession.Session.executeWithRequestId (tsserver.js:90544:28)
    at IOSession.Session.executeCommand (tsserver.js:90553:33)
    at IOSession.Session.onMessage (tsserver.js:90573:35)
    at Interface.<anonymous> (tsserver.js:91774:27)
    at emitOne (events.js:96:13)
    at Interface.emit (events.js:191:7)
    at Interface._onLine (readline.js:241:10)
    at Interface._normalWrite (readline.js:384:12)
    at Socket.ondata (readline.js:101:10)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20)

@ghost
Copy link

ghost commented Mar 12, 2018

Duplicate of #20785
@aozgaa These (this and #20786 and #21795) are all the same error, with the only difference being that they started with a different services call (which all immediately call getValidSourceFile) -- could we disambiguate these automatically?

@ghost ghost closed this as completed Mar 12, 2018
@ghost ghost added the Duplicate An existing issue was already created label Mar 12, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Duplicate An existing issue was already created Source: Telemetry The issue relates to the telemetry in editors
Projects
None yet
Development

No branches or pull requests

2 participants