Skip to content
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

[syntax-error] Detail the reason why pylint can't analyse the file after a syntax error #9589

Merged
merged 3 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/data/messages/s/syntax-error/details.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The python's ast builtin module cannot parse your code if there's a syntax error, so
if there's a syntax error other messages won't be available at all.
1 change: 1 addition & 0 deletions doc/data/messages/s/syntax-error/related.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- `Why can't pylint recover from a syntax error ? <https://stackoverflow.com/a/78419051/2519059>`_