vscode-solargraph icon indicating copy to clipboard operation
vscode-solargraph copied to clipboard

Wrong module with google-api-client

Open NELBNL opened this issue 6 years ago • 4 comments

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

NELBNL avatar May 31 '19 02:05 NELBNL

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.

castwide avatar May 31 '19 02:05 castwide

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?

NELBNL avatar May 31 '19 06:05 NELBNL

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

castwide avatar May 31 '19 19:05 castwide

I've also run into this issue

ZHHSegall avatar Dec 26 '22 03:12 ZHHSegall