linux-cultist / venv-selector.nvim

Allows selection of python virtual environment from within neovim
MIT License
388 stars 41 forks source link

fix cache paths for macOS #16

Closed avivelmakias1 closed 1 year ago

avivelmakias1 commented 1 year ago

since this last update with the caching i can't start venvs because i get this error: image

the path for mac should be /Users/<username>/ instead of /home/<username>/. i tried to do it with ~/.cache which will look nicer and work for both mac and linux, but i got errors from,writefile function. so i just put the full path for mac.

maybe adding an option to not cache at all is a great option if paths are not standard and i just dont want to get these errors? even if not loading from cache, it still tries to write the cache which can cause bugs.

linux-cultist commented 1 year ago

Thank you very much! Let's merge this one right away. This happens only with the VenvSelectCached function right?

avivelmakias1 commented 1 year ago

This is also fixing the error thrown when trying to select a venv :)

linux-cultist commented 1 year ago

Ok :) I guess we could have tested the new VenvSelectCached functionality a bit more before merging this weekend... thanks for reporting and even fixing this!