Skip to content

Passing python virtualenv path in config #143

Closed

Description

@espositofulvio

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).

Activity

  1. gatesn commented on Sep 27, 2017

    @gatesn
    Contributor
  2. espositofulvio commented on Sep 29, 2017

    @espositofulvio
    Author

    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 ;)

  3. tomv564 commented on Oct 2, 2017

    @tomv564
    Contributor

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions