Arch: Razor Language Server server is crashing on startup of VS Code
See original GitHub issueWork around
- Open the VS Code settings file (File menu->Preferences->Settings)
- Add
"razor.disabled": true
Environment data
dotnet --info
output:
.NET Core SDK (reflecting any global.json):
Version: 2.2.102
Commit: 96ff75a873
Runtime Environment:
OS Name: antergos
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /opt/dotnet/sdk/2.2.102/
Host (useful for support):
Version: 2.2.1
Commit: 878dd11e62
.NET Core SDKs installed:
2.2.102 [/opt/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.NETCore.App 2.2.1 [/opt/dotnet/shared/Microsoft.NETCore.App]
VS Code version:
Version: 1.30.2
Commit: 61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8
Date: 2019-01-08T23:10:56.746Z
Electron: 2.0.16
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
OS: Linux x64 4.20.4-arch1-1-ARCH
C# Extension version:
1.17.1
Steps to reproduce
- Have the C# extension installed
- Open up a random project, even a console app will do, that’s what I did
Close down VS Code, and then launch it again and the error message should appear in the bottom right- Close down VS Code, Reboot computer, start vs code and an error message should appear in the bottom right
Expected behavior
Not to crash I believe
Actual behavior
The Razor Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.
[Info - 6:06:01 PM] Connection to server got closed. Server will restart.
[Info - 6:06:01 PM] Connection to server got closed. Server will restart.
[Info - 6:06:02 PM] Connection to server got closed. Server will restart.
[Info - 6:06:03 PM] Connection to server got closed. Server will restart.
[Error - 6:06:04 PM] Connection to server got closed. Server will not be restarted.
Also breaking the whole code application it seems, the debugger just sits there and doing nothing if you press F5, but I do have a problem with the debugger in a seperate issue.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:22
- Comments:40 (17 by maintainers)
Top Results From Across the Web
Language Server Extension Guide - Visual Studio Code
Learn how to create Language Servers to provide rich language features in Visual Studio Code.
Read more >AUR (en) - visual-studio-code-bin - Arch Linux
This package allows using the new python language server pylance . ... integration but if I have it and keepassxc running then vscode...
Read more >Visual Studio 2019 version 16.11 Release Notes
Fixes a potential deadlock when closing Performance Profiler or Diagnostic Tools on Windows Server machines. Fixes a delay in VS startup.
Read more >visual studio code - Debugging a crashing language server
If you want to debug the server startup / initialize sequence you can change the debugOptions to: let debugOptions = { execArgv: ["--nolazy",...
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 >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
Deleting the extension from .vscode and reinstall has worked for me.
Can confirm this appeared again after a reboot, and as previously mentioned will be fixed by doing what @virtualdreams described. So this issue affects both AUR package and the one from arch-repo.