7

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?

7
  • Just wondering: Why are the Jedi error messages annoying? They should pretty much only be syntax errors, right? Commented Apr 4, 2021 at 15:52
  • @themadpsychologist -What is the specific information from Jedi you want to close? In my test, Jedi did not show code problems by default in VS Code.
    – Jill Cheng
    Commented Apr 5, 2021 at 3:03
  • 1
    @DaveHalter First, they keep bugging me about a file in builtins that I didn't write. Second, they persistently warn me while I'm in the middle of typing a line that my code is incomplete because I'm still writing it. It wouldn't be so bad if it would warn me only on save. With Pylint, though, it seems redundant anyway. Commented Apr 5, 2021 at 16:13
  • @JillCheng If that were the case for me, it would solve my problem entirely. What changes to the default settings might have caused persistent Jedi linting that I can't disable? Commented Apr 5, 2021 at 16:17
  • @themadpsychologist -Is there any information displayed in the "PROBLEMS" of the VS Code? we need to judge its source based on specific information to close it, therefore, please provide us with relevant content or screenshots.
    – Jill Cheng
    Commented Apr 6, 2021 at 2:44

3 Answers 3

8

Go to settings.json and add the line "python.languageServer": "None". Then restart VSCode.

0
3

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"
1

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.

2
  • Yeah, it worked for me as well. I'm curious as to why it works. Commented Apr 22, 2021 at 14:58
  • 1
    Given there is this post here, I am more curious on why jedi even started in the first place (happened to me as well). I've never touched anything about jedi on vscode, it never started at all before, and suddenly it starts out of nowhere.
    – Nuclear241
    Commented Apr 29, 2021 at 15:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.