bsnux / linter-python-pep8

Atom package for linting Python files on the fly using pep8 command
MIT License
8 stars 6 forks source link

Linter crash with badly formatted line #1

Closed jeffcasavant closed 10 years ago

jeffcasavant commented 10 years ago

I am impressed with how well your realtime linting package works for me; I'm writing much better standardized code thanks to its ability to let me know when I've fixed what's wrong.

Unfortunately it crashes when I have a badly formatted line. I'm editing a Python 2.7 file; my pep8 points to the Python 2.7 version. The line in question looks like this right now:

monitor

The linter crashes with the following errors whenever I stop typing for more than a second.

Uncaught TypeError: Cannot read property 'displayBuffer' of undefined linter.coffee:163
Uncaught TypeError: Cannot read property 'displayBuffer' of undefined /opt/atom/resources/atom/renderer/api/lib/ipc.js:36
Ipc.sendSync /opt/atom/resources/atom/renderer/api/lib/ipc.js:36
Ipc.sendChannelSync /opt/atom/resources/atom/renderer/api/lib/ipc.js:44
RemoteMemberFunction /opt/atom/resources/atom/renderer/api/lib/remote.js:108
module.exports.Atom.getWindowDimensions /opt/atom/resources/app/src/atom.js:231
module.exports.Atom.storeDefaultWindowDimensions /opt/atom/resources/app/src/atom.js:256
(anonymous function) /opt/atom/resources/app/src/window-event-handler.js:67
jQuery.event.dispatch /opt/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4676
elemData.handle /opt/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4360
Uncaught TypeError: Cannot read property 'displayBuffer' of undefined linter.coffee:163
Uncaught TypeError: Cannot read property 'displayBuffer' of undefined 
jeffcasavant commented 10 years ago

This is an issue with the Linter main plugin.