-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Ship TS 4.5.3 — fixes TS Server fatal error: Cannot read property 'flags' of undefined #138794
Comments
I had the same issue. Thanks for the fix. :) |
THANK YOU SO MUCH, this intellisense drive me crazy since last Friday! |
Just tried 1.63.2 and it's still failing with the same message. I submitted a new issue with the stack trace. Contact me if you want more info Version: 1.63.2 TypeError: Cannot read property 'flags' of undefined |
I'm seeing the same thing on Version: 1.63.2 exthost.log[2021-12-21 15:25:54.627] [exthost] [info] Extension host with pid 78349 started [2021-12-21 15:25:54.627] [exthost] [info] Skipping acquiring lock for /Users/matt.towers/Library/Application Support/Code/User/workspaceStorage/986652af5c029085c2ebfc0bfa3cb5a5. [2021-12-21 15:25:54.742] [exthost] [info] ExtensionService#_doActivateExtension vscode.microsoft-authentication, startup: false, activationEvent: 'onAuthenticationRequest:microsoft' [2021-12-21 15:25:54.751] [exthost] [info] ExtensionService#_doActivateExtension vscode.configuration-editing, startup: false, activationEvent: 'onLanguage:json' [2021-12-21 15:25:54.754] [exthost] [info] ExtensionService#_doActivateExtension vscode.extension-editing, startup: false, activationEvent: 'onLanguage:json' [2021-12-21 15:25:54.759] [exthost] [info] ExtensionService#_doActivateExtension vscode.json-language-features, startup: false, activationEvent: 'onLanguage:json' [2021-12-21 15:25:54.775] [exthost] [info] ExtensionService#_doActivateExtension vscode.npm, startup: false, activationEvent: 'onLanguage:json' [2021-12-21 15:25:54.782] [exthost] [info] ExtensionService#_doActivateExtension vscode.typescript-language-features, startup: false, activationEvent: 'onLanguage:typescript' [2021-12-21 15:25:54.795] [exthost] [info] ExtensionService#_doActivateExtension VisualStudioExptTeam.vscodeintellicode, startup: false, activationEvent: 'onLanguage:typescript' [2021-12-21 15:25:54.829] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: true, activationEvent: '*' [2021-12-21 15:25:54.847] [exthost] [info] ExtensionService#_doActivateExtension vscode.git-base, startup: true, activationEvent: '*', root cause: vscode.github [2021-12-21 15:25:54.849] [exthost] [info] ExtensionService#_doActivateExtension firsttris.vscode-jest-runner, startup: true, activationEvent: '*' [2021-12-21 15:25:54.897] [exthost] [info] ExtensionService#_doActivateExtension ms-vscode-remote.remote-containers, startup: true, activationEvent: 'workspaceContains:.devcontainer/devcontainer.json' [2021-12-21 15:25:55.232] [exthost] [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: '*' [2021-12-21 15:25:55.246] [exthost] [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*' [2021-12-21 15:25:55.479] [exthost] [info] ExtensionService#_doActivateExtension vscode.github-authentication, startup: false, activationEvent: 'onAuthenticationRequest:github' [2021-12-21 15:25:55.548] [exthost] [info] Eager extensions activated [2021-12-21 15:25:56.091] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onStartupFinished' [2021-12-21 15:25:56.096] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished' [2021-12-21 15:25:56.098] [exthost] [info] ExtensionService#_doActivateExtension dbaeumer.vscode-eslint, startup: false, activationEvent: 'onStartupFinished' [2021-12-21 15:25:56.108] [exthost] [info] ExtensionService#_doActivateExtension eamodio.gitlens, startup: false, activationEvent: 'onStartupFinished' [2021-12-21 15:53:52.346] [exthost] [info] extension host terminating: renderer closed the socket [2021-12-21 15:53:52.367] [exthost] [info] Extension host with pid 78349 exiting with code 0 [2021-12-21 15:53:55.138] [exthost] [info] Extension host with pid 79685 started [2021-12-21 15:53:55.138] [exthost] [info] Skipping acquiring lock for /Users/matt.towers/Library/Application Support/Code/User/workspaceStorage/986652af5c029085c2ebfc0bfa3cb5a5. [2021-12-21 15:53:55.198] [exthost] [info] ExtensionService#_doActivateExtension vscode.microsoft-authentication, startup: false, activationEvent: 'onAuthenticationRequest:microsoft' [2021-12-21 15:53:55.204] [exthost] [info] ExtensionService#_doActivateExtension vscode.configuration-editing, startup: false, activationEvent: 'onLanguage:json' [2021-12-21 15:53:55.209] [exthost] [info] ExtensionService#_doActivateExtension vscode.extension-editing, startup: false, activationEvent: 'onLanguage:json' [2021-12-21 15:53:55.214] [exthost] [info] ExtensionService#_doActivateExtension vscode.json-language-features, startup: false, activationEvent: 'onLanguage:json' [2021-12-21 15:53:55.229] [exthost] [info] ExtensionService#_doActivateExtension vscode.npm, startup: false, activationEvent: 'onLanguage:json' [2021-12-21 15:53:55.236] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: true, activationEvent: '*' [2021-12-21 15:53:55.238] [exthost] [info] ExtensionService#_doActivateExtension vscode.git-base, startup: true, activationEvent: '*', root cause: vscode.github [2021-12-21 15:53:55.241] [exthost] [info] ExtensionService#_doActivateExtension firsttris.vscode-jest-runner, startup: true, activationEvent: '*' [2021-12-21 15:53:55.287] [exthost] [info] ExtensionService#_doActivateExtension ms-vscode-remote.remote-containers, startup: true, activationEvent: 'workspaceContains:.devcontainer/devcontainer.json' [2021-12-21 15:53:55.334] [exthost] [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: '*' [2021-12-21 15:53:55.352] [exthost] [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*' [2021-12-21 15:53:55.431] [exthost] [info] ExtensionService#_doActivateExtension vscode.github-authentication, startup: false, activationEvent: 'onAuthenticationRequest:github' [2021-12-21 15:53:55.598] [exthost] [info] Eager extensions activated [2021-12-21 15:53:55.601] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onStartupFinished' [2021-12-21 15:53:55.607] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished' [2021-12-21 15:53:55.608] [exthost] [info] ExtensionService#_doActivateExtension dbaeumer.vscode-eslint, startup: false, activationEvent: 'onStartupFinished' [2021-12-21 15:53:55.615] [exthost] [info] ExtensionService#_doActivateExtension eamodio.gitlens, startup: false, activationEvent: 'onStartupFinished' [2021-12-21 15:53:55.958] [exthost] [info] ExtensionService#_doActivateExtension vscode.typescript-language-features, startup: false, activationEvent: 'onLanguage:jsonc' [2021-12-21 15:53:56.730] [exthost] [info] ExtensionService#_doActivateExtension VisualStudioExptTeam.vscodeintellicode, startup: false, activationEvent: 'onLanguage:typescript' [2021-12-21 15:58:22.661] [exthost] [error] [vscode.typescript-language-features] provider FAILED [2021-12-21 15:58:22.662] [exthost] [error] Error: Could not create TS service. Service state:{"type":0} at w.service (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:1:522361) at w.executeImpl (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:1:531071) at w.execute (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:1:530601) at u.ensureConfigurationOptions (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:1:399834) at u.ensureConfigurationForDocument (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:1:399277) at /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:1:413311 at b.interruptGetErr (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:1:480079) at w.interruptGetErr (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:1:531156) at l.provideHover (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript-language-features/dist/extension.js:1:413248) at o.provideHover (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:95:90929) at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:95:115188 at We._withAdapter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:95:111974) at We.$provideHover (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:95:115166) at t._doInvokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:99:13802) at t._invokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:99:13486) at t._receiveRequest (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:99:12097) at t._receiveOneMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:99:10826) at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:99:8922 at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:66:1712) at r.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:74:18942) at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:114:34341 at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:66:1712) at r.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:74:18942) at n._receiveMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:74:23523) at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:74:21057 at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:66:1712) at w.acceptChunk (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:74:15770) at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:74:14900 at Socket.T (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:114:13813) 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) [2021-12-21 16:03:34.858] [exthost] [warning] TextEditor is closed/disposed |
Same here for 1.63.2, downgraded until this is solved.... |
having the same issue here, how do you guys downgrade? |
Same happened to me. Had to downgrade to 1.62 (October 2021 update) for it to work. https://code.visualstudio.com/updates/v1_62 |
why is this issue closed? |
For me, this can be fixed by added Version: 1.63.2 (Universal) |
I was running node 12. Upgrading node versions also fixes this bug. Edit: Spoke too soon. I saw tool tip working for some locally defined types and thought it was working. It still can't resolve types outside the local file and pops up the crash warning after 5 minutes. |
it works for 2 minutes every time i reopen vs code until it crashes again. because for me this solution didn't help. |
@Madvinking Sure. I hope this can be helpful for you.
|
I think this is being fixed by microsoft/TypeScript#47348. While waiting for new vscode to have new typescript, installing ms-vscode.vscode-typescript-next seems to help. (Got the hint on #140544). |
Tracks shipping the TypeScript recovery build: 4.5.3: https://github.com/microsoft/typescript/issues?q=is%3Aissue+milestone%3A%22TypeScript+4.5.3%22+is%3Aclosed
The text was updated successfully, but these errors were encountered: