-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Warn user about problematic locale settings #10996
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
Conversation
@@ -22,6 +22,15 @@ def take_off | |||
print_bundle_exec_warning(is_slow: (Time.now - before_import_time > 3)) | |||
end | |||
|
|||
unless ENV['LANG'].end_with?("UTF-8") || ENV['LC_ALL'].end_with?("UTF-8") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this compare need to be case insensitive? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure but I think it is better to err on the side of caution here: theoretically your locale setting has to match one of the outputs of locale -a
, which uses the uppercased UTF-8
spelling
Just noticed: The
(and all through the test) Intentional? |
Seems like we need to reconfigure circle? 😅 |
Hey @milch 👋 Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉 Please let us know if this change requires an immediate release by adding a comment here 👍 |
Congratulations! 🎉 This was released as part of fastlane 2.67.0 🚀 |
After updating from Fastlane 2.64.1 to 2.68.0 I get several WARNINGs Before After At the last it hang and I have to press CTRL-C to abort. |
@funnel20 Have you tried going to the link in the warning (https://docs.fastlane.tools/getting-started/ios/setup/#set-up-environment-variables) and setting the correct variables? Does it still show this error? |
@milch I'm sorry, I didn't. I did now, but I have no clue how to get these 2 EXPORT line in what. I'm on a MacBook Pro with macOS 10.13.1, so if you can guide me (or extend the referred documentation) that would be much appreciated. |
Open your terminal, and run the following code (copy exactly as shown here): echo -e "export LC_ALL=en_US.UTF-8\nexport LANG=en_US.UTF-8" >> ~/.bashrc This will make sure all the necessary variables are set. Afterwards restart your terminal, and the warnings should not be shown anymore |
@milch Thanks a lot, you're the man! I think it can help other users to add this to the docu. Or I might be the dumbest... |
@milch Hmm, unfortunately the warning came back after several runs of frameit. |
@funnel20 Do you still have this problem? Can you run I would add the script I posted to the docs, but it does not work generally for all setups. I made some guesses as to what your setup might be and it seems to have worked, at least at first. |
@milch Thanks for getting back to me. It's still there.
|
That is weird, can you also run |
Here you go:
|
Hmm, that's interesting... Can you try running the following two scripts and then restarting your Terminal, to see if that fixes the locale settings for you?
|
After restarting Terminal:
And no more errors when running Frameit:
👍 |
I hope this will now last longer then several days ago. |
Perfect! I don't know why, but it seems like your configuration file switched from |
The only change that I can think of is the High Sierra root bug that auto-installed on last Friday: Oh, and Bundler via Both can be between my 2 posts that is was OK and NOK anymore. But due to how Github represents the post's elapsed time (3 days ago) instead of a real time stamp I can't determine if for sure. |
Some tools might silently fail or hang otherwise. See #10988