language-tools: Vue server still crashed after upgrading to v2.0.4 in VSCode + Nuxt 3
Sorry to open a duplicated issue, I want to provide a reproduction here.
Reproduction
Environment
Apple M2 macOS Sonoma 14.2.1 Node v20.9.0 VSCode v1.87.0 pnpm v8.2.0 nuxt v3.2.2 Vue.volar v2.0.4
git clone https://github.com/Bernankez/blog.git
cd blog
pnpm install
After opening a Vue SFC, it alerts
outputs
null
null
null
undefined:1
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Socket.<anonymous> (/Users/cole/.vscode/extensions/vue.volar-2.0.4/dist/server.js:10024:9777)
at Socket.emit (node:events:526:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Node.js v18.17.1
[Error - 14:27:08] Server process exited with code 1.
[Info - 14:27:08] Connection to server got closed. Server will restart.
true
null
null
null
undefined:1
About this issue
- Original URL
- State: closed
- Created 4 months ago
- Reactions: 54
- Comments: 48 (24 by maintainers)
Commits related to this issue
- chore(deps): update all dependencies (#39) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Ag... — committed to slipmatio/toolbelt by renovate[bot] 4 months ago
- chore(deps): update all dependencies (#40) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Ag... — committed to slipmatio/ui by renovate[bot] 4 months ago
- chore(deps): update all dependencies (#54) [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Ag... — committed to slipmatio/logger by renovate[bot] 4 months ago
Can y’all please stop saying “same for me”. It adds no value whatsoever and sends out notifications to hundreds of people who are subscribing to this issue.
Finally, by customizing the following settings everything just works fine, even in large-scale projects. 😂
Optional
In case it’s helpful to anyone, enabling “Vue › Server: Hybrid Mode” in the extension settings fixed the problem for me.
Workaround: Use vscode insiders for now. https://code.visualstudio.com/insiders/
VSCode 1.88 has been released and has resolved this issue. Please make sure to update.
why is this closed? its still happening in v2.0.7
1.88.0 has not been officially released yet.
Crashing on v2+
Same for me
FYI If you rollback to the previous major version of this extension (1.X) and want to reinstall the Typescript plugin you’ll have to use this command in the command palette as it’s no longer installable using the extensions panel since it’s deprecated:
Specific to https://github.com/Bernankez/blog.git, this may be caused by out-of-memory. If there are many typescript plugin extensions installed, or there are a large number of .vue files or the libraries they depend on are large, tsserver will require more memory. Please try setting
typescript.tsserver.maxTsServerMemory
to a larger value in VSCode settings to see if the problem can be solved.If the problem persists, please provide your repro case, or contact me in the Vue Land discord server to investigate using remote desktop.
As mentioned, this is a vscode specific issue on Darwin. Please use vscode insiders edition for now, until they’ve shipped their update containing an updated Node version (18.18). The relevant node version here is the one that the current stable version of vscode ships with (18.17), not the one that you’ve installed on your system.
Also, there are 2 different errors discussed in this issue, one relates to the Vue extension that crashes and the other relates to the TS server that crashes. The TS server with the SIGBUS error is probably related to VSCode on Darwin. The other might be related to other extensions or the amount of memory available for the tsserver.
Relevant: https://github.com/nodejs/node/issues/46559
Could be this one that helps 😃 https://github.com/microsoft/vscode/commit/974c6b3fb9b5ba575ebc9d502744bfd4ade42f26
Hi @isidorn, sorry to bother you. Due to the widespread errors caused by the Node version bundled with VSCode 1.87 mentioned in this issue, can we consider upgrading the Node version to 1.87 before the release of 1.88?
Does this work on non-insiders VS Code now? Is it fixed?
Maybe you can try this
Reverting to v1.8.27 working fine, But v2.0.0 to v2.0.4 crashes for me
Interestingly, it works fine with vscode insiders. Even with big projects
In addition, if you can see this window, please try to disable extensions other than
Vue.volar
in your list one by one to see if you can avoid the crash. It is currently known that enablingsvelte.svelte-vscode
together withVue.volar
may causeSIGSEGV
.Same problem here. On a M3 Pro.
<span style="color: rgb(224, 222, 244); font-family: -apple-system, "system-ui", sans-serif; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgba(38, 35, 58, 0.5); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">(3 theme extensions excluded)</span>
Hey, here is my List
Same, without nuxt - just a normal Vue3 monorepo setup on M2.
Output of Typescript module: