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
- Update: bootsnapのバージョンを上げた bundle update bootsnap Rubyのバージョンアップにより、bootsnapがエラーする。 そのためRailsの起動ができなくなる。 bootsnap 1.9.3にて修正されている。 そのためbootsnapのバージョンを上げた。 bootsnapのIssue 378を参照 ttps://github.com/Shop... — committed to momocus/sakazuki by yonta 3 years ago
- Update bootsnap to fix CI failures on ruby 3.0.3 (#926) This seems to fix CI failures when ruby 3.0.3 is installed. I noticed the failures in this PR: #915 But I was able to reproduce the failu... — committed to primer/view_components by iancanderson 3 years ago
- Bump bootsnap Ruby 3.0 にアップデートするために bootsnap 1.9.3 にアップデートする ref: `https://github.com/Shopify/bootsnap/issues/378` — committed to fjordllc/bootcamp by ima1zumi 3 years ago
- Bump bootsnap Ruby 3.0 にアップデートするために bootsnap 1.9.3 にアップデートする ref: `https://github.com/Shopify/bootsnap/issues/378` — committed to fjordllc/bootcamp by ima1zumi 3 years ago
- Update bootsnap https://github.com/Shopify/bootsnap/issues/378 — committed to sharpstone/rails-jsbundling by schneems 2 years ago
- Upgrade to Ruby 3.0.3 While upgrading, I also needed to do a `bundle update bootsnap ` because there's a known issue where Ruby 3.0.3 and older Bootsnaps dislike each other very much. https://github... — committed to 155pod/cover_tracker by benjaminwil 2 years ago
- Update bootsnap to 1.9.3 https://github.com/Shopify/bootsnap/issues/378 — committed to marcoranieri/vbc-developer by marcoranieri 2 years ago
- Bump bootsnap When attempting to run the server on Ruby 3.0.4, it fails. Apparently, some bug was released in Ruby 3.0.3 that affects Bootsnap. However, Bootsnap released a workaround patch. Error: ... — committed to RyanofWoods/rails-react-swedish-birds by RyanofWoods 2 years ago
- Bump bootsnap When attempting to run the server on Ruby 3.0.4, it fails. Apparently, some bug was released in Ruby 3.0.3 that affects Bootsnap. However, Bootsnap released a workaround patch. Error: ... — committed to RyanofWoods/rails-react-swedish-birds by RyanofWoods 2 years ago
- use bootsnap ~> 1.9.3 to avoid iseq bug - https://github.com/Shopify/bootsnap/issues/378 — committed to cul/ldpd-dcv by barmintor 10 months ago
- use bootsnap ~> 1.9.3 to avoid iseq bug - https://github.com/Shopify/bootsnap/issues/378 — committed to cul/ldpd-dcv by barmintor 10 months ago
- use bootsnap ~> 1.9.3 to avoid iseq bug - https://github.com/Shopify/bootsnap/issues/378 — committed to cul/ldpd-dcv by barmintor 10 months ago
- use bootsnap ~> 1.9.3 to avoid iseq bug - https://github.com/Shopify/bootsnap/issues/378 — committed to cul/ldpd-dcv by barmintor 10 months ago
- update to shakapacker v7 (DLC-933) - add babel-plugin-transform-react-remove-prop-types to shakapacker - update selenium and bigdecimal, spec ruby-3.0.4 - use a fork of active-triples to permit ruby-3... — committed to cul/ldpd-dcv by barmintor 10 months ago
- update to shakapacker v7 (DLC-933) - add babel-plugin-transform-react-remove-prop-types to shakapacker - update selenium and bigdecimal, spec ruby-3.0.4 - use a fork of active-triples to permit ruby-3... — committed to cul/ldpd-dcv by barmintor 10 months ago
- update to shakapacker v7 (DLC-933) - add babel-plugin-transform-react-remove-prop-types to shakapacker - update selenium and bigdecimal, spec ruby-3.0.4 - use a fork of active-triples to permit ruby-3... — committed to cul/ldpd-dcv by barmintor 10 months ago