`make lint` thows exception and dies

Bug #502378 reported by Matt Layman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Entertainer Media Center
Fix Released
Medium
Matt Layman

Bug Description

I tried to run the lint tool to check the condition of the code (which sadly hasn't been run in a long time). It produced the following error. I ran a more specific test and isolated the problem to somewhere in entertainerlib/network.

This needs to be fixed because it's preventing most of the code from being checked.

matt@eden:~/future-repo/pythonize-musiclib$ pylint --rcfile=pylintrc entertainerlib/network/*
************* Module entertainerlib.network.local.client
W0511: 32: TODO: This port number could probably be a config var.
Traceback (most recent call last):
  File "/usr/bin/pylint", line 4, in <module>
    lint.Run(sys.argv[1:])
  File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 881, in __init__
    linter.check(args)
  File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 500, in check
    self.check_astng_module(astng, checkers)
  File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 577, in check_astng_module
    if implements(checker, IASTNGChecker)])
  File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 594, in astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 594, in astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 594, in astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 594, in astng_events
    self.astng_events(child, checkers, _reversed_checkers)
  File "/usr/lib/pymodules/python2.6/pylint/lint.py", line 591, in astng_events
    checker.visit(astng)
  File "/usr/lib/pymodules/python2.6/logilab/astng/utils.py", line 320, in visit
    method(node)
  File "/usr/lib/pymodules/python2.6/pylint/checkers/format.py", line 267, in visit_default
    prev_sibl = node.previous_sibling()
  File "/usr/lib/pymodules/python2.6/logilab/astng/nodes.py", line 251, in previous_sibling
    stmts = self.parent.child_sequence(self)
  File "/usr/lib/pymodules/python2.6/logilab/astng/nodes.py", line 216, in child_sequence
    raise ASTNGError(msg % (repr(child), repr(self)))
logilab.astng._exceptions.ASTNGError: Could not found <_ast.Yield object at 0xaa43a0c> in <_ast.Assign object at 0xaa55e6c>'s children

Related branches

Revision history for this message
Matt Layman (mblayman) wrote :

I narrowed it down further and isolate the problem to:

matt@eden:~/future-repo/pythonize-musiclib$ pylint --rcfile=pylintrc entertainerlib/network/local/client.py

I'm not sure why I didn't just do that in the first place.

Matt Layman (mblayman)
Changed in entertainer:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Matt Layman (laymansterms)
milestone: none → entertainer-0.5
Matt Layman (mblayman)
Changed in entertainer:
status: In Progress → Fix Committed
Matt Layman (mblayman)
Changed in entertainer:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.