vuejs/vetur

Vetur crashes if checkJs is set to true and a vue file which modifies a watched value is opened #751

siphomateke posted onGitHub

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: Linux
  • Vetur version: 0.11.7
  • VS Code version: 1.21.1

Problem

When checkJs is set to true in tsconfig.json or jsconfig.json and a .vue file which modifies a watched value is opened, Vetur crashes.

Vetur crash

vetur crash4

Vetur crashing on files like this is almost identical to https://github.com/vuejs/vetur/issues/191#issuecomment-300405883

There is no output from Vue Language Server as it appears to crash. However, there is output from the Window log:

[renderer3] [error] Channel has been closed: Error: Channel has been closed
    at ExtHostOutputChannel.validate (/usr/share/vscode/resources/app/out/vs/workbench/node/extensionHostProcess.js:35883:23)
    at ExtHostOutputChannel.appendLine (/usr/share/vscode/resources/app/out/vs/workbench/node/extensionHostProcess.js:35863:18)
    at LanguageClient.error (/home/USER/.vscode/extensions/octref.vetur-0.11.7/node_modules/vscode-languageclient/lib/client.js:1592:28)
    at LanguageClient.logFailedRequest (/home/USER/.vscode/extensions/octref.vetur-0.11.7/node_modules/vscode-languageclient/lib/client.js:2050:14)
    at client.sendRequest.then (/home/USER/.vscode/extensions/octref.vetur-0.11.7/node_modules/vscode-languageclient/lib/client.js:721:24)
    at <anonymous>

<details> <summary>Extensions</summary> CoenraadS.bracket-pair-colorizer<br> EditorConfig.EditorConfig<br> Keno.uikit-3-snippets<br> Shan.code-settings-sync<br> Sophisticode.php-formatter<br> WakaTime.vscode-wakatime<br> asabil.meson<br> christian-kohler.npm-intellisense<br> christian-kohler.path-intellisense<br> dbaeumer.vscode-eslint<br> demijollamaxime.bulma<br> donjayamanne.githistory<br> ecmel.vscode-html-css<br> felixfbecker.php-intellisense<br> formulahendry.auto-close-tag<br> formulahendry.auto-rename-tag<br> hnw.vscode-auto-open-markdown-preview<br> joelday.docthis<br> mblode.twig-language<br> minhthai.vscode-todo-parser<br> ms-python.python<br> octref.vetur<br> patrys.vscode-code-outline<br> rebornix.project-snippets<br> robertohuertasm.vscode-icons<br> wayou.vscode-todo-highlight<br> yycalm.linecount<br> zhuangtongfa.Material-theme<br> </details>

Reproducible Case

Open nextgensparx/veturpack in VS Code and then client/components/Test.vue.

It's worth noting that if data2 is changed to data3 in watch, the issue goes away.


Fund this Issue

$0.00
Funded

Pull requests