Look into why stubs are not always available to Solargraph
Related: https://github.com/lsegal/yard/issues/1187#issuecomment-641471693
It appear that with VSCode and Solargraph the stubs are not always available. It appear that YRI doesn't always trigger upon installing the gem.
Is this related to Bundler? Does it skip documentation generation?
Workaround is currently to run yard gems sketchup-api-stubs.
Maybe the gem should have a hook to automatically run YRI regardless of --documentation flag.
Workaround is currently to run
yard gems sketchup-api-stubs.
With this workaround, I get insight for SketchUp API. Thanks a lot!
@SamuelTS - did you also use Bundle to consume the stub?
I'm just trying to make sure that there aren't a scenario when using gem install that doesn't trigger YARD to build it's database. So far my understanding is that installation via Bundler causes the YARD database build to be skipped.
Did you also use Bundle to consume the stub?
Yes, I ran bundle install.