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

Pylance doesn't honor VSCode display language #5880

Open
srittau opened this issue May 15, 2024 · 4 comments
Open

Pylance doesn't honor VSCode display language #5880

srittau opened this issue May 15, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@srittau
Copy link

srittau commented May 15, 2024

See #4579. My LANG is set to de_DE.UTF-8, the display language in VSCode is set to "en":

srittau@blitz:~$ locale
LANG=de_DE.UTF-8
LANGUAGE=de_DE:en
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=

Still, pylance's error messages are in German, meaning that I need to reverse-translate the message to divine their meaning. It's also impossible to copy & paste the error messages when collaborating with non-German speakers. pylance should follow VSCode's language setting, not the system language. Or at least provide some way to override it.

Environment data

  • Language Server version: 2024.5.1 (pyright version 1.1.360, commit 4bc8428d)
  • OS and version: Ubuntu 24.04
  • Python version (& distribution if applicable, e.g. Anaconda): any
@github-actions github-actions bot added the needs repro Issue has not been reproduced yet label May 15, 2024
@StellaHuang95
Copy link
Contributor

Does the workaround mentioned here work for you? #4579 (comment)

@srittau
Copy link
Author

srittau commented May 16, 2024

@StellaHuang95 This seems to work around the problem, indeed.

@StellaHuang95
Copy link
Contributor

Thank you for confirming. It seems that Pylance isn't picking up the language properly here. We'll investigate to see what might be causing the issue.

@StellaHuang95 StellaHuang95 added bug Something isn't working and removed needs repro Issue has not been reproduced yet labels May 16, 2024
@maflAT
Copy link

maflAT commented May 17, 2024

I'm not entirely sure it this is the same issue, but I had a similar problem.
Also working on a German Windows environment and VSCode refused to change language to English.
What fixed it for me is installing the German Language Pack (and then setting the language to English).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants