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.8k stars 371 forks source link

something is wrong with codespace: process 1918 stderr: Could not execute because the specified command or file was not found. #3552

Closed eosfor closed 1 month ago

eosfor commented 1 month ago
Extension started for VS Code Stable.
create-tool-manifest: Executing [dotnet new tool-manifest] in '/home/vscode/.vscode-remote/data/User/globalStorage/ms-dotnettools.dotnet-interactive-vscode'.
create-tool-manifest: Finished with code 0.
create-tool-manifest: STDOUT:
An issue was encountered verifying workloads. For more information, run "dotnet workload update".
The template "Dotnet local tool manifest file" was created successfully.
tool-uninstall: Executing [dotnet tool uninstall Microsoft.dotnet-interactive] in '/home/vscode/.vscode-remote/data/User/globalStorage/ms-dotnettools.dotnet-interactive-vscode'.
tool-uninstall: Finished with code 1.
tool-uninstall: STDERR:
Cannot find a manifest file that contains package id 'microsoft.dotnet-interactive'.
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.522904] in '/home/vscode/.vscode-remote/data/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.522904') was successfully installed. Entry is added to the manifest file /home/vscode/.vscode-remote/data/User/globalStorage/ms-dotnettools.dotnet-interactive-vscode/.config/dotnet-tools.json.
Started process 1918: dotnet /workspaces/interactive/artifacts/bin/dotnet-interactive/Debug/net8.0/Microsoft.DotNet.Interactive.App.dll notebook-parser
Starting kernel for 'file:///workspaces/scripting-notes/notebooks/en/traffic-through-AzureFW-plotly.ipynb' using: dotnet /workspaces/interactive/artifacts/bin/dotnet-interactive/Debug/net8.0/Microsoft.DotNet.Interactive.App.dll [vscode] stdio --working-dir /workspaces/scripting-notes/notebooks/en
Kernel for 'file:///workspaces/scripting-notes/notebooks/en/traffic-through-AzureFW-plotly.ipynb' started (1920).
process 1918 stderr: Could not execute because the specified command or file was not found.
process 1918 stderr: 

kernel (1920) stderr: Could not execute because the specified command or file was not found.
kernel (1920) stderr: 

Process 'dotnet' with PID 1918 exited with code 1 and signal null
Started process 1956: dotnet /workspaces/interactive/artifacts/bin/dotnet-interactive/Debug/net8.0/Microsoft.DotNet.Interactive.App.dll notebook-parser
Kernel for 'file:///workspaces/scripting-notes/notebooks/en/traffic-through-AzureFW-plotly.ipynb' ended (1920) with code 1.
process 1956 stderr: Could not execute because the specified command or file was not found.
process 1956 stderr: 
@eosfor ➜ /workspaces/scripting-notes (feature/codespaces) $ dotnet --info
.NET SDK:
 Version:           8.0.204
 Commit:            c338c7548c
 Workload version:  8.0.200-manifests.9f663350

Runtime Environment:
 OS Name:     debian
 OS Version:  12
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /usr/share/dotnet/sdk/8.0.204/

.NET workloads installed:
There are no installed workloads to display.

Host:
  Version:      8.0.4
  Architecture: x64
  Commit:       2d7eea2529

.NET SDKs installed:
  8.0.204 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.4 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 8.0.4 [/usr/share/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 comes from the repo here https://github.com/eosfor/scripting-notes/tree/feature/codespaces. Basically I took devcontainer.json and Dockerfile from the main branch of this repo and it, somehow, does not work...

eosfor commented 1 month ago

Fixed it by updating this way