dotnet / dotnet/vscode-dotnet-runtime

Fake "Failed to run .NET runtime" error on old API using CMake

Open
#2,358 2 comments 1 reaction 0 assignees View on GitHub
P4
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug.

Image

However, the dotnet executable can run on the host.

### Please attach log file(s) here if you have any.

```log
7/21/2025, 8:36:26 AM 112 DotnetVSCodeExtensionFound
true
Checking extension EditorConfig.EditorConfig for .NET installation requests

7/21/2025, 8:36:26 AM 113 DotnetVSCodeExtensionFound
true
Checking extension fill-labs.dependi for .NET installation requests

7/21/2025, 8:36:26 AM 113 DotnetVSCodeExtensionFound
true
Checking extension foxundermoon.shell-format for .NET installation requests

7/21/2025, 8:36:26 AM 113 DotnetVSCodeExtensionFound
true
Checking extension golang.go for .NET installation requests

7/21/2025, 8:36:26 AM 113 DotnetVSCodeExtensionFound
true
Checking extension iliazeus.vscode-ansi for .NET installation requests

7/21/2025, 8:36:26 AM 113 DotnetVSCodeExtensionFound
true
Checking extension josetr.cmake-language-support-vscode for .NET installation requests

7/21/2025, 8:36:26 AM 113 DotnetVSCodeExtensionFound
true
Checking extension llvm-vs-code-extensions.vscode-clangd for .NET installation requests

7/21/2025, 8:36:26 AM 113 DotnetVSCodeExtensionFound
true
Checking extension mesonbuild.mesonbuild for .NET installation requests

7/21/2025, 8:36:26 AM 113 DotnetVSCodeExtensionFound
true
Checking extension mkhl.direnv for .NET installation requests

7/21/2025, 8:36:26 AM 113 DotnetVSCodeExtensionFound
true
Checking extension ms-dotnettools.vscode-dotnet-runtime for .NET installation requests

7/21/2025, 8:36:26 AM 114 DotnetVSCodeExtensionFound
true
Checking extension ms-vscode.cmake-tools for .NET installation requests

7/21/2025, 8:36:26 AM 114 DotnetVSCodeExtensionFound
true
Checking extension rust-lang.rust-analyzer for .NET installation requests

7/21/2025, 8:36:26 AM 114 DotnetVSCodeExtensionFound
true
Checking extension streetsidesoftware.code-spell-checker for .NET installation requests

7/21/2025, 8:36:26 AM 114 DotnetVSCodeExtensionFound
true
Checking extension sumneko.lua for .NET installation requests

7/21/2025, 8:36:26 AM 114 DotnetVSCodeExtensionFound
true
Checking extension tamasfe.even-better-toml for .NET installation requests

7/21/2025, 8:36:26 AM 114 DotnetVSCodeExtensionFound
true
Checking extension tooltitudeteam.tooltitude for .NET installation requests

7/21/2025, 8:36:26 AM 265 DotnetAcquisitionStatusRequested
6.0
a3bd4673d6d5ef6457fb8e08578accfdb13f047e37fc29a9fad2b00ad8701314

7/21/2025, 8:36:26 AM 275 WebRequestInitiated
Making Web Request For https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json

7/21/2025, 8:36:26 AM 278 ProxyUsed
Utilizing the Proxy : Manual ? , Automatic: http://socks5h:80, Decision : http://socks5h:80

7/21/2025, 8:36:26 AM 280 WebRequestSent
https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json

7/21/2025, 8:36:27 AM 871 WebRequestTime
Timer for request:
1585.48
true
https:..builds.dotnet.microsoft.com.dotnet.release-metadata.releases-index.json
200

7/21/2025, 8:36:27 AM 873 DotnetVersionResolutionCompleted
6.0
6.0.36

7/21/2025, 8:36:27 AM 876 GenericDotnetLockEvent
Action: installedLk-9fdf671c-7e39-4789-bcfc-44ef76357226 Lock acquired: /run/user/1000/vscd-installedLk.sock
2025-07-21T08:36:27.876Z
installedLk
installedLk
true

7/21/2025, 8:36:27 AM 877 FoundTrackingVersions
true
installed :
{"installId":"6.0.36~x64","version":"6.0.36","architecture":"x64","isGlobal":false,"installMode":"runtime"} owned by josetr.cmake-language-support-vscode

7/21/2025, 8:36:27 AM 877 GenericDotnetLockEvent
Action: installedLk-9fdf671c-7e39-4789-bcfc-44ef76357226 Lock freed: /run/user/1000/vscd-installedLk.sock
2025-07-21T08:36:27.877Z
installedLk
installedLk
true

7/21/2025, 8:36:27 AM 879 DotnetInstallationValidated
6.0.36~x64
6.0.36~x64
6.0.36
x64
false
runtime

7/21/2025, 8:36:27 AM 882 CacheGetEvent
Checking the cache at 2025-07-21T08:36:27.882Z
"/home//.vscode-server-insiders/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.36~x64/dotnet" --list-runtimes --arch x64{"cwd":"/home//.vscode-server-insiders/extensions/ms-dotnettools.vscode-dotnet-runtime-2.3.6/dist","encoding":"utf8","env":"SHELL: /bin/bash\nPWD: /home/\nHOME: /home/\nLANG: en_US.UTF-8\nPATH: /home//.vscode-server-insiders/bin/ec0f0be4a71892d46a136811f5a5c160f032f129/bin/remote-cli:/home//.cargo/bin:/home//.local/bin:/home//bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin\nVSCODE_HANDLES_UNCAUGHT_ERRORS: true\nELECTRON_RUN_AS_NODE: 1\nDOTNET_MULTILEVEL_LOOKUP: 0\nDOTNET_CLI_UI_LANGUAGE: en-US\nDOTNET_NOLOGO: true\n","shell":true}
undefined
true

7/21/2025, 8:36:27 AM 882 CommandExecutionEvent
Executing command "/home//.vscode-server-insiders/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.36~x64/dotnet" --list-runtimes --arch x64 with options {"env":"SHELL: /bin/bash\nPWD: /home/\nHOME: /home/\nLANG: en_US.UTF-8\nPATH: /home//.vscode-server-insiders/bin/ec0f0be4a71892d46a136811f5a5c160f032f129/bin/remote-cli:/home//.cargo/bin:/home//.local/bin:/home//bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin\nVSCODE_HANDLES_UNCAUGHT_ERRORS: true\nELECTRON_RUN_AS_NODE: 1\nDOTNET_MULTILEVEL_LOOKUP: 0\nDOTNET_CLI_UI_LANGUAGE: en-US\nDOTNET_NOLOGO: true\n","dotnetInstallToolCacheTtlMs":9000,"cwd":"/home//.vscode-server-insiders/extensions/ms-dotnettools.vscode-dotnet-runtime-2.3.6/dist","shell":true,"encoding":"utf8"}.

7/21/2025, 8:36:27 AM 894 CommandExecutionTimer
The command "/home//.vscode-server-insiders/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.36~x64/dotnet" --list-runtimes --arch x64 took 10.30 ms to run.
10.30
"/home//.vscode-server-insiders/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.36~x64/dotnet" --list-runtimes --arch x64
fc67eb0a908f6591e171109c2b7113cdfbbac2d6967acdec9edc51ce583c83b4

7/21/2025, 8:36:27 AM 896 CommandExecutionStatusEvent
The command "/home//.vscode-server-insiders/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.36~x64/dotnet" --list-runtimes --arch x64 exited:
0.

7/21/2025, 8:36:27 AM 897 CommandExecutionStdOut
The command "/home//.vscode-server-insiders/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.36~x64/dotnet" --list-runtimes --arch x64 encountered stdout:
Microsoft.NETCore.App 6.0.36 [/home//.vscode-server-insiders/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.36~x64/shared/Microsoft.NETCore.App]

7/21/2025, 8:36:27 AM 897 CommandExecutionStdError
The command "/home//.vscode-server-insiders/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.36~x64/dotnet" --list-runtimes --arch x64 encountered stderr:

7/21/2025, 8:36:27 AM 898 CachePutEvent
Adding to the cache at 2025-07-21T08:36:27.898Z
"/home//.vscode-server-insiders/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.36~x64/dotnet" --list-runtimes --arch x64{"cwd":"/home//.vscode-server-insiders/extensions/ms-dotnettools.vscode-dotnet-runtime-2.3.6/dist","encoding":"utf8","env":"SHELL: /bin/bash\nPWD: /home/\nHOME: /home/\nLANG: en_US.UTF-8\nPATH: /home//.vscode-server-insiders/bin/ec0f0be4a71892d46a136811f5a5c160f032f129/bin/remote-cli:/home//.cargo/bin:/home//.local/bin:/home//bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin\nVSCODE_HANDLES_UNCAUGHT_ERRORS: true\nELECTRON_RUN_AS_NODE: 1\nDOTNET_MULTILEVEL_LOOKUP: 0\nDOTNET_CLI_UI_LANGUAGE: en-US\nDOTNET_NOLOGO: true\n","shell":true}
{"stdout":"Microsoft.NETCore.App 6.0.36 [/home//.vscode-server-insiders/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.36~x64/shared/Microsoft.NETCore.App]\n","stderr":"","status":"0"}
9000
true

7/21/2025, 8:36:27 AM 900 DotnetFindPathDidNotMeetCondition
/home//.vscode-server-insiders/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.36~x64/dotnet did NOT satisfy the conditions: hostArch: x64, requiredArch: undefined,
required version: 6.0.36, required mode: undefined

7/21/2025, 8:36:27 AM 900 DotnetAcquisitionStatusUndefined
6.0.36~x64
6.0.36~x64
6.0.36
x64
false
runtime

7/21/2025, 8:36:27 AM 901 DotnetCommandSucceeded
acquireStatus

7/21/2025, 8:36:27 AM 903 DotnetAcquisitionRequested
6.0.36
a3bd4673d6d5ef6457fb8e08578accfdb13f047e37fc29a9fad2b00ad8701314

7/21/2025, 8:36:27 AM 904 DotnetRuntimeAcquisitionRequested
6.0.36
a3bd4673d6d5ef6457fb8e08578accfdb13f047e37fc29a9fad2b00ad8701314
runtime

7/21/2025, 8:36:27 AM 918 WebRequestInitiated
Making Web Request For https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json

7/21/2025, 8:36:27 AM 918 ProxyUsed
Utilizing the Proxy : Manual ? , Automatic: http://socks5h:80, Decision : http://socks5h:80

7/21/2025, 8:36:27 AM 919 WebRequestSent
https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json

7/21/2025, 8:36:27 AM 921 WebRequestCachedTime
Cached Timer for request:
0.32
true
https:..builds.dotnet.microsoft.com.dotnet.release-metadata.releases-index.json
200

7/21/2025, 8:36:27 AM 921 DotnetVersionResolutionCompleted
6.0.36
6.0.36

7/21/2025, 8:36:27 AM 923 DotnetInstallIdCreatedEvent
true
The requested version 6.0.36 is now marked under the install: {"installId":"6.0.36~x64","version":"6.0.36","architecture":"x64","isGlobal":false,"installMode":"runtime"}.

7/21/2025, 8:36:27 AM 923 GenericDotnetLockEvent
Action: 6.0.36~x64-c265ddb8-69e8-4435-888e-ee4e2cb3b58c Lock acquired: /run/user/1000/vscd-6.0.36~x64.sock
2025-07-21T08:36:27.923Z
6.0.36~x64
6.0.36~x64
true

7/21/2025, 8:36:27 AM 924 GenericDotnetLockEvent
Action: installedLk-f2eb3310-1c12-4b20-80b1-87938e68136d Lock acquired: /run/user/1000/vscd-installedLk.sock
2025-07-21T08:36:27.924Z
installedLk
installedLk
true

7/21/2025, 8:36:27 AM 924 FoundTrackingVersions
true
installed :
{"installId":"6.0.36~x64","version":"6.0.36","architecture":"x64","isGlobal":false,"installMode":"runtime"} owned by josetr.cmake-language-support-vscode

7/21/2025, 8:36:27 AM 924 GenericDotnetLockEvent
Action: installedLk-f2eb3310-1c12-4b20-80b1-87938e68136d Lock freed: /run/user/1000/vscd-installedLk.sock
2025-07-21T08:36:27.924Z
installedLk
installedLk
true

7/21/2025, 8:36:27 AM 925 DotnetInstallationValidated
6.0.36~x64
6.0.36~x64
6.0.36
x64
false
runtime

7/21/2025, 8:36:27 AM 926 CacheGetEvent
Checking the cache at 2025-07-21T08:36:27.926Z
"/home//.vscode-server-insiders/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.36~x64/dotnet" --list-runtimes --arch x64{"cwd":"/home//.vscode-server-insiders/extensions/ms-dotnettools.vscode-dotnet-runtime-2.3.6/dist","encoding":"utf8","env":"SHELL: /bin/bash\nPWD: /home/\nHOME: /home/\nLANG: en_US.UTF-8\nPATH: /home//.vscode-server-insiders/bin/ec0f0be4a71892d46a136811f5a5c160f032f129/bin/remote-cli:/home//.cargo/bin:/home//.local/bin:/home//bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin\nVSCODE_HANDLES_UNCAUGHT_ERRORS: true\nELECTRON_RUN_AS_NODE: 1\nDOTNET_MULTILEVEL_LOOKUP: 0\nDOTNET_CLI_UI_LANGUAGE: en-US\nDOTNET_NOLOGO: true\n","shell":true}
{"stdout":"Microsoft.NETCore.App 6.0.36 [/home//.vscode-server-insiders/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.36~x64/shared/Microsoft.NETCore.App]\n","stderr":"","status":"0"}
true

7/21/2025, 8:36:27 AM 927 DotnetConditionsValidated
true
/home//.vscode-server-insiders/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.36~x64/dotnet satisfies the conditions.

7/21/2025, 8:36:27 AM 927 DotnetAcquisitionAlreadyInstalled
6.0.36~x64
6.0.36
x64
false
runtime
a3bd4673d6d5ef6457fb8e08578accfdb13f047e37fc29a9fad2b00ad8701314

7/21/2025, 8:36:27 AM 929 GenericDotnetLockEvent
Action: installedLk-7a44baa3-e5c0-43bc-97ba-23ce54ea47ec Lock acquired: /run/user/1000/vscd-installedLk.sock
2025-07-21T08:36:27.929Z
installedLk
installedLk
true

7/21/2025, 8:36:27 AM 929 AddTrackingVersions
true
Adding {"installId":"6.0.36~x64","version":"6.0.36","architecture":"x64","isGlobal":false,"installMode":"runtime"} with id 6.0.36~x64 from the state.

7/21/2025, 8:36:27 AM 930 DotnetInstallationValidated
6.0.36~x64
6.0.36~x64
6.0.36
x64
false
runtime

7/21/2025, 8:36:27 AM 930 FoundTrackingVersions
true
installed :
{"installId":"6.0.36~x64","version":"6.0.36","architecture":"x64","isGlobal":false,"installMode":"runtime"} owned by josetr.cmake-language-support-vscode

7/21/2025, 8:36:27 AM 930 AddTrackingVersions
true
Updated installed :
{"installId":"6.0.36~x64","version":"6.0.36","architecture":"x64","isGlobal":false,"installMode":"runtime"} owned by josetr.cmake-language-support-vscode

7/21/2025, 8:36:27 AM 936 GenericDotnetLockEvent
Action: installedLk-7a44baa3-e5c0-43bc-97ba-23ce54ea47ec Lock freed: /run/user/1000/vscd-installedLk.sock
2025-07-21T08:36:27.936Z
installedLk
installedLk
true

7/21/2025, 8:36:27 AM 936 GenericDotnetLockEvent
Action: 6.0.36~x64-c265ddb8-69e8-4435-888e-ee4e2cb3b58c Lock freed: /run/user/1000/vscd-6.0.36~x64.sock
2025-07-21T08:36:27.936Z
6.0.36~x64
6.0.36~x64
true

7/21/2025, 8:36:27 AM 937 DotnetCommandSucceeded
acquire

7/21/2025, 8:36:27 AM 937 DotnetAcquisitionTotalSuccessEvent
6.0.36
6.0.36~x64
6.0.36~x64
6.0.36
x64
false
runtime
a3bd4673d6d5ef6457fb8e08578accfdb13f047e37fc29a9fad2b00ad8701314
/home//.vscode-server-insiders/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.36~x64/dotnet

7/21/2025, 8:36:27 AM 938 DotnetRuntimeAcquisitionTotalSuccessEvent
6.0.36~x64
6.0.36
x64
false
runtime
```

### Reproduction Steps

Install VSCode and extension under such environment

Host OS: Windows 11
Remote OS: Fedora 42
VSCode version: Version: 1.103.0-insider (system setup) (Commit: `ec0f0be4a71892d46a136811f5a5c160f032f129`)
Extensions: `josetr.cmake-language-support-vscode` (depends `ms-dotnettools.vscode-dotnet-runtime`)

### Expected Behavior

The dependent extension can work successfully, since the `dotnet` executable can run and all prerequisites for .NET are satisfied.

### Exceptions & Errors (if any)

_No response_

### .NET Install Tool Version

2.3.6

### Your operating system? Please provide more detail, such as the version and or distro above.

Linux

### VS Code Version

Version: 1.103.0-insider (system setup) (Commit: `ec0f0be4a71892d46a136811f5a5c160f032f129`)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.