Skip to content

PR: Don't call os.kill on Windows if running inside Spyder #99

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

Merged
merged 2 commits into from
Jun 13, 2020

Conversation

dalthviz
Copy link
Contributor

@dalthviz dalthviz commented Jun 2, 2020

Hi, the change basically prevents calling os.kill on Windows while running inside Spyder and instead just raise a KeyboardInterrupt

Fixes spyder-ide/spyder#12300

The missing thing here is add a way to prevent showing the traceback generated by raising the exception inside Spyder.

Pinging @ccordoba12 just in case

@ccordoba12
Copy link

ccordoba12 commented Jun 2, 2020

Thanks @dalthviz for finding the cause for this!

@BruceSherwood, @mwcraig, before this Spyder crashed with a segfault on Windows after closing the browser tab where VPython is displayed.

@dalthviz dalthviz changed the title [WIP] PR: Don't call os.kill on Windows if running inside Spyder PR: Don't call os.kill on Windows if running inside Spyder Jun 2, 2020
@dalthviz dalthviz changed the title PR: Don't call os.kill on Windows if running inside Spyder [WIP] PR: Don't call os.kill on Windows if running inside Spyder Jun 2, 2020
@dalthviz dalthviz changed the title [WIP] PR: Don't call os.kill on Windows if running inside Spyder PR: Don't call os.kill on Windows if running inside Spyder Jun 2, 2020
@BruceSherwood BruceSherwood merged commit 72ce40d into vpython:master Jun 13, 2020
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.

Spyder 4.1 quits when closing browser tab from vpython
3 participants