Skip to content
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

Crash Vue Language Server if "strictPropertyInitialization": true #1072

Closed
skycrazyk opened this issue Jan 24, 2019 · 2 comments
Closed

Crash Vue Language Server if "strictPropertyInitialization": true #1072

skycrazyk opened this issue Jan 24, 2019 · 2 comments

Comments

@skycrazyk
Copy link

Info

  • Platform: Linux Ubuntu 18.04.1 LTS
  • Vetur version: 0.14.5
  • VS Code version: 1.30.2

Problem

Error message from Panel

Vetur initialized
/home/crazyk/.vscode/extensions/octref.vetur-0.14.5/server/node_modules/typescript/lib/typescript.js:76414
                throw e;
                ^

Error: Debug Failure. Unhandled declaration kind! GetAccessor
    at getTypeOfVariableOrParameterOrProperty (/home/crazyk/.vscode/extensions/octref.vetur-0.14.5/server/node_modules/typescript/lib/typescript.js:29505:30)
    at getTypeOfSymbol (/home/crazyk/.vscode/extensions/octref.vetur-0.14.5/server/node_modules/typescript/lib/typescript.js:29678:24)
    at checkPropertyInitialization (/home/crazyk/.vscode/extensions/octref.vetur-0.14.5/server/node_modules/typescript/lib/typescript.js:46947:36)
    at checkClassLikeDeclaration (/home/crazyk/.vscode/extensions/octref.vetur-0.14.5/server/node_modules/typescript/lib/typescript.js:46776:17)
    at checkClassDeclaration (/home/crazyk/.vscode/extensions/octref.vetur-0.14.5/server/node_modules/typescript/lib/typescript.js:46678:13)
    at checkSourceElement (/home/crazyk/.vscode/extensions/octref.vetur-0.14.5/server/node_modules/typescript/lib/typescript.js:47821:28)
    at Object.forEach (/home/crazyk/.vscode/extensions/octref.vetur-0.14.5/server/node_modules/typescript/lib/typescript.js:1762:30)
    at checkSourceFileWorker (/home/crazyk/.vscode/extensions/octref.vetur-0.14.5/server/node_modules/typescript/lib/typescript.js:47958:20)
    at checkSourceFile (/home/crazyk/.vscode/extensions/octref.vetur-0.14.5/server/node_modules/typescript/lib/typescript.js:47937:13)
    at getDiagnosticsWorker (/home/crazyk/.vscode/extensions/octref.vetur-0.14.5/server/node_modules/typescript/lib/typescript.js:48002:17)
[Error - 6:33:44 PM] Connection to server got closed. Server will not be restarted.

Screenshot

output screen

Reproducible Case

I just start VSCode and open any .vue file. I try fix this error. The error does not occur if in the tsconfig.json, set "strictPropertyInitialization": false (or just remove it).

@skycrazyk skycrazyk changed the title strictPropertyInitialization Crash Vue Language Server if "strictPropertyInitialization": true Jan 24, 2019
@octref
Copy link
Member

octref commented Mar 14, 2019

This is only available in TS 2.8+. Will be fixed with #682.

@octref
Copy link
Member

octref commented Mar 20, 2019

See #682 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants