bootsnap: iseq.rb:13 `to_binary`: wrong argument type false (expected Symbol)

Having issues with bootsnap on a rails new --main application using ruby-dev 3.1.0:

ruby -v
ruby 3.1.0dev (2021-11-01T08:48:03Z master b474049c78) [x86_64-darwin20]

./bootsnap-e1882c5993c3/lib/bootsnap/compile_cache/iseq.rb:13:in `to_binary': wrong argument type false (expected Symbol) (TypeError)
  from ./bootsnap-e1882c5993c3/lib/bootsnap/compile_cache/iseq.rb:13:in `input_to_storage'
  from ./bootsnap-e1882c5993c3/lib/bootsnap/compile_cache/iseq.rb:30:in `fetch'
  from ./bootsnap-e1882c5993c3/lib/bootsnap/compile_cache/iseq.rb:30:in `fetch'
  from ./bootsnap-e1882c5993c3/lib/bootsnap/compile_cache/iseq.rb:55:in `load_iseq'
  from ./bootsnap-e1882c5993c3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
  from ./bootsnap-e1882c5993c3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
  from ./bootsnap-e1882c5993c3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
  from ./bootsnap-e1882c5993c3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
  from ./bootsnap-e1882c5993c3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
  from ./bootsnap-e1882c5993c3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `require_relative'

# gemfile.rb
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby "3.1.0"

# Use main development branch of Rails
gem "rails", github: "rails/rails", branch: "main"

# The traditional bundling and transpiling asset pipeline for Rails.
gem "sprockets-rails", ">= 2.0.0"

# Use postgresql as the database for Active Record
gem "pg", "~> 1.1"

# Use the Puma web server [https://github.com/puma/puma]
gem "puma", "~> 5.0"

# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
gem "importmap-rails", ">= 0.3.4"

# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
gem "turbo-rails", ">= 0.7.11"

# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
gem "stimulus-rails", ">= 0.4.0"

# Build JSON APIs with ease [https://github.com/rails/jbuilder]
gem "jbuilder", "~> 2.7"

# Use Redis adapter to run Action Cable in production
# gem "redis", "~> 4.0"

# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
# gem "kredis"

# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
# gem "bcrypt", "~> 3.1.7"

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]

# Reduces boot times through caching; required in config/boot.rb
gem "bootsnap", ">= 1.4.4", require: false, github: "Shopify/bootsnap"

# Use Sass to process CSS
# gem "sassc-rails", "~> 2.1"

# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
# gem "image_processing", "~> 1.2"

group :development, :test do
  # Start debugger with binding.b [https://github.com/ruby/debug]
  gem "debug", ">= 1.0.0", platforms: %i[ mri mingw x64_mingw ]
end

group :development do
  # Use console on exceptions pages [https://github.com/rails/web-console]
  gem "web-console", ">= 4.1.0"

  # Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
  # gem "rack-mini-profiler", ">= 2.3.3"

  # Speed up commands on slow machines / big apps [https://github.com/rails/spring]
  # gem "spring"
end

group :test do
  # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
  gem "capybara", ">= 3.26"
  gem "selenium-webdriver", ">= 4.0.0"
  gem "webdrivers"
end

The same thing happened before trying the github: "Shopify/bootsnap", just wondering if this is a known issue or I’m missing something 🤔

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 16

Commits related to this issue

Most upvoted comments