0

I've installed neovim with some lsp-servers and setup them. But when I try to get in-module objects, completion suggest almost nothing (module has a lot of functions, but completion doesn't show it).

I have tried a lot of LSP servers (pylance, pyright, jedi, etc) and completion plugins(coq.nvim, nvim-cmp, coc.nvim) with the same result. Now I've installed coc and coc-pyright, it shows this error:"xxx" is not a known member of module. It is false-error because python run this program correctly.

screenshots:opencv false-error, but lsp see opencv module, another false-error

Already, I have no idea what I can do to fix it.

Upd: I think type stubs might be the cause of the error. I don't really understand what is it, but I've found some common similar error with OpenCV lib here. In my case, completion does not work correctly with either opencv nor mediapipe. I've tried to generate the type stubs with pyright and stubgen, but it didn't help.

0 Answers0