question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Language server in VSCode is crashing in a loop

See original GitHub issue

Describe 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 2020-09-26_09-18

System (please complete the following information):

  • OS: Ubuntu 20.04
  • IDE: VSCode
  • Plugin/Package: Svelte for VSCode, svelte-language-server

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mcmxcdevcommented, Sep 28, 2020

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.

0reactions
dummdidummcommented, Sep 28, 2020

svelte-image has a dependency on sharp, 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 the svelte-image preprocessor for the svelte.config.js and only include it for your build config.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found