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
Been trying to find a solution to this issue but to no avail.
Basically, I'm trying to be able to use Emacs and Jedi for Python completion, but on a project-specific basis.
I've seen some of the scripts out there like kenobi.el and another one which I can't remember the name of, but I also saw a note about just having to make a .dir-locals.el file with the following code in it:
Which works great on OSX/Linux! I get my completions going and everything. However, on Windows, this doesn't seem to work; if I check the value of jedI:server-args, it seems correct (where the --virtual-env does point to my virtual environment on Windows), but I can't get any completions from that virtual environment, and it still seems to be catching packages even from my system Python that are not in the virtual environment.
The only way I have managed to actually get Jedi on Windows to add paths to packages to be used for completion thus far is setting it manually in my emacs init, like so:
But obviously I don't want to have to do this, since this would be global and no longer project-specific.
Is there any hint of why this .dir-locals.el method would not work on Windows or something I can do to fix it? I've tried using forward/back/escaped slashes pointing to the virtualenv to use in question, and on multiple workstations; it just doesn't seem to work on Windows for some reason.
Would really appreciate any assistance!
The text was updated successfully, but these errors were encountered:
sonictk
changed the title
.dir-locals.el works for setting virtualenv on Linux/OSX, but not Windows
.dir-locals.el works for setting virtualenv on Linux/OSX with Jedi, but not Windows
May 24, 2016
Hi:
Been trying to find a solution to this issue but to no avail.
Basically, I'm trying to be able to use Emacs and Jedi for Python completion, but on a project-specific basis.
I've seen some of the scripts out there like kenobi.el and another one which I can't remember the name of, but I also saw a note about just having to make a .dir-locals.el file with the following code in it:
((nil . ((python-shell-virtualenv-path . "/home/yliangsiew/Scripts/venv"))))
Which works great on OSX/Linux! I get my completions going and everything. However, on Windows, this doesn't seem to work; if I check the value of jedI:server-args, it seems correct (where the --virtual-env does point to my virtual environment on Windows), but I can't get any completions from that virtual environment, and it still seems to be catching packages even from my system Python that are not in the virtual environment.
The only way I have managed to actually get Jedi on Windows to add paths to packages to be used for completion thus far is setting it manually in my emacs init, like so:
But obviously I don't want to have to do this, since this would be global and no longer project-specific.
Is there any hint of why this .dir-locals.el method would not work on Windows or something I can do to fix it? I've tried using forward/back/escaped slashes pointing to the virtualenv to use in question, and on multiple workstations; it just doesn't seem to work on Windows for some reason.
Would really appreciate any assistance!
The text was updated successfully, but these errors were encountered: