-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Linuxbrew error parsing formula.jws.json
started this morning: Error: "\xE2" on US-ASCII
#19867
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
Comments
It'll be interesting to know why this code: Lines 435 to 446 in bbac5be
doesn't work for you. Although I've fixed the bug in a different way (and yes we should probably tag 4.5.1 with that fix), it'll be good to know why our LC_ALL setting didn't work here. |
@Bo98 I wonder if it's because this was on Linux? My macOS homebrew installation didn't break in this way, and the block you shared is guarded with a test of |
The upper part is, yes. Though this part is in Something I also missed is this:
Something to try is |
🤦 should probably be wearing my glasses. Doubly interesting is that not only are I'll try out |
I just ran into the same issue running rm -rf "$(brew --cache)". Ran that and went to update && upgrade and hit the exact same error. Thank You! |
4.5.1 has a mitigation for this so this should work better now. |
Uh oh!
There was an error while loading. Please reload this page.
Update
I can see that this is actually fixed on the
master
branch. I guess the bug can close when it's released tostable
?brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
Just doing a normal
brew update
this morning. Almost allbrew
operations that require parsing the JSON are failing.Here's some additional information and checks I performed before opening the issue:
rm -rf ~/.caches/Homebrew/api
and havebrew
re-download the JSONHOMEBREW_NO_INSTALL_FROM_API
, as would be expectedLANG
andLC_ALL
are set toen_US.UTF-8
, and they are exported:I'm not sure if this is a regression in the JSON file, in Linuxbrew, or a weird regression on my Linux system itself.
The crash goes away if I apply the attached patch:
homebrew.patch
What happened (include all command output)?
Everything is bailing at that JSON parsing operation.
What did you expect to happen?
It shouldn't bail? lol.
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: