castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
424 stars 25 forks source link

Wrong module with google-api-client #121

Open NELBNL opened 5 years ago

NELBNL commented 5 years ago

Solargraph resolves googleauth instead of google-api-client

#Gemfile
...
gem "google-api-client"
#test.rb
require 'google/apis/drive_v3'
Drive = Google::Apis::DriveV3::DriveService.new

Bundle install, yard doc, Rebuild all gem documentation and desperate attempts with .solargraph.yml are all resulting in the same issue

castwide commented 5 years ago

This is due to a size limit for imported yardocs. Coincidentally, google-api-client is the original reason that the limit exists.

The google-api-client yardoc is 150 MB. For comparison, the Ruby core and stdlib combined are 15 MB. Solargraph avoids loading any yardoc bigger than 20 MB because it kills performance.

I hope to find a better solution, but I don't have an ETA yet.

NELBNL commented 5 years ago

Thank you, that makes sense. Is there a way to partially load the yardoc for google-api-client, e.g. the Youtube_v3 portion only? Do you have any tips/suggestions on how to move forward?

castwide commented 5 years ago

Sorry, not yet. I've been exploring options, but don't have a solid answer.

ZHHSegall commented 1 year ago

I've also run into this issue