-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conversation
spyder/app/mainwindow.py
Outdated
@@ -288,6 +288,7 @@ def signal_handler(signum, frame=None): | |||
pass | |||
else: | |||
signal.signal(signal.SIGTERM, signal_handler) | |||
signal.signal(signal.SIGINT, signal_handler) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
c50e013
to
77115ea
Compare
@ccordoba12 I moved that changes to a new PR #5159 and let only waiting spinner changes in this PR |
Great! Thanks @rlaverde! |
…raceback when spyder freezes, see: spyder-ide#5129).
…raceback when spyder freezes, see: spyder-ide#5129).
Fixes: #5114