REditorSupport / REditorSupport/vscode-R

When help is triggered, a closed plot window opens in addition to the help window.

Open
#1,575 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
1.2k
Forks
139
Avg merge
2h 46m
Merged PRs (30d)
5

Description

Describe the bug

Sometimes the plot window pops up triggered by some command other than plot such as ? or traceback.

To Reproduce
I haven't figured out the exact repro steps. It seems to happen when a source a script that has both a plot and a warning or error in it. However, it doesn't happen 100% of the time even in this situation.

It's something along the lines of these steps, but again only happens sometimes, and I haven't managed to figure out why:

  • source a script with both a plot and a warning
  • close the plot window
  • run ?mean
    Result: both plot window and help window open.

I'll post an MRE once I'm able to identify the exact trigger. Figured it would be good to open an issue even without one in case others are having the same issue, they can post here.

Can you fix this issue by yourself? (We appreciate the help)

Not sure. If the problem is in R, then probably. If the problem is in typescript, probably not.

Expected behavior

Only help window to open.

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: using "Remotes" extension, local is MacOS, remote is linux
  • VSCode Version: 1.95.1
  • R Version: 4.3.2
  • vscode-R version: 2.8.4

Additional context
Add any other context about the problem here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported sequence in VS Code: source an R script containing a plot and warning, close the plot window, then run ?mean or traceback using the stated environment. The issue is resolved when only the requested help window opens and the closed plot window does not reopen.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, typescript, vscode
Domain
desktop, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.