Receive message "The .NET SDK version 7.0.100 is not sufficient. The required version is 8.0."
Polyglot Notebooks v1.0.5063010
Question
On opening VS Code (macOS Sonoma 14.2.1), I saw, "The Polyglot Notebooks extension now requires .NET SDK Version 8.0". I clicked the link to upgrade the SDK. Installed w/o issue. I still have the issue. I have the error, "The .NET SDK version 7.0.100 is not sufficient. The required version is 8.0."
Looks like VS Code is still referencing SDK version 7.0.x. I can't seem to be able to update VS Code. Please advise.
Thanks!
can you run 'dotnet --list-sdks' command and show the result?
This is the output: 7.0.100 [/Users/chris.rybitski/.vscode-dotnet-sdk/.dotnet/sdk]
This is after installing .NET 8 downloaded from here: https://dotnet.microsoft.com/en-us/download/dotnet/8.0
Ok then that means .NET 8 is not installed correctly or not added to the path correctly
I was getting the same message after I first installed the extension and reloaded the window even though dotnet 8 is installed I believe
dotnet --list-sdks
6.0.126 [/usr/share/dotnet/sdk]
8.0.101 [/usr/share/dotnet/sdk]
The message isn't popping up anymore though after reloading again, now I'm just having an issue where code cells won't run (for F# at least), I think the kernel isn't starting
This seems like a strange bug. I already have .NET 8 SDK;
C:\>dotnet --list-sdks
5.0.410 [C:\Program Files\dotnet\sdk]
7.0.101 [C:\Program Files\dotnet\sdk]
8.0.101 [C:\Program Files\dotnet\sdk]
I reloaded the window after being sure .NET 8 SDK installed, just like @rynoV experienced the message went away but nothing happens right. I tried to check Output window for some logs but couldn't find anything.
Is this happening on macOs?
Nope, I'm on Windows 10.
Arch 6.7.0 for me
I reloaded the window after being sure .NET 8 SDK installed, just like @rynoV experienced the message went away but nothing happens right.
For me nothing happens if I choose the non-ipynb extension (dib? I forget), but if I choose the ipynb the notebook is created the cells just stall when I run them
Do you have access to any log? Some would be here :
and here
any process startup issue would be there.
Also if you want to enable more logging open the setting for Polyglot Notebooks
edit settings in json
"dotnet-interactive.kernelTransportArgs": [
"{dotnet_path}",
"tool",
"run",
"dotnet-interactive",
"--",
"[vscode]",
"stdio",
"--working-dir",
"{working_dir}",
// enable verbose logs
"--verbose",
"--log-path",
"C:/temp/testlogs/"
]
That could help diagnose the isse
I edited the settings in json as you mentioned, opened new window and ran the command Install .NET Interactive.
Polyglot Notebook: logger [Error] extension host: Error parsing language configuration for language mustache
Polyglot Notebook: diagnostics Extension started for VS Code Stable. Started process 17812: dotnet tool run dotnet-interactive -- notebook-parser
relevant part of the settings.json
To be sure no write permission error can occur changed the log path to writable home directory.
"dotnet-interactive.kernelTransportArgs": [
"{dotnet_path}",
"tool",
"run",
"dotnet-interactive",
"--",
"[vscode]",
"stdio",
"--working-dir",
"{working_dir}",
// enable verbose logs
"--verbose",
"--log-path",
"C:/Users/tbaskan/"
]
Sorry, I forgot to mention there is no new files created in log path.
I encountered the similar issue on Windows 11. When starting a new notebook in VS Code, it seems nothing happened at all. However checking the process with Get-Process | ? {$_.name -imatch "dot"}, I found the id of dotnet process kept changing, which means dotnet processes were terminated, restarted, terminated, restarted, so on and so forth, just like an endless loop.
After some investigation, I guess the issue is the version 1.0.446104 of .NET interactive tool can not run with .NET SDK 8 so I changed the version of .NET SDK and interactive tool in the extension setting as below
Then I could create new notebook or open notebook successfully. However, I still have the issue that after rendering the execution result of the command/program, the execution process keeps running, instead of terminating.
Below is how I investigated the issue. TLDR;
According to what colombod mentioned above
Do you have access to any log? Some would be here :
and here
any process startup issue would be there. Also if you want to enable more logging open the setting for Polyglot Notebooks
edit settings in json
"dotnet-interactive.kernelTransportArgs": [ "{dotnet_path}", "tool", "run", "dotnet-interactive", "--", "[vscode]", "stdio", "--working-dir", "{working_dir}", // enable verbose logs "--verbose", "--log-path", "C:/temp/testlogs/" ]That could help diagnose the isse
I got the error log like below
Extension started for VS Code Stable.
tool-uninstall: Executing [dotnet tool uninstall Microsoft.dotnet-interactive] in 'c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.dotnet-interactive-vscode'.
tool-uninstall: Finished with code 0.
tool-uninstall: STDOUT:
Tool 'microsoft.dotnet-interactive' was successfully uninstalled and removed from manifest file c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.dotnet-interactive-vscode\.config\dotnet-tools.json.
tool-install: Executing [dotnet tool install --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json --ignore-failed-sources Microsoft.dotnet-interactive --version 1.0.446104] in 'c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.dotnet-interactive-vscode'.
tool-install: Finished with code 0.
tool-install: STDOUT:
You can invoke the tool from this directory using the following commands: 'dotnet tool run dotnet-interactive' or 'dotnet dotnet-interactive'.
Tool 'microsoft.dotnet-interactive' (version '1.0.446104') was successfully installed. Entry is added to the manifest file c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.dotnet-interactive-vscode\.config\dotnet-tools.json.
Started process 11740: dotnet tool run dotnet-interactive -- notebook-parser
process 11740 stderr: You must install or update .NET to run this application.
App: C:\Users\Administrator\.nuget\packages\microsoft.dotnet-interactive\1.0.446104\tools\net7.0\any\Microsoft.DotNet.Interactive.App.dll
Architecture: x64
process 11740 stderr: Framework: 'Microsoft.NETCore.App', version '7.0.0' (x64)
.NET location: C:\Users\Administrator\scoop\apps\dotnet-sdk\current\
The following frameworks were found:
8.0.5 at [C:\Users\Administrator\scoop\apps\dotnet-sdk\current\shared\Microsoft.NETCore.App]
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=7.0.0&arch=x64&rid=win-x64&os=win10
Process 'dotnet' with PID 11740 exited with code 2147516566 and signal null
Started process 7604: dotnet tool run dotnet-interactive -- notebook-parser
process 7604 stderr: You must install or update .NET to run this application.
App: C:\Users\Administrator\.nuget\packages\microsoft.dotnet-interactive\1.0.446104\tools\net7.0\any\Microsoft.DotNet.Interactive.App.dll
Architecture: x64
process 7604 stderr: Framework: 'Microsoft.NETCore.App', version '7.0.0' (x64)
.NET location: C:\Users\Administrator\scoop\apps\dotnet-sdk\current\
The following frameworks were found:
8.0.5 at [C:\Users\Administrator\scoop\apps\dotnet-sdk\current\shared\Microsoft.NETCore.App]
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=7.0.0&arch=x64&rid=win-x64&os=win10
Process 'dotnet' with PID 7604 exited with code 2147516566 and signal null
Started process 6288: dotnet tool run dotnet-interactive -- notebook-parser
process 6288 stderr: You must install or update .NET to run this application.
Apparently, dotnet-interactive tool cannot be started successfully and VS Code tries starting it repeatedly. I tried starting dotnet-interactive tool from powershell, and got the same error
PS C:\temp> cd "C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.dotnet-interactive-vscode\.config"
PS C:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.dotnet-interactive-vscode\.config> dotnet tool run dotnet-interactive
You must install or update .NET to run this application.
App: C:\Users\Administrator\.nuget\packages\microsoft.dotnet-interactive\1.0.446104\tools\net7.0\any\Microsoft.DotNet.Interactive.App.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '7.0.0' (x64)
.NET location: C:\Users\Administrator\scoop\apps\dotnet-sdk\current\
The following frameworks were found:
8.0.5 at [C:\Users\Administrator\scoop\apps\dotnet-sdk\current\shared\Microsoft.NETCore.App]
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=7.0.0&arch=x64&rid=win-x64&os=win10
To me it seems the dotnet-interactive tool installed by VS Code cannot work with my .NET SDK. The funny thing is VS Code even navigated me to the latest .NET SDK and in my case, version 8
I tried install dotnet-interactive directly with my .NET SDK
PS C:\Users\Administrator> dotnet tool install --global Microsoft.dotnet-interactive
PS C:\Users\Administrator\.dotnet\tools> .\dotnet-interactive.exe --version
1.0.522904+cdfa48b2ea1a27dfe0f545c42a34fd3ec7119074
The version is 1.0.522904. So I guess to use .NET SDK 8, I need to specify the version of dotnet-interactive tool in VS Code accordingly.
I finally resolved the cell execution not terminating issue by updating VS Code from version 1.81 to 1.89.
and here
any process startup issue would be there. Also if you want to enable more logging open the setting for Polyglot Notebooks
edit settings in json