Skip to content

backport console error and data viewer fixes to rel-pacific-dogwood - #18233

Merged
kevinushey merged 4 commits into
rel-pacific-dogwoodfrom
bugfix/pacific-dogwood-backports
Jul 15, 2026
Merged

kevinushey merged 4 commits into
rel-pacific-dogwoodfrom
bugfix/pacific-dogwood-backports

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

Backports the following fixes from main to rel-pacific-dogwood for the next 2026.07.x patch release:

Notes:

kevinushey and others added 4 commits July 14, 2026 18:18
)

Expressions with empty arguments (e.g. 'View(mtcars[1, ])') caused
.rs.exprMutatesPackageLibrary() to error at the console prompt, since
binding the empty symbol to a variable and evaluating it signals a
missing-argument error. Skip such arguments during recursion.
The grid body and pinned pane are virtualized: scrolling replaces the
rendered row window and resizes the top spacer row. With scroll
anchoring enabled, Chromium adjusts scrollTop to compensate for that
content shift, undoing the user's scroll. Most visible on Windows,
where discrete mouse-wheel ticks are driven through Chromium's
smooth-scroll animation, so wheel scrolling over the table body got
stuck. Same fix the summary sidebar received in #17977.

Addresses #18221
While the data viewer tab is hidden its iframe has no layout: the grid
viewport reads clientWidth/clientHeight/scrollTop/scrollLeft as 0. Grid
code running in that state could corrupt live state in ways the next
tab activation never healed:

- computeColumnWindow collapsed the virtualized column window to a
  single edge column (the zero-width fallback), and window.onActivate
  rebuilt rows against the stale window without recomputing it -- the
  same class of gap #18090 closed for onResize.
- onScroll/onScrollEnd/onDeactivate folded the zeroed scroll reads into
  the lastScrollTop/Left mirrors, discarding the saved position.
- window.onActivate itself can run before the tab widget is shown
  (SourceColumn.onActivate activates the target before selecting its
  tab), with the same effects.

Guard all of these against a collapsed viewport: computeColumnWindow
and the scroll mirrors now ignore zero-geometry reads, and onActivate
defers itself to the next animation frame until layout exists, then
re-derives the column window from live geometry before re-rendering.

The new e2e tests fail without these changes: replaying a scroll tail
or an early onActivate into the hidden iframe loses the scroll position
and leaves the grid rendered at the wrong window on return.

Addresses #18215.
@kevinushey kevinushey self-assigned this Jul 15, 2026
@kevinushey kevinushey added this to the 2026.07 (Pacific Dogwood) milestone Jul 15, 2026
@posit-snyk-bot

posit-snyk-bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown

RStudio E2E - all platforms

1 test(s) failed

###################- 99% pass rate

Passed Failed Skipped Flaky
1811 1 54 3
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ desktop-linux 457 0 10 1
✅ desktop-macos 458 0 10 0
✅ desktop-windows 458 0 12 0
❌ server-linux 438 1 22 2
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


All platforms - commit 45f56796152911940343233cf0ef8260417691dd - Run #188

@kevinushey
kevinushey merged commit 5326ebd into rel-pacific-dogwood Jul 15, 2026
23 of 24 checks passed
@kevinushey
kevinushey deleted the bugfix/pacific-dogwood-backports branch July 15, 2026 05:07
gtritchie added a commit that referenced this pull request Jul 29, 2026
* Remove 2026.08 NEWS entries already shipped in 2026.07.1

The Data Viewer fixes for #18215 and #18221 were backported to
rel-pacific-dogwood in #18233 and are published in the 2026.07.1 release
notes, so listing them again under 2026.08 duplicates them across
releases.

* Correct Yellow Yarrow release notes and What's New coverage

Add the Check for Posit Assistant updates command (#18253) to the What's
New page; it was the only user-visible new command this release missing
from that list.

Both the alias (#18158) and .lnk shortcut (#18274) changes also taught
the File and Folder Open dialogs to resolve link targets, and the Files
pane badges Windows shortcuts alongside symlinks and Finder aliases, so
say so in NEWS.md and on the What's New page.
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