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

PR: Avoid KeyboardInterrupt to raise an error in waitingspinner #5129

Merged
merged 1 commit into from
Sep 7, 2017

Conversation

rlaverde
Copy link
Member

@rlaverde rlaverde commented Sep 4, 2017

Fixes: #5114

@rlaverde rlaverde added this to the v3.2.3 milestone Sep 4, 2017
@rlaverde rlaverde self-assigned this Sep 4, 2017
@rlaverde rlaverde changed the title PR: Avoid Keyboard interrupt to raise and error PR: Avoid Keyboard interrupt to raise an error Sep 4, 2017
@@ -288,6 +288,7 @@ def signal_handler(signum, frame=None):
pass
else:
signal.signal(signal.SIGTERM, signal_handler)
signal.signal(signal.SIGINT, signal_handler)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this here?

Copy link
Member Author

@rlaverde rlaverde Sep 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#5114 (comment)

It make possible to kill Spyder using Ctrl+C, without this change It will still raise the report error message box when pressing Ctrl+C (but with a different traceback)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this. We need to discuss it in another PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ccordoba12 why? I think it is important for people to be able to quit spyder on the terminal using Ctrl+C

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When Spyder freezes for whatever reason, it's very useful to press Ctrl+C in the terminal and get the traceback of where it was freezed.

Copy link
Member Author

@rlaverde rlaverde Sep 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the users will continue reporting false positives (now random) of when they tried to close spyder with Ctrl+C

Copy link
Member

@ccordoba12 ccordoba12 Sep 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But that only happens when users press Ctrl+C in a terminal, and I doubt there are many of them.

In any case, I think this needs more discussion and is not related to this PR. So please remove it and open a new PR with this change only.

@ccordoba12 ccordoba12 changed the title PR: Avoid Keyboard interrupt to raise an error PR: Avoid KeyboardInterrupt to raise an error in waitingspinner Sep 5, 2017
@rlaverde rlaverde force-pushed the keyboardinterrupt-spinner branch from c50e013 to 77115ea Compare September 7, 2017 14:34
@rlaverde
Copy link
Member Author

rlaverde commented Sep 7, 2017

@ccordoba12 I moved that changes to a new PR #5159 and let only waiting spinner changes in this PR

@ccordoba12
Copy link
Member

Great! Thanks @rlaverde!

@ccordoba12 ccordoba12 merged commit b8256e9 into spyder-ide:3.x Sep 7, 2017
ccordoba12 added a commit that referenced this pull request Sep 7, 2017
@rlaverde rlaverde deleted the keyboardinterrupt-spinner branch September 7, 2017 15:21
rlaverde added a commit to rlaverde/spyder that referenced this pull request Sep 29, 2017
rlaverde added a commit to rlaverde/spyder that referenced this pull request Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants