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
228 stars 12 forks source link

[BUG] ArchLinux (6.10.10-arch1-1) .NET Core SDK cannot be located #1514

Closed slippuu closed 1 week ago

slippuu commented 1 week ago

Describe the Issue

Following the instructions for the scripted install and successfully running the script, the SDK downloaded successfully to home/slippuu/.dotnet and was added to path.

Error notification shows in VSCode: The .NET Core SDK cannot be located: Error running dotnet --info: Error: Command failed: dotnet --info /bin/sh: line 1: dotnet: command not found /bin/sh: line 1: dotnet: command not found . .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path.

On both the integrated terminal and external terminal emulator, dotnet --info shows:

.NET SDK:
 Version:           8.0.402
 Commit:            70aa751718
 Workload version:  8.0.400-manifests.b6724b7a
 MSBuild version:   17.11.4+37eb419ad

Runtime Environment:
 OS Name:     arch
 OS Version:  
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /home/slippuu/.dotnet/sdk/8.0.402/

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
There are no installed workloads to display.

Host:
  Version:      8.0.8
  Architecture: x64
  Commit:       08338fcaa5

.NET SDKs installed:
  8.0.402 [/home/slippuu/.dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.8 [/home/slippuu/.dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.8 [/home/slippuu/.dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

global.json file:
  Not found

Learn more:
  https://aka.ms/dotnet/info

Download .NET:
  https://aka.ms/dotnet/download

This is shown when using all 3 shells installed on the system (sh, bash, zsh), however the extension is unable to run the command when testing for debugging purposes.

Steps To Reproduce

Using ZSH (default shell)

  1. wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
  2. chmod +x ./dotnet-install.sh
  3. ./dotnet-install.sh --version latest
  4. Added the lines export DOTNET_ROOT=$HOME/.dotnet and export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools to both .zshrc and .bashrc
  5. Installed extension ms-dotnettools.csdevkit through Extensions Window
  6. Sourced .zshrc to update terminal
  7. Restarted VSCode

Expected Behavior

No error message to appear, .NET Core debugging to be enabled

Environment Information

slippuu commented 1 week ago

Issue seemingly resolved itself