You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pylint crashed with a AstroidError and with the following stacktrace:
Traceback (most recent call last):
File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/lint/pylinter.py", line 727, in _check_file
check_astroid_module(ast_node)
File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/lint/pylinter.py", line 926, in check_astroid_module
retval = self._check_astroid_module(
File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/lint/pylinter.py", line 976, in _check_astroid_module
walker.walk(node)
File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/utils/ast_walker.py", line 93, in walk
self.walk(child)
File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/utils/ast_walker.py", line 93, in walk
self.walk(child)
File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/utils/ast_walker.py", line 93, in walk
self.walk(child)
[Previous line repeated 5 more times]
File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/utils/ast_walker.py", line 90, in walk
callback(astroid)
File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/checkers/variables.py", line 1349, in visit_name
self._undefined_and_used_before_checker(node, stmt)
File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/checkers/variables.py", line 1391, in _undefined_and_used_before_checker
action, nodes_to_consume = self._check_consumer(
File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/checkers/variables.py", line 1496, in _check_consumer
self._loopvar_name(node)
File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/checkers/variables.py", line 2242, in _loopvar_name
and assign.iter.args
AttributeError: 'IfExp' object has no attribute 'args'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/lint/pylinter.py", line 684, in _check_files
self._check_file(get_ast, check_astroid_module, file)
File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/lint/pylinter.py", line 729, in _check_file
raise astroid.AstroidError from e
astroid.exceptions.AstroidError
Configuration
No configuration.
Command used
pylint 9860988.py
Pylint output
************* Module 9860988
9860988.py:7:0: C0305: Trailing newlines (trailing-newlines)
9860988.py:1:0: C0114: Missing module docstring (missing-module-docstring)
9860988.py:1:0: C0103: Module name "9860988" doesn't conform to snake_case naming style (invalid-name)9860988.py:1:41: E0602: Undefined variable 'lijst1' (undefined-variable)9860988.py:1:56: E0602: Undefined variable 'lijstv' (undefined-variable)9860988.py:1:26: E0602: Undefined variable 'lijstv' (undefined-variable)9860988.py:1:79: E0602: Undefined variable 'lijst1' (undefined-variable)9860988.py:2:8: E0602: Undefined variable 'waarde2verschil' (undefined-variable)9860988.py:2:24: E0602: Undefined variable 'lijst1' (undefined-variable)9860988.py:2:40: E0602: Undefined variable 'lijstv' (undefined-variable)9860988.py:4:7: E0602: Undefined variable 'lijst1' (undefined-variable)9860988.py:4:21: E0602: Undefined variable 'lijstv' (undefined-variable)9860988.py:5:24: E0602: Undefined variable 'vers' (undefined-variable)9860988.py:6:12: E0602: Undefined variable 'waarde2verschil' (undefined-variable)9860988.py:6:28: E0602: Undefined variable 'lijstv' (undefined-variable)Exception on node <Name.index l.6 at 0x7fc6a50d2440> in file '/home/charlotte/repos/dodona/themis/9860988.py'Traceback (most recent call last): File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/utils/ast_walker.py", line 90, in walk callback(astroid) File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/checkers/variables.py", line 1349, in visit_name self._undefined_and_used_before_checker(node, stmt) File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/checkers/variables.py", line 1391, in _undefined_and_used_before_checker action, nodes_to_consume = self._check_consumer( File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/checkers/variables.py", line 1496, in _check_consumer self._loopvar_name(node) File "/nix/store/sym07z6bfly57vim5fxmf41xw8knlp25-python3-3.10.5-env/lib/python3.10/site-packages/pylint/checkers/variables.py", line 2242, in _loopvar_name and assign.iter.argsAttributeError: 'IfExp' object has no attribute 'args'9860988.py:1:0: F0002: 9860988.py: Fatal error while checking '9860988.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/charlotte/.cache/pylint/pylint-crash-2022-07-05-15.txt'. (astroid-error)------------------------------------------------------------------Your code has been rated at 0.00/10 (previous run: 0.00/10, +0.00)
Bug description
When parsing the following (excerpt of a) file:
pylint crashed with a
AstroidError
and with the following stacktrace:Configuration
Command used
Pylint output
Expected behavior
It should not crash.
Pylint version
OS / Environment
NixOS unstable.
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: