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
RStudio Edition : Desktop [Open Source]
RStudio Version : 2023.3.0.14
OS Version : OS X 12.5.1
R Version : R version 3.6.3 (2020-02-29)
Steps to reproduce the problem
I think this is a regression; it was, at some point, possible to color and format source marker messages, but it no longer seems to be working as expected.
Run this script to create a test script. It will open another R script.
tmpfile<- tempfile(fileext=".R")
writeLines(con=tmpfile,
'foo <- cli::bg_br_white(cli::col_red("I am red!"))bar <- cli::bg_br_yellow(cli::col_cyan("I am cyan!"))markers <- list( list( type = "error", file = tmpfile, line = 6, column = 1, message = foo), list( type = "info", file = tmpfile, line = 12, column = 1, message = bar))rstudioapi::sourceMarkers("Test Name", markers)'
)
file.edit(tmpfile)
Run the opened R script to create the custom source markers.
Problem: Observe that the markers do not appear in the current source file.
Click on a marker in the Markers pane. The file will open and the cursor will be on the line with the marker. Hover over the marker image.
Problem: The ANSI SGR colors of the marker text are escaped and appear in the message, rather than being applied to the message colors.
Describe the problem in detail
See above
Describe the behavior you expected
I was expecting messages to be colored as described in #10062.
The text was updated successfully, but these errors were encountered:
System details
Steps to reproduce the problem
I think this is a regression; it was, at some point, possible to color and format source marker messages, but it no longer seems to be working as expected.
Run this script to create a test script. It will open another R script.
Run the opened R script to create the custom source markers.
Problem: Observe that the markers do not appear in the current source file.
Click on a marker in the Markers pane. The file will open and the cursor will be on the line with the marker. Hover over the marker image.
Problem: The ANSI SGR colors of the marker text are escaped and appear in the message, rather than being applied to the message colors.
Describe the problem in detail
See above
Describe the behavior you expected
I was expecting messages to be colored as described in #10062.
The text was updated successfully, but these errors were encountered: