-
Notifications
You must be signed in to change notification settings - Fork 199
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
rbs collection install
fails with parse error
#1815
Comments
Probably right. The beginning of the
This file depends on |
FYI: ruby/psych#607 It caused to mix multiple versions of |
Right, here's more infos:
After doing a somewhat binary search commenting the whole gemfile and re-generating gemfile.lock I think that there's a limit on how many rbs files/libs we can have? I've did some tests commenting and uncommenting the whole gemfile we have and always running
I did this like 3 times in different regions, and always got stuck with I'll check if I can make a reproduction gemfile with enough dependencies to test |
@pocke I guess you can try this one to get the same error: # frozen_string_literal: true
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '~> 3'
gem 'rails', '~> 7.0.8'
gem 'pg', '1.5.6'
gem 'redis', '~> 4.0'
gem 'active_record_extended'
gem 'activerecord-import'
gem 'analytics-ruby', require: 'segment'
gem 'asana'
gem 'aws-sdk-s3'
gem 'aws-sdk-secretsmanager'
gem 'aws-sdk-sns'
gem 'aws-sdk-sqs'
gem 'aws-sdk-kms'
gem 'aws-sdk-textract'
gem 'blazer'
gem 'bootsnap', require: false
gem 'business_time'
gem 'bulma-rails'
gem 'capybara'
gem 'cloudwatchlogger'
gem 'captcha_bypass'
gem 'code_owner'
gem 'console_watcher'
gem 'core-sdk'
gem 'devise'
gem 'engem'
gem 'google-api-client'
gem 'geocoder'
gem 'hashdiff'
gem 'holidays'
gem 'faker'
gem 'factory_bot', require: false
gem 'fast_jsonapi'
gem 'feature_tower'
gem 'foreman', require: false
gem 'koala'
gem 'redis-client'
gem 'request_store-sidekiq'
gem 'retryable'
gem 'rubocop'
gem 'rbs'
gem 'rubyXL'
gem 'store_model'
gem 'sendgrid-ruby'
gem 'stackprof'
gem 'sentry-ruby'
gem 'sentry-rails'
gem 'sentry-sidekiq'
gem 'slack-ruby-client'
gem 'shortener'
gem 'spreadsheet'
gem 'steep'
gem 'savon'
gem 'sidekiq'
gem 'sidekiq-unique-jobs'
gem 'shakapacker'
gem 'twilio-ruby'
gem 'image_processing'
gem 'faraday'
gem 'nokogiri'
gem 'view_component'
gem 'lookbook'
gem 'ox'
gem 'omniauth-okta'
gem 'omniauth-rails_csrf_protection'
gem 'omniauth-saml'
gem 'omniauth'
gem 'tiddle'
gem 'kms_encrypted'
gem 'lockbox'
gem 'pry-stack_explorer' Btw, I was never able to get above 95 rbs gems |
Thanks for providing the |
I could reproduce this problem with the following # frozen_string_literal: true
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '~> 3'
gem 'rails', '~> 7.0.8'
gem 'pg', '1.5.6'
gem 'redis', '~> 4.0'
gem 'active_record_extended'
gem 'activerecord-import'
gem 'analytics-ruby', require: 'segment'
gem 'asana'
gem 'aws-sdk-s3'
gem 'aws-sdk-secretsmanager'
gem 'aws-sdk-sns'
gem 'aws-sdk-sqs'
gem 'aws-sdk-kms'
gem 'aws-sdk-textract'
gem 'blazer'
gem 'bootsnap', require: false
gem 'business_time'
gem 'bulma-rails'
gem 'capybara'
gem 'cloudwatchlogger'
# gem 'captcha_bypass'
# gem 'code_owner'
# gem 'console_watcher'
# gem 'core-sdk'
gem 'devise'
# gem 'engem'
gem 'google-api-client'
gem 'geocoder'
gem 'hashdiff'
gem 'holidays'
gem 'faker'
gem 'factory_bot', require: false
gem 'fast_jsonapi'
# gem 'feature_tower'
gem 'foreman', require: false
gem 'koala'
gem 'redis-client'
gem 'request_store-sidekiq'
gem 'retryable'
gem 'rubocop'
gem 'rbs'
gem 'rubyXL'
gem 'store_model'
gem 'sendgrid-ruby'
gem 'stackprof'
gem 'sentry-ruby'
gem 'sentry-rails'
gem 'sentry-sidekiq'
gem 'slack-ruby-client'
gem 'shortener'
gem 'spreadsheet'
gem 'steep'
gem 'savon'
gem 'sidekiq'
gem 'sidekiq-unique-jobs'
gem 'shakapacker'
gem 'twilio-ruby'
gem 'image_processing'
gem 'faraday'
gem 'nokogiri'
gem 'view_component'
gem 'lookbook'
gem 'ox'
gem 'omniauth-okta'
gem 'omniauth-rails_csrf_protection'
gem 'omniauth-saml'
gem 'omniauth'
gem 'tiddle'
gem 'kms_encrypted'
gem 'lockbox'
gem 'pry-stack_explorer'
gem 'active_model_serializers'
gem 'browser'
gem 'cancancan'
gem 'carrierwave'
gem 'chartkick'
gem 'chronic'
gem 'chunky_png'
gem 'circuitbox'
gem 'delayed_job'
gem 'delayed_job_active_record'
gem 'diff-lcs'
gem 'gimei'
gem 'moji'
gem 'moneta'
gem 'octokit' $ bundle lock
$ rbs collection install
/Users/kuwabara.masataka/.rbenv/versions/3.2.3/lib/ruby/3.2.0/psych/parser.rb:62:in `_native_parse': (<unknown>): did not find expected key while parsing a block mapping at line 1 column 1 (Psych::SyntaxError)
from /Users/kuwabara.masataka/.rbenv/versions/3.2.3/lib/ruby/3.2.0/psych/parser.rb:62:in `parse'
from /Users/kuwabara.masataka/.rbenv/versions/3.2.3/lib/ruby/3.2.0/psych.rb:455:in `parse_stream'
from /Users/kuwabara.masataka/.rbenv/versions/3.2.3/lib/ruby/3.2.0/psych.rb:399:in `parse'
from /Users/kuwabara.masataka/.rbenv/versions/3.2.3/lib/ruby/3.2.0/psych.rb:323:in `safe_load'
from /Users/kuwabara.masataka/.rbenv/versions/3.2.3/lib/ruby/3.2.0/psych.rb:369:in `load'
from /Users/kuwabara.masataka/.rbenv/versions/3.2.3/lib/ruby/gems/3.2.0/gems/rbs-2.8.4/lib/rbs/collection/config.rb:37:in `from_path'
from /Users/kuwabara.masataka/.rbenv/versions/3.2.3/lib/ruby/gems/3.2.0/gems/rbs-2.8.4/lib/rbs/collection/installer.rb:10:in `initialize'
from /Users/kuwabara.masataka/.rbenv/versions/3.2.3/lib/ruby/gems/3.2.0/gems/rbs-2.8.4/lib/rbs/cli.rb:1044:in `new'
from /Users/kuwabara.masataka/.rbenv/versions/3.2.3/lib/ruby/gems/3.2.0/gems/rbs-2.8.4/lib/rbs/cli.rb:1044:in `run_collection'
from /Users/kuwabara.masataka/.rbenv/versions/3.2.3/lib/ruby/gems/3.2.0/gems/rbs-2.8.4/lib/rbs/cli.rb:130:in `run'
from /Users/kuwabara.masataka/.rbenv/versions/3.2.3/lib/ruby/gems/3.2.0/gems/rbs-2.8.4/exe/rbs:7:in `<top (required)>'
from /Users/kuwabara.masataka/.rbenv/versions/3.2.3/bin/rbs:25:in `load'
from /Users/kuwabara.masataka/.rbenv/versions/3.2.3/bin/rbs:25:in `<main>' And I've confirmed that this problem does not occur on the latest RBS (v3.4.4).
So, could you try the latest RBS? BTW, I'm still not sure which commit of RBS solved this problem... |
hey @pocke, thank you! sorry for taking so long to test this Yess, 3.4.4 works for me 🙏, feel free to close this one if you think its done |
Thank you for confirming it 👍 |
I'm just following readme instructions here, init works and install gives me this:
And I guess that the parsing error might be because the lock file is generated wrong?
edit: I would help with reproduction steps, but I have no clue on where to start.. what would be needed? minimal gemfile? paths?
The text was updated successfully, but these errors were encountered: