-
Notifications
You must be signed in to change notification settings - Fork 133
Add support for LS inside of Docker containers #170
Comments
Probably b/c of non-interactive environment. I guess we could set the flag by default and set it back if client passes down actual locale. |
We should probably set mode to non-interactive as default, implement #98 and if server passes locale then flip to interactive. |
Is there |
Microsoft.Python.LanguageServer.dll in simple container on top of the 2.1-runtime has no errors with |
|
There is not much for the LS to do here. .NET Core has dependencies on certain platforms that are not installed automatically unless user installs .NET Runtime. The example above is about missing libicu and although it could be worked around with the config file (with loss of localization) there is no guarantee that this is the only dependency LS needs. I.e. it is not a bug, it is a dependency required by .NET Core. In fact, it is .NET Core that is attempting to load libicu, LS code has not been even loaded yet. It is generally up to the client to ensure appropriate runtime environment. LS is technically packaged as runtime-independent, but as .NET Core goes, not all dependencies are actually packaged and some have to be installed manually by the user. |
Let's not let the perfect be the enemy of the good here. While it may not be ideal, we want these remote scenarios to work for our customers. If we can solve this particular problem with a workaround and unblock people we should do so. If we later find other missing dependencies we can revisit this approach but for now this is the one we know of and it is a low cost workaround. Moving this back to the backlog. |
microsoft/vscode-python#5247 resolves in VS Code. Otherwise it is up to the installer to lay down appropriate configuration file or choose container with either dependencies or .NET Core runtime. |
Trying to start the language server in a docker container that is using a docker images based on
python:2.7-slim
fails with the following exception:When following the hint given in the error message and adding the following to
Microsoft.Python.LanguageServer.runtimeconfig.json
the server starts up:The text was updated successfully, but these errors were encountered: