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
Describe the bug
When open an external browser (in case, Google Chrome), and draw a ggplot2 plot, the plot would not draw or in a wired way that elements are disrupted. Further, the terminal show message like:
Error in UseMethod("depth") :
no applicable method for 'depth' applied to an object of class "NULL"
Error in grid.Call.graphics(C_upviewport, as.integer(n)) :
cannot pop the top-level viewport ('grid' and 'graphics' output mixed?)
However, after closing the browser, everything come back to normal.
Besides, directly using Radian without vscode and httpgd::hgd() function to open an external browser would not response such error.
To Reproduce
here is my test code
data <- data.frame(
x=rnorm(10),
y=rnorm(10)
)
data
p <-
data %>%
ggplot(aes(x=x,y=y))+
geom_point(size=10)
p
Steps to reproduce the behavior:
draw a plot in vscode windows
Click on 'Open in External Browser'
draw another plot
See error
Can you fix this issue by yourself? (We appreciate the help)
Expected behavior
the plot should be draw both in vscode window and browser
Screenshots
If applicable, add screenshots to help explain your problem.
You can show the keyboard contents by pressing F1 and Developer: toggle screencast mode
Environment (please complete the following information):
OS: Windows 11
VSCode Version: 1.85.2
VScode insider:1.89.0 (both stable and insider have this error)
R Version: 4.3.3
vscode-R version: 2.8.2
The text was updated successfully, but these errors were encountered:
I have the same problem. Seems to have started since httpgd was "revived" and the plotting split out into unigd.
Recently I draw the chord picture with the package "circlize" which is not a ggplot-based drawing system. When plotting in both vscode and bowser, it doesnt trigger any problem. However, when I draw other pic with ggplot2 in the same drawing dev, the error happened.
It seems like a quite complex problem, and may relate to many packages, vscode-R and vscode itself.
Describe the bug
When open an external browser (in case, Google Chrome), and draw a ggplot2 plot, the plot would not draw or in a wired way that elements are disrupted. Further, the terminal show message like:
However, after closing the browser, everything come back to normal.
Besides, directly using Radian without vscode and httpgd::hgd() function to open an external browser would not response such error.
To Reproduce
here is my test code
Steps to reproduce the behavior:
Can you fix this issue by yourself? (We appreciate the help)
No
(If applicable) Please attach
setting.json
Expected behavior
the plot should be draw both in vscode window and browser
Screenshots
If applicable, add screenshots to help explain your problem.
You can show the keyboard contents by pressing
F1
andDeveloper: toggle screencast mode
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: