vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.87k stars 403 forks source link

TypeError: Cannot read properties of undefined (reading 'arguments') in Vue Language Server v2.1.6 on VSCode Insiders #4888

Closed matvejs16 closed 1 month ago

matvejs16 commented 1 month ago

Vue - Official extension or vue-tsc version

v2.1.6

VSCode version

1.94.0-insider

Vue version

v3.5.9

TypeScript version

v5.6.2

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (12) x64 Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
    Memory: 53.91 GB / 62.67 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
Binaries:
    Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
    npm: 10.8.3 - ~/.nvm/versions/node/v20.12.2/bin/npm

package.json dependencies

{
  "dependencies": {
    "country-flag-emoji-polyfill": "^0.1.8",
    "decimal.js": "^10.4.3",
    "jquery": "^3.7.1",
    "js-cookie": "^3.0.5",
    "pinia": "^2.2.2",
    "socket.io-client": "^4.8.0",
    "uuid": "^10.0.0",
    "vue": "^3.5.9",
    "vue-custom-horizontal-sliding": "^1.0.3",
    "vue-custom-mobile-click": "^1.0.2",
    "vue-i18n": "^10.0.3",
    "vue-router": "^4.4.5",
    "vue3-carousel": "^0.3.4",
    "zod": "^3.23.8"
  },
  "devDependencies": {
    "@rollup/plugin-dynamic-import-vars": "^2.1.3",
    "@tsconfig/node18": "^18.2.4",
    "@types/js-cookie": "^3.0.6",
    "@types/uuid": "^10.0.0",
    "@vitejs/plugin-vue": "^5.1.4",
    "@vue/tsconfig": "^0.5.1",
    "npm-run-all2": "^6.2.3",
    "postcss-nesting": "^13.0.0",
    "sass-embedded": "^1.79.3",
    "telegram-webapps-types-new": "^1.2.3",
    "typescript": "~5.6.2",
    "vite": "^5.4.8",
    "vue-cli-plugin-i18n": "~2.3.2",
    "vue-tsc": "^2.1.6"
  }
}

Steps to reproduce

Unfortunately, I cannot provide exact steps to reproduce this issue as it seems to occur in my specific project. The error appears when I am working with Vue Language Server in VSCode Insiders.

I can share what's happening and how I get error:

  1. Launch Vue TS project.
  2. Work in project for some time, see VSCode message that Vue language crashed more than 5 times and that server will not be restarted.
  3. Open output log in VSCode and select Vue Language Server in selector.
  4. Restart Vue by using command: vue.action.restartServer (Shift + P -> Vue: Restart Vue and TS servers)
  5. See error mesage (example below: What is actually happening?)

What is expected?

The Vue Language Server should function normally without crashing.

What is actually happening?

The server process exits with the following error:

TypeError: Cannot read properties of undefined (reading 'arguments')
    at _A (/home/genrem/.vscode-insiders/extensions/vue.volar-2.1.6/dist/server.js:230:3064)
    at _A.next (<anonymous>)
    at Si (/home/genrem/.vscode-insiders/extensions/vue.volar-2.1.6/dist/server.js:230:6283)
    at Si.next (<anonymous>)
    at Vf (/home/genrem/.vscode-insiders/extensions/vue.volar-2.1.6/dist/server.js:230:7353)
    at Vf.next (<anonymous>)
    at cB (/home/genrem/.vscode-insiders/extensions/vue.volar-2.1.6/dist/server.js:231:1121)
    at cB.next (<anonymous>)
    at Si (/home/genrem/.vscode-insiders/extensions/vue.volar-2.1.6/dist/server.js:230:5773)
    at Si.next (<anonymous>)
[Vue Named Pipe Client] Deleting: /tmp/vue-named-pipe-2.1.6-configured-0
[Vue Named Pipe Client] Deleting: /tmp/vue-named-pipe-2.1.6-inferred-0
[Vue Named Pipe Client] Deleting: /tmp/vue-named-pipe-2.1.6-configured-1
[Vue Named Pipe Client] Deleting: /tmp/vue-named-pipe-2.1.6-inferred-1
[Vue Named Pipe Client] Connected: /tmp/vue-named-pipe-2.1.6-inferred-0 in 10ms
[Vue Named Pipe Client] Connected: /tmp/vue-named-pipe-2.1.6-inferred-1 in 10ms
[Vue Named Pipe Client] Connected: /tmp/vue-named-pipe-2.1.6-inferred-2 in 10ms
[Vue Named Pipe Client] Ready: /tmp/vue-named-pipe-2.1.6-inferred-0 in 11ms
[Vue Named Pipe Client] Ready: /tmp/vue-named-pipe-2.1.6-inferred-1 in 12ms
[Vue Named Pipe Client] Ready: /tmp/vue-named-pipe-2.1.6-inferred-2 in 12ms
[Vue Named Pipe Client] Connected: /tmp/vue-named-pipe-2.1.6-configured-0 in 2ms
[Vue Named Pipe Client] Connected: /tmp/vue-named-pipe-2.1.6-configured-1 in 2ms
[Vue Named Pipe Client] Ready: /tmp/vue-named-pipe-2.1.6-configured-0 in 216ms
[Vue Named Pipe Client] Ready: /tmp/vue-named-pipe-2.1.6-configured-1 in 216ms
TypeError: Cannot read properties of undefined (reading 'arguments')
    at _A (/home/genrem/.vscode-insiders/extensions/vue.volar-2.1.6/dist/server.js:230:3064)
    at _A.next (<anonymous>)
    at Si (/home/genrem/.vscode-insiders/extensions/vue.volar-2.1.6/dist/server.js:230:6283)
    at Si.next (<anonymous>)
    at Vf (/home/genrem/.vscode-insiders/extensions/vue.volar-2.1.6/dist/server.js:230:7353)
    at Vf.next (<anonymous>)
    at cB (/home/genrem/.vscode-insiders/extensions/vue.volar-2.1.6/dist/server.js:231:1121)
    at cB.next (<anonymous>)
    at Si (/home/genrem/.vscode-insiders/extensions/vue.volar-2.1.6/dist/server.js:230:5773)
    at Si.next (<anonymous>)

Link to minimal reproduction

No response

Any additional comments?

If anyone can suggest where to look (what processes causes this error), that I can try to identify the cause. Here is a snippet of the log for reference:

[Vue Named Pipe Client] Deleting: /tmp/vue-named-pipe-2.1.6-configured-0
[Vue Named Pipe Client] Deleting: /tmp/vue-named-pipe-2.1.6-inferred-0
[Vue Named Pipe Client] Deleting: /tmp/vue-named-pipe-2.1.6-configured-1
[Vue Named Pipe Client] Connected: /tmp/vue-named-pipe-2.1.6-inferred-0 in 3ms
[Vue Named Pipe Client] Ready: /tmp/vue-named-pipe-2.1.6-inferred-0 in 5ms
[Vue Named Pipe Client] Connected: /tmp/vue-named-pipe-2.1.6-configured-0 in 2ms
[Vue Named Pipe Client] Connected: /tmp/vue-named-pipe-2.1.6-configured-1 in 2ms
[Vue Named Pipe Client] Ready: /tmp/vue-named-pipe-2.1.6-configured-0 in 284ms
[Vue Named Pipe Client] Ready: /tmp/vue-named-pipe-2.1.6-configured-1 in 284ms
TypeError: Cannot read properties of undefined (reading 'arguments')
    at _A (/home/genrem/.vscode-insiders/extensions/vue.volar-2.1.6/dist/server.js:230:3064)
    at _A.next (<anonymous>)
    at Si (/home/genrem/.vscode-insiders/extensions/vue.volar-2.1.6/dist/server.js:230:6283)
    at Si.next (<anonymous>)
    at Vf (/home.genrem/.vscode-insiders/extensions/vue.volar-2.1.6/dist/server.js:230:7353)
    at Vf.next (<anonymous>)
    at cB (/home.genrem/.vscode-insiders/extensions/vue.volar-2.1.6/dist/server.js:231:1121)
    at cB.next (<anonymous>)
    at Si (/home.genrem/.vscode-insiders/extensions/vue.volar-2.1.6/dist/server.js:230:5773)
    at Si.next (<anonymous>)