You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dotnet path: /usr/bin/dotnet
Activating C# standalone...
You must install .NET to run this application.
App: /home/admin/.vscode-server/extensions/ms-dotnettools.csharp-2.0.206/.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=ubuntu.22.04-x64&apphost_version=7.0.0-preview.7.22362.8
[Info - 12:39:51] Connection to server got closed. Server will restart.
[Error - 12:39:51] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 12:39:51] Microsoft.CodeAnalysis.LanguageServer client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
Steps to reproduce
Be on a network that is not connected to the internet
Install .NET SDKs & VSCode on Windows machine
Create a Linux k8s pod that has .NET SDKs installed from the Ubuntu repo
Manually install extensions on Windows machine (win-x64 versions)
Manually install VS code remote server and C# extensions on Linux k8s pod (linux-x64 versions)
Configure both to not hit the internet to download the .NET runtime
Use Remote-ssh to connect VSCode from Windows to linux/k8s
Open a C# file
Expected behavior
The Language Server should start correctly (using the installed .NET runtime) and C# features should work in the editor.
Actual behavior
The language server fails to start, as shown above.
Dotnet path: /usr/bin/dotnet
Activating C# standalone...
You must install .NET to run this application.
App: /home/admin/.vscode-server/extensions/ms-dotnettools.csharp-2.0.206/.roslyn/Microsoft.CodeAnalysis.LanguageServer
Architecture: x64
App host version: 7.0.0-preview.7.22362.8
.NET location: Not found
Additional context
Running the same language server executable from a VS Code Terminal pane works fine:
Having the same problem: I've installed .NET runtime and sdk using dotnet-install.sh script, added it to PATH and even set vscode settings to point to existing installation, but this extension still tries to download its own runtime
It seems like something has gone wrong with the way the .NET runtime is installed on our Ubuntu docker image amd /etc/dotnet/install_location was missing. Setting that up correctly worked ofr me.
I have a very similar problem, but neither DOTNET_ROOT or /etc/dotnet/install_location resolve the issue for me. Interestingly, when I execute ~/.vscode/extensions/ms-dotnettools.csharp-2.0.376-linux-x64/.roslyn/Microsoft.CodeAnalysis.LanguageServer from the terminal, it starts up.
My workaround is to set "dotnet.server.useOmnisharp": true
Environment data
dotnet --info
output:VS Code version:
C# Extension version:
OmniSharp log
Steps to reproduce
Expected behavior
The Language Server should start correctly (using the installed .NET runtime) and C# features should work in the editor.
Actual behavior
The language server fails to start, as shown above.
Additional context
Running the same language server executable from a VS Code Terminal pane works fine:
With the C# Dev Kit installed I see the same behaviour there, except
App host version
in the log is7.0.5
.The text was updated successfully, but these errors were encountered: