Originally reported in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689172 , as I havent had a response in that bug and I need to do another contribution, I am posting this here:

========================================================================

I am looking into pylint for the first time, playing around with
pylint-gui. After dealing with
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667065 , I added the
standard '--include-ids' option to a generated rc file (this is the
first thing n00bs are told to do):

=======================================================

pylint --include-ids y --generate-rcfile > ~/.pylintrc

=======================================================

However, when you next call pylint-gui and try to load a script...

=======================================================

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1413, in __call__
    return self.func(*args)
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 498, in callit
    func(*args)
  File "/usr/lib/pymodules/python2.7/pylint/gui.py", line 343, in
periodic_call
    if self.process_incoming():
  File "/usr/lib/pymodules/python2.7/pylint/gui.py", line 331, in
process_incoming
    if (self.msg_type_dict.get(msg[0])()):
TypeError: 'NoneType' object is not callable

=======================================================

Its clear pylint-gui hasn't been tested/used much, as its relying on the bare configuration of the 'message type' being passed as a single
character string ('C', 'W' etc)... including the IDs naturally appends
them to this character, subsequently breaking the GUI when it tries to
load the package/script.

I have forked the Bitbucket pylint repo and committed here: https://bitbucket.org/OmegaPhil/pylint/changeset/87bc90372e57064bb97866b47e34de12747889c1

This is my first proper use of Bitbucket and Mercurial, so is probably wrong. Frankly I'd much appreciate just throwing a patch out there.
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to