Repository navigation
Fix "Show Traceback" link not changing to "Hide Traceback" - #19669
Merged
Merged
Conversation
setTracebackVisible() only scanned the error box's direct children, so it never reached the label nested inside the commands panel. Search the subtree for both the label and the stack trace instead. Addresses #19645.
The label started as hard-coded English in the UiBinder template and switched to the translated text on first toggle (e.g. French). Addresses #19645.
The label was hard-coded English in the UiBinder template. It now comes from StudioClientCommonConstants, with a French translation. Addresses #19645.
Member
Author
|
Code review findings not addressed in this PR:
Every roborev review of this branch passed. |
kevinushey
approved these changes
Nov 17, 2026
kevinushey
left a comment
Collaborator
There was a problem hiding this comment.
Agree with both deferrals -- aria-expanded on an href-less <a> would be an ARIA violation on its own, and the shared locators fail loudly under strict mode rather than passing on the wrong box.
Nit: the comment at ConsoleError.java:58-59 about VirtualScroller bindings being lost is stale now that the DOM walk is gone and setTracebackVisible() uses the UiFields -- worth dropping.
The comment described the DOM walk that setTracebackVisible() no longer uses. Note instead why clicks are handled by a listener on the root. Addresses #19645.
RStudio E2E - all platformsAll tests passed!
All platforms - commit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #19645.
ConsoleError.setTracebackVisible()only looked at the error box's direct children. That reached the traceback but not the label, which sits inside the commands panel. The traceback showed and hid, but the link always said "Show Traceback", including whenauto_expand_error_tracebacksopened the traceback up front.setTracebackVisible()now updates theshowTracebackTextandframePanelUiBinder fields directly. The DOM walk had been added for the virtual scroller, which #16105 removed.Also in this PR:
StudioClientCommonConstantsinstead of English hard-coded inConsoleError.ui.xml. Without this, the French UI would show "Show Traceback" until the first click and then switch to French.rerunWithDebugText, with French "Ré-exécuter en mode débogage".Tests:
console_pane.test.tsnow checks that the label toggles in both directions, and adds a case for the auto-expanded traceback. The French labels were checked manually against a desktop dev build.