Skip to content

TS Compiler has crashed #36628

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
sandy081 opened this issue Feb 5, 2020 · 2 comments
Closed

TS Compiler has crashed #36628

sandy081 opened this issue Feb 5, 2020 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@sandy081
Copy link
Member

sandy081 commented Feb 5, 2020

Version: 3.8.0-dev.20200128

I am developer from VS Code, today I saw TS compiler got crashed with following error:

TypeError: Cannot read property 'kind' of undefined
    at getErrorSpanForNode (/Users/runner/runners/2.164.7/work/1/s/build/node_modules/typescript/lib/typescript.js:13429:22)
    at createDiagnosticForNodeInSourceFile (/Users/runner/runners/2.164.7/work/1/s/build/node_modules/typescript/lib/typescript.js:13389:20)
    at Object.createDiagnosticForNode (/Users/runner/runners/2.164.7/work/1/s/build/node_modules/typescript/lib/typescript.js:13380:16)
    at reportNonExportedMember (/Users/runner/runners/2.164.7/work/1/s/build/node_modules/typescript/lib/typescript.js:36179:50)
    at getExternalModuleMember (/Users/runner/runners/2.164.7/work/1/s/build/node_modules/typescript/lib/typescript.js:36160:33)
    at getTargetOfImportSpecifier (/Users/runner/runners/2.164.7/work/1/s/build/node_modules/typescript/lib/typescript.js:36187:20)
    at getTargetOfAliasDeclaration (/Users/runner/runners/2.164.7/work/1/s/build/node_modules/typescript/lib/typescript.js:36238:28)
    at resolveAlias (/Users/runner/runners/2.164.7/work/1/s/build/node_modules/typescript/lib/typescript.js:36277:30)
    at getSymbol (/Users/runner/runners/2.164.7/work/1/s/build/node_modules/typescript/lib/typescript.js:35137:38)
    at resolveNameHelper (/Users/runner/runners/2.164.7/work/1/s/build/node_modules/typescript/lib/typescript.js:35336:34)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

There was a missing import error in a file that caused this.

Replacing following line

https://github.com/microsoft/vscode/blob/ba25c52127e206e5936f48fb1b429f0f75da92ee/src/vs/workbench/contrib/preferences/browser/settingsTree.ts#L45

with

import { getIgnoredSettings } from 'vs/platform/userDataSync/common/settingsSync';

caused this crash.

@DanielRosenwasser
Copy link
Member

Duplicate of #36614

@DanielRosenwasser DanielRosenwasser marked this as a duplicate of #36614 Feb 5, 2020
@DanielRosenwasser DanielRosenwasser added the Duplicate An existing issue was already created label Feb 5, 2020
@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

3 participants