hrsh7th / nvim-cmp

A completion plugin for neovim coded in Lua.
MIT License
7.45k stars 370 forks source link

Old pylsp is not compatible with the current nvim-comp #1853

Open Dreamingnoisy opened 3 months ago

Dreamingnoisy commented 3 months ago

It is accidently found that the current version of pylsp in Debian stable, which is v1.7.1-1, is not compatible with the lastest nvim-cmp extention with no response and no error message.

The full story is shown below.

I recently installed a Debian stable OS on my working desktop for a long-term use and just copied all the nvim settings from my old laptop which has pylsp v1.9.0 installed. But the autocompletion powered by the nvim-comp didn't function as expected. No response and no errors after pressing Tab. After some tries and switching the active LSP in 'nvim-comp' setup from 'pylsp' to 'pyright' with hover pop out, it was clear that the configuration in neovim was correct.

With these being known, I installed a newer version of pylsp via pip instead of the apt package manager and everything was fine.

To be honest, I'm not sure if this could be called a bug but at least my experience might help other users so I put it here. It would be great if the developers could have a version or compability check.