You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Cannot read property 'parent' of undefined
at isTypeAssertion (D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:113858:62)
at filterGlobalCompletion (D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:113833:38)
at getGlobalCompletions (D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:113804:17)
at tryGetGlobalSymbols (D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:113695:25)
at getCompletionData (D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:113489:22)
at Object.getCompletionsAtPosition (D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:112833:34)
at Object.getCompletionsAtPosition (D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:139693:35)
at Session.getCompletions (D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:149397:64)
at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:148340:61)
at D:\home\site\wwwroot\node_modules\typescript\lib\tsserverlibrary.js:149974:88
Our code base has two isTypeAssertions. This is the one in services/completions.ts.
The variable that is undefined has the following comment before it:
// The decision to provide completion depends on the contextToken, which is determined through the previousToken.// Note: 'previousToken' (and thus 'contextToken') can be undefined if we are the beginning of the fileletcontextToken=previousToken;
The comment says contextToken can sometimes be undefined even though its type does not contain undefined. Admittedly, this isn't at the beginning of file.
Repo Name: https://github.com/caolan/async.git
Revision: 62cb8ea8ce3e3b4b66cf9abc66153d2d7255985b
TypeScript Version: 4.0.0-dev.20200507
Commands:
Code (
lib\cargoQueue.js
):Hash: dced6931d2c4b2cbd849ed76ef152cea
Stack trace:
Originally posted by @typescript-bot in https://github.com/microsoft/tsserverfuzzer/issues/227#issuecomment-625379845
The text was updated successfully, but these errors were encountered: