-
Notifications
You must be signed in to change notification settings - Fork 12.8k
TS Server fatal error: Cannot read property 'flags' of undefined #45874
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
Comments
@abhaysocialised, can you share your list of package.json dependencies for the project where this crash happened? |
@andrewbranch package.json { |
I don't know how to reproduce crash because this problem is with my this project only and this is my settings.json file {
} |
TypeScript Server Error (4.5.0-dev.20210915) Cannot read property 'flags' of undefined TypeError: Cannot read property 'flags' of undefined at getPropertyOfObjectType (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:56030:22) at getPropertyOfType (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:56680:24) at tryGetQualifiedNameAsValue (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:48557:26) at resolveEntityName (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:48614:133) at getSymbolOfPartOfRightHandSideOfImportEquals (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:48537:24) at getTargetOfImportEqualsDeclaration (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:48006:28) at getTargetOfAliasDeclaration (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:48356:28) at resolveAlias (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:48405:30) at resolveSymbol (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:48395:67) at mergeSymbol (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:46767:42) at /home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:46882:47 at Map.forEach () at mergeSymbolTable (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:46880:20) at mergeSymbol (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:46791:21) at /home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:46882:47 at Map.forEach () at mergeSymbolTable (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:46880:20) at initializeTypeChecker (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:83596:21) at Object.createTypeChecker (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:46544:9) at Object.getTypeChecker (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:112716:79) at synchronizeHostData (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:157329:21) at Object.getProgram (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:157450:13) at AutoImportProviderProject.Project.updateGraphWorker (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:162457:53) at AutoImportProviderProject.Project.updateGraph (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:162386:42) at AutoImportProviderProject.updateGraph (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:163231:70) at Object.updateProjectIfDirty (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:163868:45) at InferredProject.Project.getPackageJsonAutoImportProvider (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:163006:32) at InferredProject.Project.updateGraph (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:162424:26) at ProjectService.assignOrphanScriptInfoToInferredProject (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:164563:25) at ProjectService.assignProjectToOpenedScriptInfo (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:166252:26) at /home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:166526:97 at Object.flatMap (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:519:25) at ProjectService.applyChangesInOpenFiles (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:166526:41) at Session.handlers.ts.Map.ts.getEntries._a. (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:167684:46) at /home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:169615:88 at IOSession.Session.executeWithRequestId (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:169606:28) at IOSession.Session.executeCommand (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:169615:33) at IOSession.Session.onMessage (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:169641:35) at Interface. (/home/abhay/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210915/node_modules/typescript/lib/tsserver.js:172246:31) at Interface.emit (events.js:315:20) at Interface._onLine (readline.js:337:10) at Interface._normalWrite (readline.js:482:12) at Socket.ondata (readline.js:194:10) at Socket.emit (events.js:315:20) at addChunk (internal/streams/readable.js:309:12) at readableAddChunk (internal/streams/readable.js:284:9) at Socket.Readable.push (internal/streams/readable.js:223:10) at Pipe.onStreamRead (internal/stream_base_commons.js:188:23) |
this is error that is in runtime status. I've copied whole errors but there are more in logs for the same error. i.e all errors in Log are same... |
|
@abhaysocialised I still can’t reproduce this—do you have a repo you can share where this is happening? |
Update—got a repro. |
I'm still seeing this in 4.5.2. Was this merged to that version (I assume so, but wanted to verify). |
Issue Type: Bug
❗️❗️❗️ Please fill in the sections below to help us diagnose the issue ❗️❗️❗️
TypeScript Version: 4.5.0-dev.20210909
Steps to reproduce crash
1.
2.
3.
TS Server Log
❗️Server logging disabled. To help us fix crashes like this, please enable logging by setting:
After enabling this setting, future crash reports will include the server log.
TS Server Error Stack
Server:
semantic
VS Code version: Code 1.60.0 (e7d7e9a9348e6a8cc8c03f877d39cb72e5dfb1ff, 2021-09-01T10:43:02.136Z)
OS version: Linux x64 5.13.13-200.fc34.x86_64
Restricted Mode: No
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Extensions (8)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: