Skip to content

[Linux] Some error boxes pop up in the lower right corner when opening Blazor Web for Server application with VsCode #6160

@LuckyKang79

Description

@LuckyKang79

Environment data

dotnet --info output:

.NET SDK:
 Version:   8.0.100-rc.1.23416.11
 Commit:    8d3d6d0774

Runtime Environment:
 OS Name:     rhel
 OS Version:  9
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /home/aapt/dotnet/sdk/8.0.100-rc.1.23416.11/

.NET workloads installed:
There are no installed workloads to display.

Host:
  Version:      8.0.0-rc.1.23414.4
  Architecture: x64
  Commit:       e897946596
  RID:          linux-x64

.NET SDKs installed:
  8.0.100-rc.1.23416.11 [/home/aapt/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.0-rc.1.23414.10 [/home/aapt/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.0-rc.1.23414.4 [/home/aapt/dotnet/shared/Microsoft.NETCore.App]

VS Code version: 1.81.1
C# Extension version: v2.0.376

OmniSharp log

C# LogUsing dotnet configured on PATH Dotnet path: /bin/dotnet Activating C# standalone... You must install .NET to run this application.

App: /home/aapt/.vscode/extensions/ms-dotnettools.csharp-2.0.376-linux-x64/.roslyn/Microsoft.CodeAnalysis.LanguageServer
Architecture: x64
App host version: 7.0.0-preview.7.22362.8
.NET location: Not found

Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=rhel.9-x64&apphost_version=7.0.0-preview.7.22362.8
[Error - 8:21:45 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 8:21:45 AM] Connection to server got closed. Server will restart.
true
[Error - 8:21:45 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
Using dotnet configured on PATH
Dotnet path: /bin/dotnet
Activating C# standalone...
You must install .NET to run this application.

App: /home/aapt/.vscode/extensions/ms-dotnettools.csharp-2.0.376-linux-x64/.roslyn/Microsoft.CodeAnalysis.LanguageServer
Architecture: x64
App host version: 7.0.0-preview.7.22362.8
.NET location: Not found

Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=rhel.9-x64&apphost_version=7.0.0-preview.7.22362.8
[Error - 8:21:45 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 8:21:45 AM] Connection to server got closed. Server will restart.
true
[Error - 8:21:45 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
Using dotnet configured on PATH
Dotnet path: /bin/dotnet
Activating C# standalone...
You must install .NET to run this application.

App: /home/aapt/.vscode/extensions/ms-dotnettools.csharp-2.0.376-linux-x64/.roslyn/Microsoft.CodeAnalysis.LanguageServer
Architecture: x64
App host version: 7.0.0-preview.7.22362.8
.NET location: Not found

Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=rhel.9-x64&apphost_version=7.0.0-preview.7.22362.8
[Error - 8:21:45 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 8:21:45 AM] Connection to server got closed. Server will restart.
true
[Error - 8:21:45 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 8:21:45 AM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
Using dotnet configured on PATH
Dotnet path: /bin/dotnet
Activating C# standalone...
You must install .NET to run this application.

App: /home/aapt/.vscode/extensions/ms-dotnettools.csharp-2.0.376-linux-x64/.roslyn/Microsoft.CodeAnalysis.LanguageServer
Architecture: x64
App host version: 7.0.0-preview.7.22362.8
.NET location: Not found

Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=rhel.9-x64&apphost_version=7.0.0-preview.7.22362.8
[Error - 8:21:45 AM] Server initialization failed.
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 8:21:45 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 8:21:45 AM] Restarting server failed
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 8:21:45 AM] Restarting server failed
Message: Cannot call write after a stream was destroyed
Code: -32099
[Info - 8:21:45 AM] Connection to server got closed. Server will restart.
true
Using dotnet configured on PATH
Dotnet path: /bin/dotnet
Activating C# standalone...
You must install .NET to run this application.

App: /home/aapt/.vscode/extensions/ms-dotnettools.csharp-2.0.376-linux-x64/.roslyn/Microsoft.CodeAnalysis.LanguageServer
Architecture: x64
App host version: 7.0.0-preview.7.22362.8
.NET location: Not found

Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=rhel.9-x64&apphost_version=7.0.0-preview.7.22362.8
[Error - 8:21:45 AM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 8:21:45 AM] The Microsoft.CodeAnalysis.LanguageServer server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 8:21:45 AM] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097

Steps to reproduce

  1. Create a folder and create a BlazorServer project in it:
mkdir Blazor
cd Blazor
dotnet new blazor --use-server  
  1. Navigate to the folder you created Blazor and open VS Code using Terminal Emulator
    code .

Note:

  1. This issue does not reproduce on lower versions of C# v2.0.357
  2. This issue does not repro on Windows/Mac

Actual behavior

some error boxes pop up in the lower right corner
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions