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: Show complete exception (not only the traceback) in error QMessageBox. #4711

Merged
merged 3 commits into from
Jul 8, 2017

Conversation

rlaverde
Copy link
Member

@rlaverde rlaverde commented Jul 6, 2017

Fixes #4698

spectacle m18475

@rlaverde rlaverde added this to the v3.2 milestone Jul 6, 2017
@rlaverde rlaverde self-assigned this Jul 6, 2017
for text in text.splitlines(True):
if text.startswith(' File') \
and not text.startswith(' File "<'):
is_traceback = True
Copy link
Member

Choose a reason for hiding this comment

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

We need to keep this to activate the dialog only when text printed in the internal console is really a traceback. Else the error dialog is shown for things like this

seleccion_001

which is no real error, just a warning printed through stderr :-)

@ccordoba12
Copy link
Member

ccordoba12 commented Jul 7, 2017

Please also make that the dialog always Show details, so that people can decide if they are in front of a real error or not.

Else, we could be flooded by tons of false positives.

@rlaverde rlaverde force-pushed the show-exception-qmessagebox branch from fd51273 to ab20305 Compare July 7, 2017 15:03
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @rlaverde!

@ccordoba12 ccordoba12 merged commit bf64ee5 into spyder-ide:3.x Jul 8, 2017
ccordoba12 added a commit that referenced this pull request Jul 8, 2017
@rlaverde rlaverde deleted the show-exception-qmessagebox branch July 8, 2017 17:06
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.

2 participants