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.

Arch: Razor Language Server server is crashing on startup of VS Code

See original GitHub issue

Work 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

  1. Have the C# extension installed
  2. Open up a random project, even a console app will do, that’s what I did
  3. Close down VS Code, and then launch it again and the error message should appear in the bottom right
  4. 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:open
  • Created 5 years ago
  • Reactions:22
  • Comments:40 (17 by maintainers)

github_iconTop GitHub Comments

12reactions
virtualdreamscommented, Jan 28, 2019

Deleting the extension from .vscode and reinstall has worked for me.

9reactions
CTJanssoncommented, Jan 29, 2019

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.

Read more comments on GitHub >

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

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