dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.86k stars 670 forks source link

C# Extension does not work in alpine container #5368

Open Torkolis opened 2 years ago

Torkolis commented 2 years ago

Hi I am currently trying to get C# Extension with intellisense to get working in a container with this image: mcr.microsoft.com/dotnet/sdk:6.0-alpine

I can't even do the CSharp: Report an issue because it shows me this error: image So I will try to fill out myself

Environment data

dotnet --info output:

.NET SDK (reflecting any global.json): Version: 6.0.400 Commit: 7771abd614 Runtime Environment: OS Name: alpine OS Version: 3.16 OS Platform: Linux RID: alpine.3.16-x64 Base Path: /usr/share/dotnet/sdk/6.0.400/ global.json file: /home/dotnet/dotnet/FirstProject/global.json Host: Version: 6.0.8 Architecture: x64 Commit: 55fb7ef977 .NET SDKs installed: 6.0.400 [/usr/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 6.0.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Download .NET: https://aka.ms/dotnet-download Learn about .NET Runtimes and SDKs: https://aka.ms/dotnet/runtimes-sdk-info

VS Code version: 1.71.0 C# Extension version: 1.25.0

C# log

[ERROR]: C# Extension failed to get platform information.

Zeddicus414 commented 1 year ago

This seems similar to what I've experienced. https://github.com/OmniSharp/omnisharp-vscode/issues/5348