-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
spawn comes with a broken locale and $LANG #142857
Comments
This could be the root cause of dotnet/vscode-dotnet-runtime#397 as well; the dotnet-runtime extension is failing because tar errors out with "Failed to set default locale". It seems recent Code Insiders builds for MacOS may have picked up a change in the Electron spawn code which corrupts the $LANG variable. |
Note: This is a severe regression for all extensions that depend on the https://github.com/dotnet/vscode-dotnet-runtime. From the investigation there (thanks @sihde!):
|
Version: 1.65.0-insider (Universal) I am one of the maintainers of LaTeX Workshop. I have confirmed that when starting VS Code Insiders from Dock, the environment variable When starting VS Code Insiders from Terminal.app, it is set as The root cause is that
|
Thanks @tamuratak . This allows me to reproduce the .NET installation error message in dotnet/vscode-dotnet-runtime#397:
Same for LANG=en, etc. This is the same error that I also confirmed that when starting VS Code Insiders from the command line (where, in my case, So, it seems this is breaking multiple extensions. |
\closedWith e8cfc68 |
/verified |
This is most probably a bug in:
as it cannot be reproduced on
1.64
.My system locale is:
I observed the problem in James-Yu/LaTeX-Workshop#3081 -- it uses a package called 'cross-spawn' (which boils down to an Electron spawn) to spawn a subprocess. Now, if that certain subprocess checks for a valid locale, then the task fails. This is because spawn seems to use
LANG=fr
, which is an invalid version ofLANG=fr_FR.UTF-8
. I found this out by stepping through the code. I can confirm that the problem is not in thecross-spawn
package itself, as the same versions ofJames-Yu/LaTeX-Workshop
were operating on both versions of vscode.I'm a little tired, and don't have the motivation to cook up a reduced case at the moment, but please feel free to ask for more information.
The text was updated successfully, but these errors were encountered: