ruby-api-stubs icon indicating copy to clipboard operation
ruby-api-stubs copied to clipboard

Look into why stubs are not always available to Solargraph

Open thomthom opened this issue 5 years ago • 3 comments

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.

thomthom avatar Jun 11 '20 12:06 thomthom

Workaround is currently to run yard gems sketchup-api-stubs.

With this workaround, I get insight for SketchUp API. Thanks a lot!

SamuelTallet avatar May 21 '21 09:05 SamuelTallet

@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.

thomthom avatar May 21 '21 11:05 thomthom

Did you also use Bundle to consume the stub?

Yes, I ran bundle install.

SamuelTallet avatar May 21 '21 12:05 SamuelTallet