Skip to content

TS Server fatal error: Cannot read property 'flags' of undefined #45897

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
defistar opened this issue Sep 14, 2021 · 3 comments
Closed

TS Server fatal error: Cannot read property 'flags' of undefined #45897

defistar opened this issue Sep 14, 2021 · 3 comments
Labels
Duplicate An existing issue was already created

Comments

@defistar
Copy link

Issue Type: Bug

❗️❗️❗️ Please fill in the sections below to help us diagnose the issue ❗️❗️❗️

TypeScript Version: 4.5.0-dev.20210912

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:

"typescript.tsserver.log": "verbose"

After enabling this setting, future crash reports will include the server log.

TS Server Error Stack
Server: semantic

TypeError: Cannot read property 'flags' of undefined
    at getPropertyOfObjectType (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:56019:22)
    at getPropertyOfType (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:56669:24)
    at tryGetQualifiedNameAsValue (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:48546:26)
    at resolveEntityName (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:48603:133)
    at getSymbolOfPartOfRightHandSideOfImportEquals (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:48526:24)
    at getTargetOfImportEqualsDeclaration (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:47995:28)
    at getTargetOfAliasDeclaration (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:48345:28)
    at resolveAlias (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:48394:30)
    at resolveSymbol (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:48384:67)
    at mergeSymbol (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:46756:42)
    at /Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:46871:47
    at Map.forEach (<anonymous>)
    at mergeSymbolTable (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:46869:20)
    at mergeSymbol (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:46780:21)
    at /Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:46871:47
    at Map.forEach (<anonymous>)
    at mergeSymbolTable (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:46869:20)
    at initializeTypeChecker (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:83572:21)
    at Object.createTypeChecker (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:46533:9)
    at Object.getTypeChecker (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:112692:79)
    at synchronizeHostData (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:157305:21)
    at Object.getProgram (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:157426:13)
    at AutoImportProviderProject.Project.updateGraphWorker (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:162433:53)
    at AutoImportProviderProject.Project.updateGraph (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:162362:42)
    at AutoImportProviderProject.updateGraph (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:163207:70)
    at Object.updateProjectIfDirty (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:163844:45)
    at InferredProject.Project.getPackageJsonAutoImportProvider (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:162982:32)
    at InferredProject.Project.updateGraph (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:162400:26)
    at ProjectService.assignOrphanScriptInfoToInferredProject (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:164539:25)
    at ProjectService.assignProjectToOpenedScriptInfo (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:166228:26)
    at /Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:166502:97
    at Object.flatMap (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:519:25)
    at ProjectService.applyChangesInOpenFiles (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:166502:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:167660:46)
    at /Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:169591:88
    at IOSession.Session.executeWithRequestId (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:169582:28)
    at IOSession.Session.executeCommand (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:169591:33)
    at IOSession.Session.onMessage (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:169617:35)
    at Interface.<anonymous> (/Users/lakshmikanthp/.vscode/extensions/ms-vscode.vscode-typescript-next-4.5.20210912/node_modules/typescript/lib/tsserver.js:172222:31)
    at Interface.emit (events.js:223:5)
    at Interface._onLine (readline.js:315:10)
    at Interface._normalWrite (readline.js:460:12)
    at Socket.ondata (readline.js:172:10)
    at Socket.emit (events.js:223:5)
    at addChunk (_stream_readable.js:309:12)
    at readableAddChunk (_stream_readable.js:290:11)
    at Socket.Readable.push (_stream_readable.js:224:10)
    at Pipe.onStreamRead (internal/stream_base_commons.js:181:23)

VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:30:02.420Z)
OS version: Darwin x64 20.6.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz (8 x 2300)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 3, 3
Memory (System) 32.00GB (7.43GB free)
Process Argv --crash-reporter-id 24e4ed4f-a104-48f3-95a4-cdeb5ffe55e6
Screen Reader no
VM 0%
Extensions (8)
Extension Author (truncated) Version
vscode-generate-getter-setter DSK 0.5.0
githd hui 2.2.4
solidity Jua 0.0.125
git-tree-compare let 1.10.2
vscode-docker ms- 1.10.0
remote-containers ms- 0.155.1
vscode-typescript-next ms- 4.5.20210913
vetur oct 0.34.1
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspyt653:30270858
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vstes627:30244334
pythonvspyt639:30300192
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlang:30333561
binariesv615:30325510
vsccppwtct:30364498
pythonvssor306:30344512
bridge0708:30335490
pygetstartedc2:30360494
bridge0723:30353136
pythonrunftest32:30365366
pythonf5test824cf:30361778
javagetstartedt:30364666
pythonvspyt187cf:30365362
pydsgst2:30361792
vscus224:30358039
vssid140:30363603
vssur157:30365996

@mjbvz mjbvz transferred this issue from microsoft/vscode Sep 15, 2021
@mjbvz mjbvz removed their assignment Sep 15, 2021
@andrewbranch
Copy link
Member

@defistar can you provide the list of package.json dependencies from the project where this crash occurred?

@andrewbranch andrewbranch added Needs More Info The issue still hasn't been fully clarified Duplicate An existing issue was already created and removed Needs More Info The issue still hasn't been fully clarified labels Sep 15, 2021
@andrewbranch
Copy link
Member

Duplicate of #45874, but an answer to the question is still very much appreciated

@typescript-bot
Copy link
Collaborator

This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants