pep8 crashes, integrated with emacs when in python-mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PEP 8 |
New
|
Undecided
|
Unassigned | ||
emacs23 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
pep8 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: pep8
pep8 runs every time I update an emacs buffer in python-mode. Crashes nearly every time I type something new. Not really sure what is going on.
ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: pep8 0.5.0-1
ProcVersionSign
Uname: Linux 2.6.38-7-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Wed Mar 23 17:36:41 2011
ExecutablePath: /usr/bin/pep8
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
InterpreterPath: /usr/bin/python2.7
ProcCmdline: /usr/bin/python /usr/bin/pep8 --repeat genetic_flymake.py
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_US.UTF-8
LANGUAGE=en_US:en
PythonArgs: ['/usr/bin/pep8', '--repeat', 'genetic_
SourcePackage: pep8
Title: pep8 crashed with TokenError in generate_tokens(): ('EOF in multi-line statement', (179, 0))
UpgradeStatus: Upgraded to natty on 2011-03-23 (0 days ago)
UserGroups: adm admin cdrom dialout lpadmin nopasswdlogin plugdev sambashare
tags: | removed: need-duplicate-check |
visibility: | private → public |
Changed in emacs23 (Ubuntu): | |
status: | New → Invalid |
tags: | added: upstream |
Thanks for the bug report.
Generating TokenError is not necessarily an error with pep8, it's something that is usually handed by modules which import pep8 and use it in a python way. This issue seems to be raised when pep8 cannot parse the syntax.
Not being that familiar with emacs/python-mode i'm not entirely sure, but the ProcCmdline suggests that pep8 is being invoked directly; meaning the error cannot be handled?
Adding emacs to the bug report, and it could be that which is improperly handling the return. We really need some clarification on /where/ the bug is.
Thanks.