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

autocompletion of Rcpp C++Objects fails #1654

Closed
kevinushey opened this issue Oct 24, 2017 · 2 comments
Closed

autocompletion of Rcpp C++Objects fails #1654

kevinushey opened this issue Oct 24, 2017 · 2 comments
Labels
autocompletion Issues relating to autocomplete and autocompletion bug
Milestone

Comments

@kevinushey
Copy link
Contributor

From https://support.rstudio.com/hc/en-us/community/posts/115009364048-Rstudio-1-1-383-Issue-with-autocomplete-for-object-methods?page=1#community_comment_115005483728:

> library(mxnet)
> data = mx.symbol.Variable("data")
> data$
Error in grep(pattern, complete(x), value = TRUE) : 
  argument "pattern" is missing, with no default

We need to call .DollarNames() with an explicit empty pattern here:

allNames <- dollarNamesMethod(object)

as not all implementing methods provide a default of "" here.

@kevinushey kevinushey added autocompletion Issues relating to autocomplete and autocompletion bug labels Oct 24, 2017
@kevinushey kevinushey added this to the v1.1-patch milestone Oct 24, 2017
@jmcphers
Copy link
Member

Backported to 1.1 here: c25739a

@dfalty
Copy link

dfalty commented Nov 27, 2017

Verified fixed 1.1.392.

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
Projects
None yet
Development

No branches or pull requests

3 participants