-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Labels
Description
Describe the bug
If an httpgd device is open, then session watcher cannot attach to the session if r.plot.useHttpgd is enabled.
To Reproduce
Steps to reproduce the behavior:
Ensure httpgd is installed and r.plot.useHttpgd is enabled.
- Open a workspace folder.
- Create R terminal and session watcher attaches to the R session.
- Run
plot(rnorm(100))and close the httpgd plot viewer. - Create another R terminal and session watcher attaches to the new R session.
- Go to the first R terminal and run "Attach active terminal" or click the status bar item.
- The plot created in the first R terminal shows but the session watcher does not attach to it as indicated by the pid shown in the status bar item.
- Use
dev.off()to close the device in the first terminal, and then it could be attached.
It is caused by that attaching the first R terminal makes it write two consecutive requests to ~/.vscode-R/request.log, the request to reveal the plot viewer overwrites the attach request.