-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin does not work when a python virtual env is activated #7
Comments
Hey, As far as I see, there is some problems with the Python executable in the virtual environment. I am not completely sure what that means. I also ran a couple of tests, and it seems to work for me in a virtual environment (but I noticed something else strange in my setup, so I will fix that and then try again). Couple of things to try:
Let me know how it goes, I will also try to run a couple of tests. I suspect again that it's not a plugin issue, but rather a setup issue, as the plugin itself has nothing to do with Python whatsoever. |
Hey Alex, I suppose the right command include a SetupJust to recap my setup in case my tests need context :
TestsSo this is the results of my tests (I used the fish command
I don't think it's related to your plugin anyway but rather either my config or the way virtual envs are managed, here by |
Hey, sorry for the delayed response! Did you manage to get it working?
Yes, I think both work the same (more or less). The python version that neovim runs should be the same as the system python, unless you explicitly configured it otherwise. Nonetheless, run both just in case. As for the test itself, the normal Could you try one more thing: have a config file (e.g. init.lua) that just initializes the plugin and nothing else. Then try the same tests with 'pipenv Again, I cannot imagine how such a thing could happen. I wouldn't totally exclude a Neovim bug in itself (with the Lua engine, for example), however that is way out of my area of expertise. Let me know if I could try helping with anything else. |
Hi Alex, I stumbled upon this issue from the plugin you port to neovim. I understood that every python tool that implement a virtual env management feature need to spawn a subshell to make it work. I didn't try to get all the details related to this and I'm sure there is a way to use But there is a quick solution : Thank you for your help Alex and for this excellent plugin. |
Setup
Workflow
I use
pipenv
to create a python virtual environment. All is good from the:checkhealth
point of view. But if I don't source the venv before launchingnvim
the plugin is working nicely. If I source the venv before launchingnvim
the plugin stops working. Still, if I run a plugin command manually it works.:checkhealth
report when venv is sourcedThe text was updated successfully, but these errors were encountered: