Skip to content
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

M1 Pro Mac .net errors. #330

Closed
sualehasif opened this issue Nov 4, 2021 · 5 comments
Closed

M1 Pro Mac .net errors. #330

sualehasif opened this issue Nov 4, 2021 · 5 comments
Labels
needs more info Further information is requested

Comments

@sualehasif
Copy link

.Net Error on m1-pro machine with the following result

Repro steps:

Extension Version: 1.0.0
Error Message: .NET Acquisition Failed: Installation failed: Error: Command failed: "/Users/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.3.0/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/anonymous/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/3.1.20" -Version 3.1.20 -Runtime dotnet
dotnet_install: Error: Could not find .NET Core Runtime with version = 3.1.20
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support

Error Stack: Error: .NET Acquisition Failed: Installation failed: Error: Command failed: "/Users/anonymous/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-1.3.0/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/anonymous/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/3.1.20" -Version 3.1.20 -Runtime dotnet
dotnet_install: Error: Could not find .NET Core Runtime with version = 3.1.20
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support

at /Users/anonymous/.vscode/extensions/vscode-dotnet-runtime-library/dist/Acquisition/DotnetCoreAcquisitionWorker.js:85:27
@sfoslund
Copy link
Member

sfoslund commented Nov 5, 2021

@sualehasif .NET 3.1 is not supported on arm64 machines. Do you know which extension is requesting the 3.1 runtime? If so, I recommend filing an issue with them asking them to upgrade to .NET 6 once it becomes available.

@ndelangen
Copy link

Unsure if there's any new information in here, maybe it helps:

Downloading the .NET Runtime.
Downloading .NET version(s) 3.1.21 ...... Error!
Failed to download .NET 3.1.21:
Command failed: "/Users/me/.vscode-insiders/extensions/ms-dotnettools.vscode-dotnet-runtime-1.3.0/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/me/Library/Application Support/Code - Insiders/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/3.1.21" -Version 3.1.21 -Runtime dotnet
dotnet_install: Error: Could not find .NET Core Runtime with version = 3.1.21
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support

Error!
.NET Acquisition Failed: Installation failed: Error: Command failed: "/Users/me/.vscode-insiders/extensions/ms-dotnettools.vscode-dotnet-runtime-1.3.0/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/me/Library/Application Support/Code - Insiders/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/3.1.21" -Version 3.1.21 -Runtime dotnet
dotnet_install: Error: Could not find .NET Core Runtime with version = 3.1.21
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support


Repro steps:

Extension Version: 1.0.0
Error Message: .NET Acquisition Failed: Installation failed: Error: Command failed: "/Users/anonymous/.vscode-insiders/extensions/ms-dotnettools.vscode-dotnet-runtianonymous-1.3.0/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/anonymous/Library/Application Support/Code - Insiders/User/globalStorage/ms-dotnettools.vscode-dotnet-runtianonymous/.dotnet/3.1.21" -Version 3.1.21 -Runtianonymous dotnet
dotnet_install: Error: Could not find .NET Core Runtianonymous with version = 3.1.21
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support

Error Stack: Error: .NET Acquisition Failed: Installation failed: Error: Command failed: "/Users/anonymous/.vscode-insiders/extensions/ms-dotnettools.vscode-dotnet-runtianonymous-1.3.0/dist/install scripts/dotnet-install.sh" -InstallDir "/Users/anonymous/Library/Application Support/Code - Insiders/User/globalStorage/ms-dotnettools.vscode-dotnet-runtianonymous/.dotnet/3.1.21" -Version 3.1.21 -Runtianonymous dotnet
dotnet_install: Error: Could not find .NET Core Runtianonymous with version = 3.1.21
dotnet_install: Error: Refer to: https://aka.ms/dotnet-os-lifecycle for information on .NET Core support

at /Users/anonymous/.vscode-insiders/extensions/ms-dotnettools.vscode-dotnet-runtianonymous-1.3.0/dist/extension.js:2:13778

@sfoslund
Copy link
Member

sfoslund commented Nov 9, 2021

@ndelangen do you know what extension is calling into this extension to install .NET? This extension just installs any version of .NET that is requested, and this issue here is that the requesting extension is asking for a version of .NET that isn't supported on M1's. If you know what extension is requesting the version, I recommend filing an issue with them.

@sfoslund
Copy link
Member

sfoslund commented Nov 9, 2021

It looks like msazurermtools.azurerm-vscode-tools is the most common culprit of this error. @StephenWeatherford do you have any plans to update this extension to use .NET 6, so that it will support M1 devices?

@StephenWeatherford
Copy link
Contributor

Yes, will be doing it soon, probably next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants