Skip to content

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

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
LaurentSauzetOff opened this issue Sep 11, 2021 · 2 comments
Closed
Labels
Duplicate An existing issue was already created

Comments

@LaurentSauzetOff
Copy link

Nous avons écrit les données nécessaires dans votre presse-papiers, car elles étaient trop volumineuses à envoyer. Veuillez les coller.
Issue Type: Bug

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

TypeScript Version: 4.5.0-dev.20210907

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 (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:55969:22)
    at getPropertyOfType (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:56619:24)
    at tryGetQualifiedNameAsValue (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:48496:26)
    at resolveEntityName (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:48553:133)
    at getSymbolOfPartOfRightHandSideOfImportEquals (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:48476:24)
    at getTargetOfImportEqualsDeclaration (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:47945:28)
    at getTargetOfAliasDeclaration (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:48295:28)
    at resolveAlias (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:48344:30)
    at resolveSymbol (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:48334:67)
    at mergeSymbol (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:46710:42)
    at c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:46825:47
    at Map.forEach (<anonymous>)
    at mergeSymbolTable (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:46823:20)
    at mergeSymbol (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:46734:21)
    at c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:46825:47
    at Map.forEach (<anonymous>)
    at mergeSymbolTable (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:46823:20)
    at initializeTypeChecker (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:83343:21)
    at Object.createTypeChecker (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:46487:9)
    at Object.getTypeChecker (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:112462:79)
    at synchronizeHostData (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:157071:21)
    at Object.getProgram (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:157192:13)
    at AutoImportProviderProject.Project.updateGraphWorker (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:162190:53)
    at AutoImportProviderProject.Project.updateGraph (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:162119:42)
    at AutoImportProviderProject.updateGraph (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:162964:70)
    at Object.updateProjectIfDirty (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:163601:45)
    at InferredProject.Project.getPackageJsonAutoImportProvider (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:162739:32)
    at InferredProject.Project.updateGraph (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:162157:26)
    at ProjectService.assignOrphanScriptInfoToInferredProject (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:164296:25)
    at ProjectService.assignProjectToOpenedScriptInfo (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:165985:26)
    at c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:166259:97
    at Object.flatMap (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:519:25)
    at ProjectService.applyChangesInOpenFiles (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:166259:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:167417:46)
    at c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:169348:88
    at IOSession.Session.executeWithRequestId (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:169339:28)
    at IOSession.Session.executeCommand (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:169348:33)
    at IOSession.Session.onMessage (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:169374:35)
    at Interface.<anonymous> (c:\Users\Laurent\.vscode\extensions\ms-vscode.vscode-typescript-next-4.5.20210907\node_modules\typescript\lib\tsserver.js:171979: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)

VS Code version: Code 1.60.0 (e7d7e9a9348e6a8cc8c03f877d39cb72e5dfb1ff, 2021-09-01T10:41:52.311Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: No

System Info
Item Value
CPUs AMD Ryzen 3 3250U with Radeon Graphics (4 x 2600)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 5.94GB (0.29GB free)
Process Argv C:\Users\Laurent\Documents\projetBlog --crash-reporter-id 2fb3d9a4-7da0-4f32-be96-e94b1bfce616
Screen Reader no
VM 0%
Extensions (53)
Extension Author (truncated) Version
html-snippets abu 0.2.1
project-manager ale 12.4.0
nuxt-vscode-extension all 0.0.8
vite ant 0.2.5
npm-intellisense chr 1.4.0
path-intellisense chr 2.4.0
gitignore cod 0.7.0
bracket-pair-colorizer-2 Coe 0.2.1
vscode-eslint dba 2.1.25
git-extension-pack don 0.1.3
githistory don 0.6.18
xml Dot 2.5.1
gitlens eam 11.6.0
vscode-npm-script eg2 0.3.22
prettier-vscode esb 8.1.0
php-intellisense fel 2.3.14
vscode-firefox-debug fir 2.9.4
auto-rename-tag for 0.1.8
todo-tree Gru 0.0.214
npm-dependency-links her 1.2.0
vue-snippets hol 1.0.4
vscode-power-mode hoo 2.2.0
search-node-modules jas 1.3.0
node-module-intellisense lei 1.5.0
ts-extension-pack loi 0.3.0
git-graph mhu 1.30.0
vscode-docker ms- 1.16.1
vscode-language-pack-fr MS- 1.60.3
python ms- 2021.9.1218897484
remote-containers ms- 0.194.0
remote-wsl ms- 0.58.2
live-server ms- 0.2.8
vscode-typescript-next ms- 4.5.20210910
vscode-typescript-tslint-plugin ms- 1.3.3
vsliveshare ms- 1.0.4836
vsliveshare-audio ms- 0.1.91
vsliveshare-pack ms- 0.4.0
vscode-react-native msj 1.6.1
vetur oct 0.34.1
vscode-jest Ort 4.1.2
vue-beautify pea 2.0.4
tsimporter pmn 2.0.1
polacode pnp 0.3.4
vscode-css-peek pra 4.2.0
typescript-hero rbb 3.0.0
LiveServer rit 5.6.1
react-snippets run 0.1.3
vue-vscode-snippets sdr 2.2.1
vscode-stylelint sty 0.86.0
sass-indented syl 1.8.18
eno Wsc 2.3.53
html-css-class-completion Zig 1.20.0
vscode-open-in-github ziy 1.3.6

(2 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627cf:30244335
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551:30345470
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlangct:30333562
binariesv615:30325510
vsccppwtct:30364498
pythonvssor306:30344512
bridge0708:30335490
pygetstartedt2:30360495
bridge0723:30353136
pythonrunftest32cf:30365367
pythonf5test824:30361777
javagetstartedc:30364665
pythonvspyt187cf:30365362
pydsgsc2:30361791
vscus224:30358039
vssid140:30363603

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

@LaurentSauzetOff can you share your list of package.json dependencies for the project where this crash happened?

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

Duplicate of #45874

@andrewbranch andrewbranch marked this as a duplicate of #45874 Sep 27, 2021
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

3 participants