Language server in VSCode is crashing in a loop
See original GitHub issueDescribe the bug As soon as I start VSCode, the language server crashes on initialize. I had this issue a while ago, but it went away again after some extension updates I asume, now resurfaced.
As you can see it is not related to actual file content, since it also breaks on a simple <div>hello</div>
To Reproduce Steps to reproduce the behavior:
- Open VSCode
- Expect errors in Svelte VSCode output
Expected behavior Svelte VSCode extension to work flawlessly.
Screenshots
System (please complete the following information):
- OS: Ubuntu 20.04
- IDE: VSCode
- Plugin/Package: Svelte for VSCode, svelte-language-server
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Visual Studio Code C/C++ extension : The language server ...
Visual Studio Code C/C++ extension : The language server crashed 5 times in the last 3 minutes. It will not be restarted -...
Read more >Razor editor crashing (intellisense stops working, false ...
In certain files, razor server will simply stop working. Output panel are showing these exceptions: Warning: OmniSharp.Extensions.LanguageServer.Server.
Read more >The language server crashed 5 times in the last 3 minutes. In c ...
I worked on a medium sized C project and at times it became so slow that I constantly have to restart VSCode. Check...
Read more >Way to increase retry threshold when sourcekit-lsp crashes?
i am really sick of seeing The SourceKit Language Server server crashed 5 times in the last 3 minutes. The server will not...
Read more >Visual Studio Code crashing on Windows 11/10
Infinite Loop causing VSCode or System to crash ... Sometimes, there can be no issue with the app or your Graphics driver, but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great that we found the culprit, thanks for the help!
The related core issue: https://github.com/lovell/sharp/issues/2356
I used your suggested fix and all good now.
svelte-image
has a dependency onsharp
, and in one of the other issues related to this problem someone said that package caused it - maybe for you as well. As a fix: try to leave out thesvelte-image
preprocessor for thesvelte.config.js
and only include it for your build config.