-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Language server doesnt lint errors #9577
Comments
@davfsa Are you using |
@karthiknadig I have pylint installed, but i have it disabled on VSCode. I recently moved from Windows to Ubuntu. In windows, all the linting was being done by the Language Server, which meant that it linted as I typed. After 2 days of using VSCode on ubuntu, python linting stopped working And yea, i found another error in
Althought I dont think it has anything to do with my problem I have tried updating the Language Server, but it still wont work |
Try flake8. pylint is not working with latest version of this extension. |
@sys-temd im not looking to use a linter like pylint or flake8 (since i dont want to save all the time to check the linting). I want the language server to automatically do the linting like it did in Windows |
@davfsa Reverting to 2019.11.50794 works around this. |
@davfsa I also checked whether linting by Python Language Server is working or not. It seems both pylint and linting by language server is not working with latest version. But flake8 is working. |
@ericloewe omg, thank you. I tried rolling back when this happened, but only to the fist 2020. Again, thx a lot @karthiknadig I think @sys-temd 's comment might help you narrow down the bug. Hope you can solve the bug, ik how annoying things like this can get |
Found the bug. Extension is not picking up modified settings from your Workspace GUI settings menu. Unless you explicitly mention:
in your workspace folder .vscode>settings.json, Microsoft Python Language server is not treated as enabled regardless of what your in-Workspace GUI settings say. This bug is also affecting pylint but not flake8 . Unless you mention:
pylint refuses to work. |
Seems only reverting to 2019.11.50794 as @ericloewe sayd fix the problem: language server can lint. |
@sys-temd thanks for providing those details 😊 There's this known bug about pylint not working when the Language Server is on: #7314. About the bug you mentioned when modifying settings, I think this may be the same issue you're having: #7314 (comment) |
This is related as well #9649 |
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): Jedi=false Python Language Server=0.5.10.0Expected behaviour
Error highlighting works
Actual behaviour
Error highlighting works
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
test
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Language Server Output:
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)Noticed this 2 errors:
If any further info is needed, please dont hesitate to ask
The text was updated successfully, but these errors were encountered: