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

.NET Acquisition Failed: Installation failed: tar: Failed to set default locale #397

Closed
StephenWeatherford opened this issue Feb 9, 2022 · 8 comments

Comments

@StephenWeatherford
Copy link
Contributor

StephenWeatherford commented Feb 9, 2022

Repro steps:

Extension Version: 1.0.0
Error Message: .NET Acquisition Failed: Installation failed: tar: Failed to set default locale

Error Stack: Error: .NET Acquisition Failed: Installation failed: tar: Failed to set default locale

at /Users/anonymous/.vscode-insiders/extensions/ms-dotnettools.vscode-dotnet-runtime-1.5.0/dist/extension.js:2:13750

Please attach the log file located at /Users/stephenweatherford/Library/Application Support/Code - Insiders/logs/20220209T125230/exthost5/ms-dotnettools.vscode-dotnet-runtime/DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1644440441936.txt. Note that this file may contain personal data.

This file is empty on my desk

@StephenWeatherford
Copy link
Contributor Author

.NET Output window:

Downloading the .NET Runtime.
Downloading .NET version(s) 6.0.2 ......... Error!
Failed to download .NET 6.0.2:
tar: Failed to set default locale


 Error!
.NET Acquisition Failed: Installation failed: tar: Failed to set default locale

image

@StephenWeatherford
Copy link
Contributor Author

Also happens with other .NET versions. E.g. from ARM Tools extension:

Downloading the .NET Runtime.
Downloading .NET version(s) 3.1.22 ......... Error!
Failed to download .NET 3.1.22:
tar: Failed to set default locale


 Error!
.NET Acquisition Failed: Installation failed: tar: Failed to set default locale

@sihde
Copy link

sihde commented Feb 10, 2022

I'm seeing the exact same thing. In my case the Bicep extension has triggered the attempted .NET install.

The log file mentioned is zero bytes for me as well (/Users/sihde/Library/Application Support/Code - Insiders/logs/20220209T161737/exthost1/ms-dotnettools.vscode-dotnet-runtime/DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1644452259957.txt).

Same error in the output window:

Downloading the .NET Runtime.
Downloading .NET version(s) 6.0.2 ....... Error!
Failed to download .NET 6.0.2:
tar: Failed to set default locale


 Error!
.NET Acquisition Failed: Installation failed: tar: Failed to set default locale

@StephenWeatherford
Copy link
Contributor Author

@sihde I see this in Code Insiders (and only recently) but not in the released vscode. Makes me wonder if somehow vscode-insiders somehow broke it. Also, if I run the install scripts manually they work fine.

What versions of vscode are you using and does it repro on insiders and stable vscode? Thx.

@StephenWeatherford
Copy link
Contributor Author

Also, what language are you using for Mac and vscode? (I'm using German for MacOS but I've tried English and German for vscode.)

@sihde
Copy link

sihde commented Feb 10, 2022

@StephenWeatherford , agreed it repros on Insiders but not the released version. I tested Insiders 1.65.0 from today's build and several earlier builds; they all failed. Released version 1.64.2 works OK. I'm on MacOS 12.2, US English.

Probably Code Insiders changed something about the execution environment such that tar is missing LANG or some LC_* variables or something like that, though I am not able to nail down what exactly causes tar to emit that error.

@sihde
Copy link

sihde commented Feb 16, 2022

This is fixed as of the most recent Insiders build

Version: 1.65.0-insider (Universal)
Commit: 52e65499654de7525e30df3a8228b69320796bf5
Date: 2022-02-16T05:16:06.667Z
Electron: 16.0.9
Chromium: 96.0.4664.174
Node.js: 16.9.1
V8: 9.6.180.23-electron.0
OS: Darwin x64 21.3.0

@StephenWeatherford
Copy link
Contributor Author

Yay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants