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

Reproducible (minimal ?) need for two compileAttributes() runs #934

Closed
eddelbuettel opened this issue Jan 31, 2019 · 5 comments
Closed

Reproducible (minimal ?) need for two compileAttributes() runs #934

eddelbuettel opened this issue Jan 31, 2019 · 5 comments

Comments

@eddelbuettel
Copy link
Member

This comes courtesy of a colleague. If one does

  1. Create 'New package with Rcpp' followed by Build->Install+Restart -- OK
  2. Add new C++ file using the examples, saved in src/ as .e.g. `src/doubleMe.src, Install+Restart -- OK
  3. Now delete the initial src/rcpp_hello_world.cpp, Install+Restart --> Link error

Two runs of compileAttributes() fix it, but the IDE does not suggest it. Can we think of a heuristic to figure out when to run it twice?

@coatless
Copy link
Contributor

@kevinushey already produced a reprex c.f. #733 (comment)

@eddelbuettel
Copy link
Member Author

Thanks for that -- I once knew that too.

@coatless
Copy link
Contributor

tl;dr of the story: the bug effects ~1% < of the developer base and is quickly solved by re-running hence there never was a push to fix it.

@eddelbuettel
Copy link
Member Author

eddelbuettel commented Jan 31, 2019

It does frustrate users.

So I am wondering if we should just run the (still very fast) compileAttributes() twice.

@eddelbuettel
Copy link
Member Author

Closed via #939

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

No branches or pull requests

2 participants