HallerPatrick / py_lsp.nvim

Lsp Plugin for working with Python virtual environments
100 stars 12 forks source link

Telescope is a necessary dependency? #22

Closed Turbid closed 1 year ago

Turbid commented 1 year ago

After installing the plugin:

E5113: Error while calling lua chunk: ...m/site/pack/packer/start/py_lsp.nvim/lua/py_lsp/init.lua:1: module 'telescope.pickers' not found:
        no field package.preload['telescope.pickers']
        no file './telescope/pickers.lua'
        no file '/__w/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/telescope/pickers.lua'
        no file '/usr/local/share/lua/5.1/telescope/pickers.lua'
        no file '/usr/local/share/lua/5.1/telescope/pickers/init.lua'
        no file '/__w/neovim/neovim/.deps/usr/share/lua/5.1/telescope/pickers.lua'
        no file '/__w/neovim/neovim/.deps/usr/share/lua/5.1/telescope/pickers/init.lua'
        no file './telescope/pickers.so'
        no file '/usr/local/lib/lua/5.1/telescope/pickers.so'
        no file '/__w/neovim/neovim/.deps/usr/lib/lua/5.1/telescope/pickers.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './telescope.so'
        no file '/usr/local/lib/lua/5.1/telescope.so'
        no file '/__w/neovim/neovim/.deps/usr/lib/lua/5.1/telescope.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        ...m/site/pack/packer/start/py_lsp.nvim/lua/py_lsp/init.lua:1: in main chunk
        [C]: in function 'require'
        ...user/.config/nvim/lua/settings.lua:46: in main chunk
        [C]: in function 'require'
        /home/user/.config/nvim/init.lua:2: in main chunk
HallerPatrick commented 1 year ago

No it shouldn't. I will take a look at it!

HallerPatrick commented 1 year ago

Trying to use a command that requires telescope, when it is not installed will report to the user and not throw an error. Just pull the current state :)

Turbid commented 1 year ago

Yes, now there are no errors - just a warning. Thank you.