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

Language Features Server server crashed 5 times in the last 3 minutes. #1300

Closed
yangzhenfeng1994 opened this issue May 13, 2022 · 14 comments · Fixed by #1360
Closed

Language Features Server server crashed 5 times in the last 3 minutes. #1300

yangzhenfeng1994 opened this issue May 13, 2022 · 14 comments · Fixed by #1360
Labels
bug Something isn't working

Comments

@yangzhenfeng1994
Copy link

yangzhenfeng1994 commented May 13, 2022

image
more infomation
image
os info
image
vscode version
image

@timoransky
Copy link

timoransky commented May 13, 2022

Hey! Same thing happens to me since yesterday. I tried to re-install Volar but did not have any luck 😞

@artmizu
Copy link

artmizu commented May 14, 2022

also happens to me, maybe issue related with this message?
image

@artmizu
Copy link

artmizu commented May 14, 2022

yesterday the johnsoncodehk/volar receive update 0.34.14 maybe it also relate

@artmizu
Copy link

artmizu commented May 14, 2022

Volar VSCode extension has a «Max Old Space Size» setting and description said it may help, but it doesn't work for me
image

@artmizu
Copy link

artmizu commented May 14, 2022

rollback to any older version also not helped
image

@johnsoncodehk
Copy link
Member

Hi @yangzhenfeng1994, can you reproduce this problem in https://github.com/johnsoncodehk/volar-starter?

@artmizu
Copy link

artmizu commented May 15, 2022

i found the reason of a issue. Lets look at the piece of code:
image

it produce the error and vue server will crash. but if i change "constructor" to something else, for example to "block", everything works fine. so reason of an issue in "constructor" class name.
image

@changk99
Copy link

I also encounter the same problem, which will lead to the increasing memory consumption of vscode, so I have to disable this plugin

@benjaminpaul
Copy link

benjaminpaul commented May 18, 2022

Just adding myself to this issue, I am currently experiencing the same issue.
Windows 11, V0.34.15

[Error - 15:18:31] Request completionItem/resolve failed.
  Message: Request completionItem/resolve failed with message: host.getGlobalTypingsCacheLocation is not a function
  Code: -32603 
c:\Users\paul\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\typescript.js:129706
            var typingsCacheLocation = host.getGlobalTypingsCacheLocation();
                                            ^

TypeError: host.getGlobalTypingsCacheLocation is not a function
    at isNotShadowedByDeeperNodeModulesPackage (c:\Users\n.paul\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\typescript.js:129706:45)
    at c:\Users\.paul\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\typescript.js:129599:83
    at Array.filter (<anonymous>)
    at c:\Users\paul\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\typescript.js:129599:51
    at Map.forEach (<anonymous>)
    at Object.search (c:\Users\.paul\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\typescript.js:129594:28)
    at c:\Users\n.paul\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\typescript.js:133974:32
    at resolvingModuleSpecifiers (c:\Users\n.paul\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\typescript.js:132031:26)
    at collectAutoImports (c:\Users\en.paul\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\typescript.js:133973:17)
    at getGlobalCompletions (c:\Users\.paul\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\node_modules\typescript\lib\typescript.js:133877:17)
[Info  - 15:18:31] Connection to server got closed. Server will restart.

@webdo
Copy link

webdo commented May 18, 2022

I also have the exact same issue as the one above, the server will crash as soon as it reach 512MB of ram used, even with Max Old Space Size set to 8GB.
The server is ran correctly with the --max-old-space-size set to 8096 from the settings:

/root/.vscode-server-insiders/bin/9c29becfad5f68270b9b23efeafb147722c5feba/node --max-old-space-size=8096 /root/.vscode-server-insiders/extensions/vue.volar-0.34.15-linux-x64/server --node-ipc --clientProcessId=27123

I'm not sure why it doesn't want to use more than 512mb of RAM.

@webdo
Copy link

webdo commented May 25, 2022

I fixed the issues by switching typescript version to 4.6.3, it seems to be related to typescript v4.7+ that is included in VSCode Insiders, I did not get a single crash in the past 48 hours and it was just unusable before.

@changk99
Copy link

I seem to have solved this problem, the error message is that the specific file cannot be requested, I used the scientific Internet(科学上网), and then it was fine

@TimothyKrell
Copy link

TimothyKrell commented May 27, 2022

I am having this issue as well. Using typescript 4.7 causes the same error and crash. Using 4.6 works fine.

The crash happens when I try auto complete a Component name.

@adenvt
Copy link

adenvt commented May 28, 2022

I got same problem on TS 4.7, but no crash, just auto import and some quick fix not work properly. Switch to 4.6 works normally.

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

Successfully merging a pull request may close this issue.

9 participants