-
Notifications
You must be signed in to change notification settings - Fork 52
Interpreter keep switching to global one #20
Comments
VSCode create |
can we use .env file for some basic settings? Creating a .vim folder seems a bit overkill (no plugin is using it) |
I think I'm personally opposed to using .env, only because that's typically used for application configuration by a lot of frameworks (for example, pipenv automatically imports all vars in .env into the shell when activating the virtual environment). I'd personally prefer to keep my editor/IDE config separate from that to avoid any conflicts/complexity it could introduce. |
is there any plan on fixing this - how else can I currently use the python interpreter inside |
Sure, will fix this ASAP. |
1 way to partially fix this is always prefers the current python environment. If vim was started inside a virtualenv then default the interpreter to virtualenv, if it was not then using the default python. Remembering the choice is great but it might require some hard decision |
I am having the same issue as @ntcong when I try to select a different python interpreter with the quickpick menu. The interpreter doesn't seem to change from its initial value no matter what I choose. I am using:
Additionally, here is the output of
I am setting up a virtual environment with @chemzqm thank you for working on this issue. I am glad I found coc-python! |
I agree @ntcong that seems to be the most straightforward. If personal settings need be saved in a |
Still buggy, need some rework, the logic of this part form vscode-python is quite complex. |
Fixed by use a json file ( The limitation is it can't support multiple workspaceFolders. |
I'm using this minimal vimrc
Starting it inside a virtualenv called "buxbot" and
vi -u mini.vim
Running
:CocCommand
->Select Interpreter
After choosing 4 and run CocCommand again,
Also I think it should choose the current python (which is the virtualenv) by default.
I'm using
NVIM v0.3.4
on MacOSThe text was updated successfully, but these errors were encountered: