microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
234 stars 13 forks source link

[BUG] C# Dev kit fails when opening folder #828

Open SiebRad opened 11 months ago

SiebRad commented 11 months ago

Describe the Issue

Hello, C# Dev kit fails when loading C# project in VS code. Error is below.

Starting Open a solution... Starting Open a solution with environment service... Starting Clear environment... Starting Spawn .NET server... Using preinstalled .NET runtime at "/usr/lib/dotnet/dotnet" .NET server STDERR: Unhandled exception. .NET server STDERR: System.IO.FileNotFoundException: /data/data/com.termux/files/usr/libexec/proot/loader at System.Diagnostics.FileVersionInfo.GetVersionInfo(String fileName)

I am using Samsung DeX with Termux and Andronix with Ubuntu 22.04.

I am unable to debug .NET application due to this.

Regards,

Radim

Steps To Reproduce

Issue happens any time when I open folder with C# project.

Expected Behavior

I expect that C# Dev kit starts without error and I am able to work.with C# project.

Environment Information

Version: 1.85.1 Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2 Date: 2023-12-13T09:48:59.576Z Electron: 25.9.7 ElectronBuildId: 25551756 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Linux arm64 5.15.94-android13-8-27763874-abS911BXXS3BWKC

chzuluag commented 10 months ago

Hi @SiebRad, thanks for reporting the issue. Could you confirm if you installed the Arm64 version of the .Net SDK in your linux environment? We have seen problem when the x64 version is installed on Arm64 devices.

if the problem persists, Could you attach the extension logs following these steps:

SiebRad commented 10 months ago

Hi @chzuluag, thanks for asking. Yes I am sure that I have arm64 version of .Net SDK. Here is part of output from dotnet --info command

.NET SDK: Version: 7.0.114 Commit: b2a71039cd

Runtime Environment: OS Name: ubuntu OS Version: 22.04 OS Platform: Linux RID: ubuntu.22.04-arm64 Base Path: /usr/lib/dotnet/sdk/7.0.114/

Host: Version: 7.0.14 Architecture: arm64 Commit: 808851b07a

.NET SDKs installed: 7.0.114 [/usr/lib/dotnet/sdk]

The zip file is too big to include. I uploaded it to the one drive https://1drv.ms/u/s!ArIQADq8Eg-8g6EGPvE2iW2FXU2Waw?e=6vBhZ8.

I have latest version of VS code and I have updated extensions. Issue still persist.

Regards,

Radim

Michael-Eng commented 7 months ago

@webreidi I've removed the high-priority tag since this is not a common scenario.