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

UnboundLocalError in pylint pluin #41

Closed
spyder-bot opened this issue Feb 16, 2015 · 4 comments
Closed

UnboundLocalError in pylint pluin #41

spyder-bot opened this issue Feb 16, 2015 · 4 comments

Comments

@spyder-bot
Copy link
Collaborator

From a.valent...@gmail.com on 2009-09-13T03:25:49Z

Steps to reproduce the problem

  1. open http://sourceforge.net/apps/trac/gsdview/browser/trunk/gsdview/assistanthelper.py?rev=536 in the spyder editor
  2. click on "Analyze" button in the pylint dock

Output: the following error message printed in the interactive console:

"""
Traceback (most recent call last):
File
"/home/antonio/local/lib/python2.6/site-packages/spyder-1.0.0beta6-py2.6.egg/spyderlib/widgets/pylintgui.py",
line 331, in finished
item = (module, line_nb, message)
UnboundLocalError: local variable 'module' referenced before assignment
"""

Expected output: pylint report printed someware

Software versions:

  • Spyder 1.0.0beta6
  • GNU/Linux x86_64
  • Ubuntu 9.04
  • python 2.6.2
  • PyQt4 v.4.4.4
  • Qt4 v. 4.5.0

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=41

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2009-09-16T03:07:38Z

Please try to add the following line before the "for" loop, line 309 in
spyderlib/widgets/pylintgui.py:

module = ""

I suspect that this error is hiding the real issue here.
So once it's done, you should have an error or an explicit log file (accessible via
the log button on the right).

Status: Accepted

@spyder-bot
Copy link
Collaborator Author

From a.valent...@gmail.com on 2009-09-16T10:03:36Z

Yes confirmed: explicit log file accessible via the log button on the right is showed.

Thanks

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2009-09-16T13:30:26Z

Status: Started

@spyder-bot
Copy link
Collaborator Author

From pierre.raybaut on 2009-09-19T01:41:32Z

fixed in v1.0.0beta9

Status: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant