You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to specify the virtualenv in the config? I don't know about VSCode but SublimeText doesn't set the VIRTUAL_ENV envvar (even using the VirtualEnv plugin) and thus Jedi can't actually give the right completion suggestions unless the server is installed in the virtualenv and started from there (like I'm doing currently, but I'd like not to install it in each virtualenv for every project I have).
You shouldn’t have to install the server in each virtual env. But I think you would have to launch the editor/IDE from a terminal that had activated the env. Alternatively, the virtual env plugin for the editor should restart language servers “inside” the virtual env.
Those would be the cleanest, however a config option doesn’t sound insane as an override.
________________________________
From: Fulvio Esposito <notifications@github.com>
Sent: Wednesday, September 27, 2017 4:56:32 AM
To: palantir/python-language-server
Cc: Subscribed
Subject: [palantir/python-language-server] Passing python virtualenv path in config (#143)
Is it possible to specify the virtualenv in the config? I don't know about VSCode but SublimeText doesn't set the VIRTUAL_ENV envvar (even using the VirtualEnv plugin) and thus Jedi can't actually give the right completion suggestions unless the server is installed in the virtualenv and started from there (like I'm doing currently, but I'd like not to install it in each virtualenv for every project I have).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#143>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AB1rdBEbyteNjkV3-ADQUnUjOiLnIldGks5smg3AgaJpZM4Plbrm>.
It looks like others have the very same problem: sublimelsp/LSP#128
In Windows is unusual to start a program from a terminal, so I guess having a config option to set the interpreter path would be the best solution, even though I'm doing exactly that at the moment.
Thanks anyway ;)
Activity
gatesn commentedon Sep 27, 2017
espositofulvio commentedon Sep 29, 2017
It looks like others have the very same problem: sublimelsp/LSP#128
In Windows is unusual to start a program from a terminal, so I guess having a config option to set the interpreter path would be the best solution, even though I'm doing exactly that at the moment.
Thanks anyway ;)
tomv564 commentedon Oct 2, 2017
@espositofulvio as per sublimelsp/LSP#133 there is support for setting environment variables for a language server process in
LSP.sublime-settings.You would have to install the package from master or wait for the next release to try it.