You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Filelinks in error tracebacks no longer work #16045
RStudio Edition : Desktop
RStudio Version :
OS Version : mac
R Version : 4.5
RStudio 2025.08.0-daily+123 "Cucumberleaf Sunflower" Daily (e7cfc88, 2025-05-20) for macOS
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2025.08.0-daily+123 Chrome/136.0.7103.93 Electron/36.2.1 Safari/537.36, Quarto 1.7.31 (/Applications/quarto/bin/quarto)
Steps to reproduce the problem
Raise an error from any function that includes a srcref. Attempt to click the source link.
For example, clicking source links like read-markdown.R#413 in the screenshot produces no action. This appears to be a recent regression.
Describe the behavior you expected
Clicking the link should open the relevant source reference and focus on the corresponding text.
Chatted with @t-kalinowski and I think we've concluded this issue only occurs if the "Limit visible console output" preference is checked. Given this fact (and the fact that this preference is not enabled by default) I think we can punt this. (We plan to remove the virtualized console implementation in a future release, as it's no longer maintained.)
Sounds good. And confirmed--this explains why I saw the discrepancies above: I had also tried @astayleraz's reprex in #15877 to see what happens, and it starts off by setting the flag, so I unwittingly triggered the behavior. I see this happening earlier, in RStudio Desktop version 2024.09.0+375 on Windows 11, so agreed, not fixing for this patch.
I'm going to move it back to triage so that we can decide whether to address this.
Activity
kevinushey commentedon May 21, 2025
I'm still not able to reproduce (using RStudio 2025.08.0 Build 128).
kevinushey commentedon May 21, 2025
Some bread crumbing:
The handler for the click events on these source links lives here.
rstudio/src/gwt/src/org/rstudio/studio/client/common/debugging/ui/ConsoleErrorFrame.java
Line 72 in 0d579aa
That eventually fires an event on our global event bus to open that source file.
rstudio/src/gwt/src/org/rstudio/studio/client/common/debugging/ui/ConsoleErrorFrame.java
Lines 84 to 90 in 0d579aa
The registered handler for that should eventually get called here.
rstudio/src/gwt/src/org/rstudio/studio/client/workbench/views/source/Source.java
Lines 1928 to 1938 in 0d579aa
To confirm, objects of that class are registered as handlers in the constructor here.
rstudio/src/gwt/src/org/rstudio/studio/client/workbench/views/source/Source.java
Line 338 in 0d579aa
It seems like something is getting lost somewhere in this chain.
ronblum commentedon May 27, 2025
This is currently only working in RStudio Server.
Works
Doesn't work
kevinushey commentedon May 28, 2025
I'm going to prepare a debug build of RStudio to send over to @t-kalinowski to see if I can learn more about why it's failing for him.
kevinushey commentedon May 30, 2025
Chatted with @t-kalinowski and I think we've concluded this issue only occurs if the "Limit visible console output" preference is checked. Given this fact (and the fact that this preference is not enabled by default) I think we can punt this. (We plan to remove the virtualized console implementation in a future release, as it's no longer maintained.)
ronblum commentedon May 30, 2025
Sounds good. And confirmed--this explains why I saw the discrepancies above: I had also tried @astayleraz's reprex in #15877 to see what happens, and it starts off by setting the flag, so I unwittingly triggered the behavior. I see this happening earlier, in RStudio Desktop version 2024.09.0+375 on Windows 11, so agreed, not fixing for this patch.
I'm going to move it back to triage so that we can decide whether to address this.
ronblum commentedon Jun 9, 2025
This will be taken care of by #16104, slated for Cucumberleaf Sunflower.