-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to download .NET runtime 5.0.4 on Apple Silicon #201
Comments
@bturkenburg can you please provide more information on what the error is? It would be helpful if you could provide repro steps and log files. |
When opening a .bicep file it tries to load the bicep extension, this extension has a dependency on dotnet-runtime. The error message is: An error occurred while installing .NET (5.0): .NET Acquisition Failed: Installation failed: Error: Command failed: "/Users/username/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.0.0/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/username/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/5.0.4" -Runtime dotnet -Version 5.0.4 dotnet_install: Error: Could not find Also getting below information in the output window: |
@bozturkMSFT this error looks familiar to me, do you know what the cause is offhand? |
Unfortunately, no. This is an error we show when the generated url returned a 404 status code: It seems likely that the detected architecture is wrong and we are trying to download something that doesn't exist. Is it possible to get more detailed logs? |
@bturkenburg can you provide the runtime extension logs? They're located at |
To solve this problem I'm using now remote dev containers... |
@sfoslund I got a similar error. The followings are the info of my VS Code env. Version: 1.55.1 (Universal) The error occurs when I use Azure Resource Manager Template Tools extension. This extension requires .NET Core for full functionality, but we were unable to download and install a local copy for the extension. If this error persists, please see https://aka.ms/vscode-armtools-dotnet for troubleshooting tips. I pasted the error log of extension on my gist, so could you please check it? Thanks. |
It looks like osx-arm64 is not a valid platform, that runtime doesn't exist. @bozturkMSFT could this be a bug with how the install scripts resolve the platform? |
Below is a case of trying to use the Bicep extension and dotnet 5.0.5. It looks like only .net 6.0 has a runtime supported for macos arm64 at this point:
|
Judging by dotnet/core#4879 (comment) it's not even planned to support arm-based macs on .net 3.1 or 5.0, no wonder the runtime fails to install in such cases. It'd help a lot if vscode-dotnet-runtime will inform the user that they need to use Rosetta 2 emulator to use an extension, which they try to install the runtime for. |
The problem is that this extension is trying to install the osx-arm64 dotnet for target frameworks <= 5.0. There is no such RID. The extension needs to recognize that the running platform is ARM64 but the requested TF is <= 5.0 and, if so, use the x64 arch instead. |
@bekir-ozturk I believe that the logic for determining the RID is in the install scripts to the logic that @agocke outlined should be in there too. Should I transfer this issue to the install scripts repo? |
when installing extension bicep with a dependency on dotnet-runtime... error: failed to download .NET runtime 5.0.4 on Apple Silicon
The text was updated successfully, but these errors were encountered: