paetzke / py-autopep8.el

py-autopep8.el integrates autopep8 into Emacs.
GNU General Public License v3.0
79 stars 21 forks source link

hanging autopep8.py hangs emacs #10

Closed starenka closed 9 years ago

starenka commented 9 years ago

I know this is not py-autopep8 issue, but it is really annoying. Imagine you have a file (f.e one w/ huge dict definition) which effectively kills autopep8 (or make it really busy for couple minutes). While this is happening, the whole is editor is frozen and can't be worked with. Could this issue be solved async processing?

It's super annoying especially when you have autopep8 on save hook on.

paetzke commented 9 years ago

I know what you mean. Right now, I don't know how to fix this. I have to do some research on this topic.

myint commented 9 years ago

Have you tried limiting the maximum number of passes (--pep8-passes)?

starenka commented 9 years ago

@myint kudos!

paetzke commented 9 years ago

I will add this to a FAQ. Thanks!