4 ms·
Funny, I have the complete opposite experience with python. Constantly turned off inline errors and warnings because they were almost always wrong - packages I
by barrell 2y ago
Funny, I have the complete opposite experience with python. Constantly turned off inline errors and warnings because they were almost always wrong - packages I installed “could not be found” by the LSP, it constantly worried about type issues that were no longer incorrect, it didn’t pick up function changes across files, etc etc.
Then you think “maybe I just have the wrong lsp” only to realize there are half a dozen that all behave differently and nobody can agree on.
I tried them all, they all turned even my simplest of scripts between 10-50% red. I think half of my ire towards python came from the fact that the LSP situation was so awful, I just had to get used to reading code with a bunch of “errors” in my face, or turn them off completely… I could never decide which was worse
- globular-toast 2y agoHmm... I use python-lsp-server and it just works almost every time. The main thing is your editor being aware of your venv. Which editor do you use? I use direnv and the direnv support in Emacs so each project has its own venv, then install the project plus all dev dependencies (like type stubs) in that venv. The LSP server itself is installed globally, though.