pythonic-emacs / anaconda-mode

Code navigation, documentation lookup and completion for Python.
GNU General Public License v3.0
706 stars 87 forks source link

Fix: completion freezes on user quit signal #414

Closed rails-to-cosmos closed 3 years ago

rails-to-cosmos commented 3 years ago

When debug-on-error is disabled, anaconda completion process freezes on C-g. This fix avoids it and improves user experience.

dakra commented 3 years ago

Thanks.

Can you describe quick how I can reproduce the current problem? Pressing C-g when exactly?

rails-to-cosmos commented 3 years ago

Sure, when you call anaconda-mode-complete after python statement, for example import _. Then press C-g and original code will raise error in process filter: Quit and freeze for a couple of seconds.

dakra commented 3 years ago

Ok, thanks. I'm using company that's why I never had that problem.

Your commit is already on master but you didn't create a feature-branch for this PR and I didn't check when I pushed the changes to your branch that it actually arrives, so now GitHub thinks this PR is not merged even though it is (as you can see in the master branch). Sorry for that and thanks for the patch :)