interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Polyglot Notebooks - VSCode Plugin claims dotnet is not installed

Open TheCleric opened this issue 6 months ago • 5 comments

Describe the bug

When opening VSCode with Polyglot Notebooks extension enabled and dotnet sdk version 9.0.304 installed, I get an error stating:

.NET 9 SDK REQUIRED
The Polyglot Notebooks extension now requires .NET SDK Version 9.0.

As well the Output tab > Polyglot Notebook: diagnostics has the following message:

Unable to determine the version of the .NET SDK.
STDOUT:

STDERR:
Error: spawn dotnet ENOENT

However, I definitely have dotnet sdk installed (via homebrew) and it is available on my path:

> dotnet --version
9.0.304
> which dotnet
/opt/homebrew/bin/dotnet

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

I cannot due to aforementioned issue.

  • OS
    • [ ] Windows 11
    • [ ] Windows 10
    • [X] macOS
    • [ ] Linux (Please specify distro)
    • [ ] iOS
    • [ ] Android
  • Browser
    • [ ] Chrome
    • [ ] Edge
    • [ ] Firefox
    • [ ] Safari
  • Frontend
    • [ ] Jupyter Notebook
    • [ ] Jupyter Lab
    • [ ] nteract
    • [X] Visual Studio Code
    • [ ] Visual Studio Code Insiders
    • [ ] Visual Studio
    • [ ] Other (please specify)

Screenshots

If applicable, please add screenshots of the entire VS Code window.

TheCleric avatar Aug 25 '25 13:08 TheCleric

Same here. Ubuntu 24.04 $ dotnet --version 9.0.109 $ which dotnet /usr/bin/dotnet

sgjohnson1981 avatar Sep 05 '25 17:09 sgjohnson1981

I am also experiencing this issue

Started process 14108: dotnet tool run dotnet-interactive -- notebook-parser process 14108 stderr: You must install or update .NET to run this application.

App: C:\Users\nbecker.nuget\packages\microsoft.dotnet-interactive\1.0.632301\tools\net9.0\any\Microsoft.DotNet.Interactive.App.dll Architecture: x64

process 14108 stderr: Framework: 'Microsoft.NETCore.App', version '9.0.8' (x64) .NET location: C:\Program Files\dotnet\

The following frameworks were found: 8.0.14 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] 9.0.3 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

process 14108 stderr: Learn more: https://aka.ms/dotnet/app-launch-failed

To install missing framework, download: https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=9.0.8&arch=x64&rid=win-x64&os=win10

Process 'dotnet' with PID 14108 exited with code 2147516566 and signal null

nabil-becker avatar Sep 10 '25 14:09 nabil-becker

Same problem on Windows 11 10.0.26100.0

PS C:\> dotnet --info
.NET SDK:
 Version:           9.0.308
 Commit:            46e170c517
 Workload version:  9.0.300-manifests.6f9c3023
 MSBuild version:   17.14.28+09c1be848

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.26100
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Program Files\dotnet\sdk\9.0.308\

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

Host:
  Version:      9.0.11
  Architecture: x64
  Commit:       fa7cdded37

.NET SDKs installed:
  9.0.308 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.22 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 9.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 9.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 8.0.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 9.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
  x86   [C:\Program Files (x86)\dotnet]
    registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
  Not set

global.json file:
  Not found

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

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

BrianL-STCU avatar Nov 25 '25 21:11 BrianL-STCU

Tried again later and it worked, so maybe it's inconsistent.

BrianL-STCU avatar Nov 26 '25 00:11 BrianL-STCU

Same here wsl2 with ubuntu 22.04 dotnet --list-sdks 9.0.203 [/usr/share/dotnet/sdk] but get need to install dotnet 9

yuanhao1999 avatar Dec 04 '25 13:12 yuanhao1999