linux-cultist / venv-selector.nvim

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

Conflict with Mason nvim #122

Closed anoopd closed 1 month ago

anoopd commented 1 month ago

I tried the plugin but it is conflicting with Mason .

linux-cultist commented 1 month ago

Ok, do you have any details of what is happening or what you are doing? Is it the regexp version or the main version?

anoopd commented 1 month ago

Sorry for missing details ........... i was using the regexp version as i was a new user . The error i was getting was failed to run config for mason.nvim , and on my config file line 12 loop or previous error loading module mason-lspconfig .

12th line is local mason-lspconfig = require('mason-lspconfig')

linux-cultist commented 1 month ago

But there is no mention of this plugin in the error message? It's interesting, since the plugin has no interaction with Mason at all. It doesn't have it as a dependency even.

When do you get the error? When you open Mason?

anoopd commented 1 month ago

Nope .......... when i open nvim after installing this plugin .......... if i remove this then there is no problem . Have you ever tried it with mason installed ?

linux-cultist commented 1 month ago

I will try it on Lazyvim today, see if I get any conflicts. Hope I do so I can understand what's happening.

I'm on nvchad currently and I can run Mason without any conflicts at all.

linux-cultist commented 1 month ago

Are you using your own config or some neovim distribution?

linux-cultist commented 1 month ago

I cant reproduce any issues in Lazyvim either. Here is a pic of mason and the plugin from lazyvim. The plugin is installed just like it says in the readme for the regexp branch (not using my local development version):

image

And here same thing with nvchad:

image

anoopd commented 1 month ago

Thank you .......... I am running my own config and using mason-tool-installer ,maybe that would be causing the error .

linux-cultist commented 1 month ago

It could yeah. I used to have my own config for neovim for years but there was always these cases of something not working properly. So I switched to using a neovim distribution. But I wouldnt trade away the experience I got from having my own config. Learned very much about how things actually work.

But then I close this issue for now and I hope you find the reason. :)

anoopd commented 1 month ago

Hi, Just wanted to let you know that i was able to get it working by avoiding the "dependencies" part completely . :)

linux-cultist commented 1 month ago

Ok :) I hope you like it!