Skip to content

wxGUI: Fix tracebacks split into many lines in console - #8005

Merged
petrasovaa merged 2 commits into
OSGeo:mainfrom
saket0187:wxgui-console-traceback-lines
Oct 9, 2026
Merged

petrasovaa merged 2 commits into
OSGeo:mainfrom
saket0187:wxgui-console-traceback-lines

Conversation

@saket0187

Copy link
Copy Markdown
Contributor

This PR Fixes #4826

The Console shows each piece of text written to stderr as a separate line.
Python 3.11 and 3.12 print a traceback in many small pieces (the indentation,
each caret, the exception name, : , and the message separately), so the
Console showed blank lines, one caret per line, and the error message split
over three lines. Since Python 3.13, tracebacks are printed in whole lines.
GStderr now keeps an incomplete line until the rest of it is written.

@github-actions github-actions Bot added GUI wxGUI related Python Related code is in Python labels Oct 3, 2026
Comment thread gui/wxpython/core/gconsole.py Outdated
@saket0187
saket0187 requested a review from petrasovaa October 8, 2026 16:51

@petrasovaa petrasovaa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! There is probably more to fix here, e.g. there is GStdout as well.

@petrasovaa
petrasovaa merged commit 1a88e4e into OSGeo:main Oct 9, 2026
26 checks passed
@github-actions github-actions Bot added this to the 8.6.0 milestone Oct 9, 2026
@saket0187
saket0187 deleted the wxgui-console-traceback-lines branch October 9, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GUI wxGUI related Python Related code is in Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Extraneous lines in traceback log in Python Panel

2 participants