-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove R Package Scan action #2404
Conversation
@@ -60,7 +60,6 @@ const pythonPackagesCommands = { | |||
const rPackagesCommands = { | |||
Edit: "posit.publisher.rPackages.edit", | |||
Refresh: "posit.publisher.rPackages.refresh", | |||
Scan: "posit.publisher.rPackages.scan", | |||
} as const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This removes the "eye" icon from the R Packages view expanded toolbar.
"title": "Scan for R Packages", | ||
"icon": "$(eye)", | ||
"category": "Posit Publisher" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This removes the high-level internal command from the extension.
Commands.RPackages.Scan, | ||
this.onScanForRPackageRequirements, | ||
this, | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no longer register a handler for the scan command that we removed.
<vscode-button @click="onScanForPackageRequirements()"> | ||
Scan | ||
</vscode-button> | ||
</template> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was basically the same as above, so it's been consolidated.
uriPath: "https://rstudio.github.io/renv/articles/renv.html", | ||
}, | ||
}); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new code is invoked when the user clicks on the anchor we added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Mismatched package versions in
renv.lock
and library - R Section shows proper warning when missing
renv.lock
- R Section shows proper warning when missing
renv/activate.R
- R Section respects Package file listed and uses the proper filename in new warn text
- renv link works
Intent
Resolves #2403
Type of Change
Approach
Removed ability to scan from HomeView. This eliminates the original error shown, which was exposed from invalid
renv
environment.Consolidated some errors to show consistently, and then replaced scan button with anchor link to
renv
documentation.Updated documentation.
Directions for Reviewers
Verify:
renv.lock
file in place (and activerenv
environment)renv
doc, when package file is not present (missing or empty). Name of package file should match what is in config. Anchor should openrenv
documentation.Checklist