-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
VUE Language Server crashed 5 times in the last 3 minutes #3520
Comments
This happens to me when I upgrade Typescript from 4.7.x (4.7.4) to 4.8.x (4.8.3) No idea if it has anything to do that I am using "vue-property-decorator" to write my components. |
i use VUE2 with typescript, and i wrote all my componennts for example like this:
so, what i tried for the example component above, i remove the "savebuttongroup" from "components" property, like this: and vola, the VLS (vue language server) restarts without error. for myself, i think it has maybe nothing to do with the vetur itself, because i installed a 1 year old vetur version, and the error is the same. I think it has todo with VSCode Version. What i not really understand is, that not more people have this problem ! Please, Vetur Team, HELP, without the VLS Server it is not really fine to develop vue app's. |
@susanne99 which Typescript version are you running? Please check in vs code:
|
Hi Cyclodex, tsconfig.json:
"Select Typescript Version":
I tried to use the workspace Version - the problem still exists |
I can't imagine that nobody has this problem I mean, a recursion error with max. call stack size exceeded cannot only effect me. .vscode\extensions\octref.vetur-0.36.0\server\node_modules\typescript\lib\typescript.js:60715 RangeError: Maximum call stack size exceeded |
I was facing the same problem in one of my nuxt projects (We will call this X project). Luckily I had other nuxt projects in my computer in which Vetur was working perfectly fine. After digging a lot and wasting a lot of time on this issue. Some how I came to know that X project had vue v2.7.13 in My guess is I might had different vue versions across different dependencies. Please have a look at this and verify your project's Thanks. |
hi,
thanks fpr the tip !
meanwhile i stopped the investigation and use from now on volar.
it works, but sometimes (very little) i monitored also a stack overflow error - then i restart VS-Code and the error has gone !
the general problem is,
each provider has its own system, e.g. typescript translator, you can use the one from VSCode or the one from VUE or a third party, and so on
kind regards
Gesendet: Samstag, 22. Oktober 2022 um 14:58 Uhr
Von: "Ahmad Javaid" ***@***.***>
An: "vuejs/vetur" ***@***.***>
Cc: "susanne99" ***@***.***>, "Mention" ***@***.***>
Betreff: Re: [vuejs/vetur] VUE Language Server crashed 5 times in the last 3 minutes (Issue #3520)
I was facing the same problem in one of my nuxt projects (We will call this X project). Luckily I had other nuxt projects in my computer in which Vetur was working perfectly fine.
After digging a lot and wasting a lot of time on this issue. Some how I came to know that X project had vue v2.7.13 in package-lock.json and other projects had vue v2.6.12. So I copy and pasted package-lock.json from another nuxt project into X project's package-lock.json remove node_modules, ran npm i and then the issue was resolved and Vetur started working perfectly fine.
My guess is I might had different vue versions across different dependencies.
Please have a look at this and verify your project's package-lock.json
Thanks.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Vetur is broken in typescript 4.8. I will fix it. |
Hey @susanne99 I have almost exactly the same issue as you do, after a lengthy investigation found that if I removed I got declaration missing and other expected validation errors in components where vuelidate is present, which is in the dozens of places for me , but the build does not fail. it will take some time to make the update but hopefully thats is it. Suggestion: Try updating vuelidate to @vuelidate/core v2.0.0 |
@platformlead Thanks for your comment, our app is also using vuelidate and removing its types package solved everything! |
Vetur: Restart VLS
Info
Problem
The errror occurs on some .vue files, not on all.
I have no idea what the reason is, i tried almost everything: i reduced step by step the code of such a failed .vue file, but the vls server restart takes a long time, which makes the error investigation very heavy !
I checked the folder structure, e.g. same file name like folder name (maybe this creates end endless loop), i renamed, copied files and so on - nothing helped !! Vetur is a very important tool for me, and I and other developer need it really for developing stable software. Maybe is "VOLAR" the right plugin, but my program exists since 3 years (VUE2 with about 100 files), and i don't want to change it like VOLAR spec.
I reinstalled also VETUR, no success
Vetur initialized
[INFO ] Loaded bundled [email protected].
[INFO ] Loaded bundled prettier.
[INFO ] Loaded bundled @starptech/prettyhtml.
[INFO ] Loaded bundled prettier-eslint.
[INFO ] Loaded bundled prettier-tslint.
[INFO ] Loaded bundled stylus-supremacy.
[INFO ] Loaded bundled @prettier/plugin-pug.
[Error - 06:47:41] Request textDocument/semanticTokens/range failed.
Message: Request textDocument/semanticTokens/range failed with message: Maximum call stack size exceeded
Code: -32603
c:\Users\Wolfgang.vscode\extensions\octref.vetur-0.36.0\server\node_modules\typescript\lib\typescript.js:60473
function getObjectTypeInstantiation(type, mapper, aliasSymbol, aliasTypeArguments) {
^
RangeError: Maximum call stack size exceeded
at getObjectTypeInstantiation (c:\Users\Wolfgang.vscode\extensions\octref.vetur-0.36.0\server\node_modules\typescript\lib\typescript.js:60473:44)
at instantiateTypeWorker (c:\Users\Wolfgang.vscode\extensions\octref.vetur-0.36.0\server\node_modules\typescript\lib\typescript.js:60736:28)
at instantiateTypeWithAlias (c:\Users\Wolfgang.vscode\extensions\octref.vetur-0.36.0\server\node_modules\typescript\lib\typescript.js:60716:26)
at instantiateType (c:\Users\Wolfgang.vscode\extensions\octref.vetur-0.36.0\server\node_modules\typescript\lib\typescript.js:60699:37)
at instantiateList (c:\Users\Wolfgang.vscode\extensions\octref.vetur-0.36.0\server\node_modules\typescript\lib\typescript.js:60323:34)
Reproducible Case
Not Reproducable
My Package.json
The text was updated successfully, but these errors were encountered: