"Couldn't start client Razor Language Server" popup window appears with error in Razor Log.
Error shows up in Razor Log, so it might not be directly related with C# extension. Nevertheless, it seems like the component is used by C# extension.
Steps to Reproduce
1) Change omnisharp.useModernNet to true
2) Create a Blazor project with command: dotnet new blazorserver -f net6.0
3) Open new Blazor project.
Expected Behavior
No error appears.
Actual Behavior
"Couldn't start client Razor Language Server" popup window appears with error in Razor Log.
Logs
OmniSharp log
Starting OmniSharp server at 3/6/2022, 12:59:29 PM
Target: /Users/myusername/IdeaProjects/BlazorApp
OmniSharp server started with .NET 6.0.102
.
Path: /Users/myusername/.vscode/extensions/ms-dotnettools.csharp-1.24.1/.omnisharp/1.38.1-net6.0/OmniSharp.dll
PID: 6523
Starting OmniSharp on Unknown 0.0 (Unknown)
Checking the 'DOTNET_ROOT' environment variable to find a .NET SDK
To change Razor's trace level set 'razor.trace' to 'Off', 'Messages' or 'Verbose' and then restart VSCode.
To report issues invoke the 'Report a Razor issue' command via the command palette.
[Error - 12:59:29 PM] Starting client failed
Error: spawn Unknown system error -86
at ChildProcess.spawn (internal/child_process.js:403:11)
at Object.spawn (child_process.js:570:9)
at /Users/myusername/.vscode/extensions/ms-dotnettools.csharp-1.24.1/dist/extension.js:2:1060499
C# log
Empty
Environment information
VSCode version: 1.65.0
C# Extension: 1.24.1
Mono Information
OmniSharp using built-in monoDotnet Information
.NET SDK (reflecting any global.json):
Version: 6.0.102
Commit: 02d5242ed7
Runtime Environment:
OS Name: Mac OS X
OS Version: 12.2
OS Platform: Darwin
RID: osx.12-arm64
Base Path: /usr/local/share/dotnet/sdk/6.0.102/
Host (useful for support):
Version: 6.0.2
Commit: 839cdfb0ec
.NET SDKs installed:
6.0.101 [/usr/local/share/dotnet/sdk]
6.0.102 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
|Extension|Author|Version|
|---|---|---|
|csharp|ms-dotnettools|1.24.1|;
Issue Description
"Couldn't start client Razor Language Server" popup window appears with error in Razor Log. Error shows up in Razor Log, so it might not be directly related with C# extension. Nevertheless, it seems like the component is used by C# extension.
Steps to Reproduce
1) Change omnisharp.useModernNet to true 2) Create a Blazor project with command: dotnet new blazorserver -f net6.0 3) Open new Blazor project.
Expected Behavior
No error appears.
Actual Behavior
"Couldn't start client Razor Language Server" popup window appears with error in Razor Log.
Logs
OmniSharp log
Starting OmniSharp server at 3/6/2022, 12:59:29 PM Target: /Users/myusername/IdeaProjects/BlazorApp
OmniSharp server started with .NET 6.0.102 . Path: /Users/myusername/.vscode/extensions/ms-dotnettools.csharp-1.24.1/.omnisharp/1.38.1-net6.0/OmniSharp.dll PID: 6523
Razor log
Razor.VSCode version 6.0.0-preview.5.21358.6
Razor's trace level is currently set to 'Off'
To report issues invoke the 'Report a Razor issue' command via the command palette.
[Error - 12:59:29 PM] Starting client failed Error: spawn Unknown system error -86 at ChildProcess.spawn (internal/child_process.js:403:11) at Object.spawn (child_process.js:570:9) at /Users/myusername/.vscode/extensions/ms-dotnettools.csharp-1.24.1/dist/extension.js:2:1060499
C# log
Empty
Environment information
VSCode version: 1.65.0 C# Extension: 1.24.1
Mono Information
OmniSharp using built-in monoDotnet Information
.NET SDK (reflecting any global.json): Version: 6.0.102 Commit: 02d5242ed7 Runtime Environment: OS Name: Mac OS X OS Version: 12.2 OS Platform: Darwin RID: osx.12-arm64 Base Path: /usr/local/share/dotnet/sdk/6.0.102/ Host (useful for support): Version: 6.0.2 Commit: 839cdfb0ec .NET SDKs installed: 6.0.101 [/usr/local/share/dotnet/sdk] 6.0.102 [/usr/local/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 6.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-downloadVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |csharp|ms-dotnettools|1.24.1|;