I have set my linter for Python to Pylint, but I still get error messages from Jedi. I even went to settings.json and added the line "python.linting.jediEnabled": false
, but the line, though present, is greyed out. What more can I do?
Go to settings.json
and add the line "python.languageServer": "None"
. Then restart VSCode.
The accepted answer removes all linting and intellisense-like features, rather than removing jedi per-se.
Note that since this pull request Jedi is used as the default fallback if Pylance is not available, so errors from jedi may be arising suddenly because of a problem with Pylance.
For those of us who still want linting and intellisense who were perfectly happy with pylance and pylint, the docs here say to set that as your language server like:
"python.languageServer": "Pylance"
I had this same exact issue, and it was all of a sudden. It was working just fine when I had used it earlier. A couple of hours later when I had opened the same python project files I had used earlier, I got those builtins errors and Jedi syntax errors as I was typing my code (I couldn't even finish typing my code blocks and I'd still have this issue). Plus, I had this yellow lightbulb beside my code which has never been there before. I had even tried uninstalling and reinstalling everything but no luck. Then I finally found Sourya's answer which had helped me. After setting "python.languageServer": "None" , it all works fine.
© 2022 - 2024 — McMap. All rights reserved.
SyntaxError: invalid syntax
, due to aforementioned continuous linting rather than linting on save. It goes away once I finish the line or block of code, but I would prefer never to see it in the first place; I save when I want to test. – Allochthonous