解决了 bundle 提示的 gem 版本问题,执行了 bundle update rails,然后成功了
在执行 bundle exec rails app:update 时提示这个,已经尝试把 bootsnap 和 chewy 升级,可依旧没解决
EPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
now accept two parameters, the view object and the source for the view object.
Change:
>> #<#<Class:0x00007fb7dfdf9c58>:0x00007fb7dfe2ab00>.call(template)
To:
>> #<#<Class:0x00007fb7dfdf9c58>:0x00007fb7dfe2ab00>.call(template, source)
(called from <main> at /Users/fxy/RubymineProjects/skylark/config/application.rb:6)
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/protocol.rb:66: warning: already initialized constant Net::ProtocRetryError
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/net-protocol-0.2.1/lib/net/protocol.rb:68: warning: previous definition of ProtocRetryError was here
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/protocol.rb:206: warning: already initialized constant Net::BufferedIO::BUFSIZE
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/net-protocol-0.2.1/lib/net/protocol.rb:214: warning: previous definition of BUFSIZE was here
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/2.6.0/net/protocol.rb:503: warning: already initialized constant Net::NetPrivate::Socket
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/net-protocol-0.2.1/lib/net/protocol.rb:541: warning: previous definition of Socket was here
DEPRECATION WARNING: SourceAnnotationExtractor is deprecated! Use Rails::SourceAnnotationExtractor instead. (called from <main> at /Users/fxy/RubymineProjects/skylark/config/application.rb:6)
DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
now accept two parameters, the view object and the source for the view object.
Change:
>> Coffee::Rails::TemplateHandler.call(template)
To:
>> Coffee::Rails::TemplateHandler.call(template, source)
(called from <main> at /Users/fxy/RubymineProjects/skylark/config/application.rb:6)
DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
now accept two parameters, the view object and the source for the view object.
Change:
>> ActionView::Template::Handlers::AxlsxBuilder.call(template)
To:
>> ActionView::Template::Handlers::AxlsxBuilder.call(template, source)
(called from <main> at /Users/fxy/RubymineProjects/skylark/config/application.rb:6)
rails aborted!
LoadError: cannot load such file -- i18n/core_ext/hash
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:88:in `register'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:44:in `require'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.6.1/lib/active_support/dependencies.rb:324:in `block in require'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.6.1/lib/active_support/dependencies.rb:291:in `load_dependency'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/activesupport-6.0.6.1/lib/active_support/dependencies.rb:324:in `require'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/chewy-0.10.1/lib/chewy.rb:17:in `<main>'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.4.21/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.4.21/lib/bundler/runtime.rb:55:in `each'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.4.21/lib/bundler/runtime.rb:55:in `block in require'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.4.21/lib/bundler/runtime.rb:44:in `each'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.4.21/lib/bundler/runtime.rb:44:in `require'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bundler-2.4.21/lib/bundler.rb:187:in `require'
/Users/fxy/RubymineProjects/skylark/config/application.rb:6:in `<main>'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
/Users/fxy/RubymineProjects/skylark/Rakefile:4:in `<main>'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:60:in `load'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:60:in `load'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rake-11.3.0/lib/rake/rake_module.rb:28:in `load_rakefile'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rake-11.3.0/lib/rake/application.rb:686:in `raw_load_rakefile'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rake-11.3.0/lib/rake/application.rb:96:in `block in load_rakefile'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rake-11.3.0/lib/rake/application.rb:178:in `standard_exception_handling'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rake-11.3.0/lib/rake/application.rb:95:in `load_rakefile'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-6.0.6.1/lib/rails/commands/rake/rake_command.rb:22:in `block in perform'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rake-11.3.0/lib/rake/application.rb:178:in `standard_exception_handling'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-6.0.6.1/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-6.0.6.1/lib/rails/command.rb:48:in `invoke'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/railties-6.0.6.1/lib/rails/commands.rb:18:in `<main>'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:100:in `register'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/Users/fxy/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/bootsnap-1.9.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
bin/rails:4:in `<main>'