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

Server crashes every time I try to make a <style> #4520

Closed
bklik opened this issue Jul 1, 2024 · 8 comments
Closed

Server crashes every time I try to make a <style> #4520

bklik opened this issue Jul 1, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@bklik
Copy link

bklik commented Jul 1, 2024

Vue - Official extension or vue-tsc version

v2.0.24

VSCode version

1.90.2

Vue version

^3.4.18

TypeScript version

^4.5.4

System Info

System:
    OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900HK
    Memory: 25.09 GB / 31.01 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
Binaries:
    Node: 20.15.0 - /usr/bin/node
    Yarn: 1.22.22 - /usr/bin/yarn
    npm: 10.7.0 - /usr/bin/npm
Browsers:
    Chrome: 126.0.6478.126

Steps to reproduce

Create a component and start typing a <style lang="scss" scoped> tag.

What is expected?

The vscode extension doesn't crash.

What is actually happening?

The vscode extension crashes with the above error:

TypeError: Cannot read properties of undefined (reading 'label')
at Dte (/home/user/.vscode/extensions/vue.volar-2.0.24/dist/server.js:13571:2319)
at Object.provideCompletionItems (/home/user/.vscode/extensions/vue.volar-2.0.24/dist/server.js:13571:1995)
at async m (/home/user/.vscode/extensions/vue.volar-2.0.24/dist/server.js:2:48796)
at async Object.getCompletionItems (/home/user/.vscode/extensions/vue.volar-2.0.24/dist/server.js:2:49560)
at async /home/user/.vscode/extensions/vue.volar-2.0.24/dist/server.js:66:20287
at async Timeout. (/home/user/.vscode/extensions/vue.volar-2.0.24/dist/server.js:66:26830)

Node.js v20.9.0
[Error - 2:27:59 PM] Server process exited with code 1.
[Error - 2:27:59 PM] The Vue server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

Link to minimal reproduction

No response

Any additional comments?

If I revert to v2.0.22 everything works as expected.

@Dedicatus546
Copy link

same problem here.

image

@RayGuo-ergou
Copy link
Contributor

It also happened to me when create a new vue file.

@zoo7314
Copy link

zoo7314 commented Jul 3, 2024

facing same issue.

@kuolun
Copy link

kuolun commented Jul 3, 2024

same issue

@ffox1055
Copy link

ffox1055 commented Jul 3, 2024

Screenshot 2024-07-03 093250

same issue

@so1ve
Copy link
Member

so1ve commented Jul 3, 2024

Related to

...result.items.filter(item => item.label !== '!DOCTYPE' && item.label !== 'Custom Blocks'),
?

@firmianaQ
Copy link

我以为电脑问题呢 还真是插件啊

@matamune94
Copy link

Same too when add new teamplate tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants