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

Show a more helpful error message if missing locales #818

Open
tony opened this issue Sep 15, 2022 · 0 comments
Open

Show a more helpful error message if missing locales #818

tony opened this issue Sep 15, 2022 · 0 comments

Comments

@tony
Copy link
Member

tony commented Sep 15, 2022

ValueError: Session requires a session_id

When encountering #757 and os.getenv doesn't show LANG, LANGUAGE and LC_ALL set, e.g. mismatching or missing attributes:

LANG=en_IN
LANGUAGE=
LC_CTYPE="en_IN"
LC_NUMERIC=en_IN.UTF-8
LC_TIME=en_IN.UTF-8
LC_COLLATE="en_IN"
LC_MONETARY=en_IN.UTF-8
LC_MESSAGES="en_IN"
LC_PAPER=en_IN.UTF-8
LC_NAME="en_IN"
LC_ADDRESS="en_IN"
LC_TELEPHONE="en_IN"
LC_MEASUREMENT=en_IN.UTF-8
LC_IDENTIFICATION="en_IN"
LC_ALL=
  1. Find out what combination of these causes the issue
  2. When to raise a warning
  3. When an error is encountered, when to upcast the error to something more helpful to the user
  4. See if this is really something that should be done on the libtmux side
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

1 participant