I have the following traceback: Traceback (most recent call last): File "/usr/bin/pylint", line 4, in <module> lint.Run(sys.argv[1:]) File "/usr/lib/pymodules/python2.5/pylint/lint.py", line 884, in __init__ linter.check(args) File "/usr/lib/pymodules/python2.5/pylint/lint.py", line 501, in check self.check_astng_module(astng, checkers) File "/usr/lib/pymodules/python2.5/pylint/lint.py", line 578, in check_astng_module if implements(checker, IASTNGChecker)]) File "/usr/lib/pymodules/python2.5/pylint/lint.py", line 595, in astng_events self.astng_events(child, checkers, _reversed_checkers) File "/usr/lib/pymodules/python2.5/pylint/lint.py", line 595, in astng_events self.astng_events(child, checkers, _reversed_checkers) File "/usr/lib/pymodules/python2.5/pylint/lint.py", line 592, in astng_events checker.visit(astng) File "/usr/lib/pymodules/python2.5/logilab/astng/utils.py", line 320, in visit method(node) File "/usr/lib/pymodules/python2.5/pylint/checkers/variables.py", line 327, in visit_name assert stmt.fromlineno, (stmt, node, node.fromlineno) AssertionError: (<_ast.ClassDef object at 0x8e84310>, <_ast.Name object at 0x8adef90>, None) with this configuration: pylint 0.18.1, astng 0.19.1, common 0.45.0 Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32) Maybe it is linked to the fact that pylint parse several times the same submodule of the package | |
| priority | normal |
|---|---|
| type | bug |
| appeared in | <not specified> |
| done in | 0.20.0 |
| load | 1.000 |
| load left | 0.000 |
| closed by | <not specified> |


#18005 Detect dead code
Comments
-
2009/11/24 11:47, written by sthenault
| reply to this comment
-
2009/12/14 13:07, written by nchauvat
| reply to this comment
(add comment)can't fix without information about how to reproduce this pb.
steph says "try pylint cassis".