dotnet / razor

Compiler and tooling experience for Razor ASP.NET Core apps in Visual Studio, Visual Studio for Mac, and VS Code.
https://asp.net
MIT License
502 stars 193 forks source link

VS Code: [Linux] There is a Tooltip "The Razor Language Server crashed 5 times in the last 3 minutes.The server will not be restarted" with Red Hat Enterprise Linux 9. #6611

Closed v-sherryfan closed 2 years ago

v-sherryfan commented 2 years ago

Is there an existing issue for this?

Describe the bug

Environment data

VS Code version:1.69.2 C# Extension version:1.25.0

Expected Behavior

The Output window has no errors

Steps To Reproduce

  1. Clean machine: Red Hat Enterprise Linux 9.0 (LVM)

  2. Install the SDK 7.0.100-preview.7.22362.31 from: https://aka.ms/dotnet/7.0.1xx-preview7/daily/dotnet-sdk-linux-x64.tar.gz

  3. Install C# Extensions version: v1.25.0.vsix from: https://github.com/OmniSharp/omnisharp-vscode/releases

  4. Open a normal Terminal Emulator, create MVC/Razor/Blazor project and open it using VS code

    mkdir MVC3x
    cd MVC3x
    dotnet new mvc
    code .
  5. In VS Code and go to the Extensions Tab, select "Install from VSIX" > install the file you downloaded.

  6. Navigate to Explorer (at the upper left corner) > Open Views/Shared/_Layout.cshtml, the output window will display the following error

Exceptions (if any)

image

.NET Version

No response

Anything else?

image

v-sherryfan commented 2 years ago

@balachir The same configuration is fine on Red Hat Enterprise Linux 8. The path of the bug is not very clear, can you help route to the correct path?

NTaylorMullen commented 2 years ago

I believe this is a duplicate of: https://github.com/dotnet/razor-tooling/issues/6241

Ultimately fixing #6241 will fix this.