Skip to content

LS fails to start on opensuse: Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. #2967

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

Closed
PowerSnail opened this issue Oct 20, 2018 · 1 comment

Comments

@PowerSnail
Copy link

Environment data

  • VS Code version: 1.28.2
  • Extension version (available under the Extensions sidebar): 2018.9.1
  • OS and version: OpenSUSE Tumbleweed
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): None
  • Relevant/affected Python packages and their versions: NA

Actual behavior

Language server failed to start

Expected behavior

Language server starts.

Steps to reproduce:

  1. install python extension
  2. open a python file
  3. watch the language server fail

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Starting Microsoft Python language server.
FailFast:
Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.

   at System.Environment.FailFast(System.String)
   at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
   at System.Globalization.GlobalizationMode..cctor()
   at System.Globalization.CultureData.CreateCultureWithInvariantData()
   at System.Globalization.CultureData.get_Invariant()
   at System.Globalization.CultureInfo..cctor()
   at System.StringComparer..cctor()
   at System.AppDomain.InitializeCompatibilityFlags()
   at System.AppDomain.Setup(System.Object)
[Error - 10:51:35 PM] Connection to server is erroring. Shutting down server.
[Error - 10:51:35 PM] Connection to server is erroring. Shutting down server.
[Error - 10:51:35 PM] Connection to server is erroring. Shutting down server.
@brettcannon
Copy link
Member

If you're running on Tumbleweed then it's quite possible your copy of ICU is too new for .NET Core to use. You can switch back to Jedi with "python.jediEnabled": true to continue to get IntelliSense.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants