linux-cultist / venv-selector.nvim

Allows selection of python virtual environment from within neovim
MIT License
378 stars 40 forks source link

Looking for help with troubleshooting: "Using :VenvSelect does nothing" #125

Closed wikbon closed 1 month ago

wikbon commented 1 month ago

Good time of the day to you! I've found venv-selector, and looking at the features and the files - truly a job well done. The problem i've encountered is that after installation i'm unable to use it in any way(and i assume i've installed it as it gives me commands like :VenvSelect and :VenvSelectLog). When I run :VenvSelect - nothing happens, the focus and cursor is just returned to the buffer. I've enabled debug = true, and now :VenvSelectLog just opens into an empty buffer, even after trying to run :VenvSelec first.

I'm truly new to the whole vim/neovim thing, but with the help of the videos and googling i've been able to setup lsps, debugging, snippets and all of the fun stuff, so I think the hope is not lost with me:D I would truly appreciate any help with troubleshooting this. I'll be happy to provide any additional information(be that gifs of the screen, or github link to the whole .config/nvim folder i've got going).

2024-05-21 15-37-12

when ran from a python project folder the same nothingness happens as on the gif. telescope and dap both work fine as they were previously installed. i've tired removing all of the .lua files from plugins and restarting only venv-setter.lua alone, but it was the same

linux-cultist commented 1 month ago

Thats quite strange. And nothing if you type :messages in neovim either?

linux-cultist commented 1 month ago

Ok i found why its not printing error messages, it was a typo on my part in the code. Update the plugin and run it, and you should get some message what is wrong, I hope :)

My bet is that its going to say that fd is not installed but we will see.

wikbon commented 1 month ago

Wow, thank you for such a fast response! I've tried running the Update from :Lazy, plenty of packages were updated, venv-selector was not. I also do not see any files that were now updated in the repo. I think i'm missing something here:)

wikbon commented 1 month ago

Your guess about fd was correct, after installing it Telescope menu pops up! I assumed that fd was installed by default in current distro, will pay attention in the future. Thank you very much! though i'm now really curious about thy typo and update:D

linux-cultist commented 1 month ago

Actually i even forgot to push the fix but I did that right now so you should see the update if you do it. :)

My mistake:

image

And because of this silly mistake, no error message was shown or logged. :)

The plugin actually has nice error messages and helpful hints otherwise but nobody saw it for the last few days because of this mistake. I refactored things a lot this weekend and added the VenvSelectLog so its all quite new. But the log is really good for understanding what the plugin is doing, if you are curious. :)

linux-cultist commented 1 month ago

Closing the issue but you can still comment if you have questions or comments. :)

wikbon commented 1 month ago

Great! I'll definitely be making a good use of the SelectLog. Typos like that are sneaky, yeah. Once again, appreciate the explanation and the help! Great package!