Skip to content

Friendly error message when trying to launch addin picker and vsc.rstudioapi = FALSE#441

Merged
renkun-ken merged 3 commits intoREditorSupport:masterfrom
MilesMcBain:master
Nov 8, 2020
Merged

Friendly error message when trying to launch addin picker and vsc.rstudioapi = FALSE#441
renkun-ken merged 3 commits intoREditorSupport:masterfrom
MilesMcBain:master

Conversation

@MilesMcBain
Copy link
Copy Markdown
Collaborator

What problem did you solve?

In the case that the user has not set the option vsc.rstudioapi = TRUE the addin picker gives an unhelpful error message. This PR adds an error message that directs the user to set the option to TRUE.

A root cause of #439 was the confusing error.

(If you do not have screenshot) How can I check this pull request?

In your .Rprofile set vsc.rstudioapi = FALSE. Start a new R terminal in VSCode and run the R: Launch RStudio Addin command.

An error should appear:

Command 'R: Launch RStudio Addin' resulted in an error (Could not find list of installed addins. options(vsc.rstudioapi = TRUE) must be set in your .Rprofile to use RStudio Addins)

Copy link
Copy Markdown
Member

@renkun-ken renkun-ken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@renkun-ken renkun-ken merged commit a7af73e into REditorSupport:master Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants