dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.91k stars 389 forks source link

The .NET SDK version is not sufficient. The minimum required version is 7.0. #2956

Open MrLuje opened 1 year ago

MrLuje commented 1 year ago

Describe the bug

From time to time, when opening VSCode, it complains that I'm missing the correct SDK version. It also opens the view containing

# .NET 7 SDK **REQUIRED**

## The Polyglot Notebooks extension now requires .NET SDK Version 7.0 or higher.

## 1. Install [here](https://dotnet.microsoft.com/en-us/download)
## 2. Restart VS Code

dotnet info :

 ~ dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.16 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.5 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.16 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.5 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
 ~ dotnet --list-sdks
6.0.408 [/usr/share/dotnet/sdk]
7.0.203 [/usr/share/dotnet/sdk]

Trying to explicitly run a cell in the notebook (notice the missing ".net interactive" option) image

Run the VSCode command "Developer: Reload window" fixes the issue.

Please complete the following:

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

colombod commented 1 year ago

are there any repro step we can look at?

MrLuje commented 1 year ago

Hi @colombod

Here are the steps for me to reproduce it :

I also have this if I still try to open the notebook image

Jupyter extension seems to properly active but note the Polyglot Notebooks image

image

realparadyne commented 1 year ago

Just ran into this again today. So it's still an issue. Reload has cleared it but closing and re-opening vs code first did not resolve it.