Skip to content
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

S4 method parameter auto-completion does not appear to work #7851

Closed
3 of 4 tasks
brodieG opened this issue Sep 22, 2020 · 3 comments
Closed
3 of 4 tasks

S4 method parameter auto-completion does not appear to work #7851

brodieG opened this issue Sep 22, 2020 · 3 comments
Labels
autocompletion Issues relating to autocomplete and autocompletion bug stale Issues which have been closed automatically due to inactivitiy.

Comments

@brodieG
Copy link

brodieG commented Sep 22, 2020

System details

RStudio Edition : Desktop
RStudio Version : 1.3.1093
OS Version      : OS X 10.14.6
R Version       : 4.0.2

Steps to reproduce the problem

install.packages('diffobj')
library(diffobj)
diffPrint('hello', 'world', for<autocomplete>)

Where <autocomplete> means attempting to engage the auto-complete to fill in additional parameters (e.g. in this case going for format).

Describe the problem in detail

Autocomplete for S4 method parameters not in the generic does not appear to work. In this case, these are the docs that show the parameters of the "default" method:

Usage
diffPrint(target, current, ...)

## S4 method for signature 'ANY'
diffPrint(
  target,
  current,
  mode = gdo("mode"),
  context = gdo("context"),
  format = gdo("format"),
... snip ...

Only the parameters in the generic are available for auto-completion.

Describe the behavior you expected

Autocompletion to succeed as suggested in this blog post.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting a RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
@ronblum
Copy link
Contributor

ronblum commented Sep 22, 2020

@brodieG Thank you for raising the issue! We'll review it as we continue to work on RStudio.

@ronblum ronblum added autocompletion Issues relating to autocomplete and autocompletion bug labels Sep 22, 2020
@stale
Copy link

stale bot commented Feb 4, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

@stale stale bot added the stale Issues which have been closed automatically due to inactivitiy. label Feb 4, 2021
@stale
Copy link

stale bot commented Feb 18, 2021

This issue has been automatically closed due to inactivity.

@stale stale bot closed this as completed Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocompletion Issues relating to autocomplete and autocompletion bug stale Issues which have been closed automatically due to inactivitiy.
Projects
None yet
Development

No branches or pull requests

2 participants