Skip to content
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

Install task fails on Rails 7.0.8 #521

Open
ifgarces opened this issue May 24, 2024 · 0 comments
Open

Install task fails on Rails 7.0.8 #521

ifgarces opened this issue May 24, 2024 · 0 comments

Comments

@ifgarces
Copy link

On my Rails project, following Surveyor documentation, after adding and installing the gem (bundle add surveyor), the installation task won't work. This is the output:

$ ./bin/rails generate surveyor:install
/home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/surveyor-0.20.0/lib/formtastic/surveyor_builder.rb:3:in `<module:Formtastic>': uninitialized constant Formtastic::SemanticFormBuilder (NameError)

  class SurveyorBuilder < SemanticFormBuilder
                          ^^^^^^^^^^^^^^^^^^^
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/surveyor-0.20.0/lib/formtastic/surveyor_builder.rb:2:in `<main>'
        from <internal:/home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from <internal:/home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in `require'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/surveyor-0.20.0/lib/surveyor.rb:3:in `<main>'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in `require'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in `require'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.4/lib/bundler/runtime.rb:60:in `block (2 levels) in require'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.4/lib/bundler/runtime.rb:55:in `each'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.4/lib/bundler/runtime.rb:55:in `block in require'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.4/lib/bundler/runtime.rb:44:in `each'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.4/lib/bundler/runtime.rb:44:in `require'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/bundler-2.5.4/lib/bundler.rb:187:in `require'
        from /home/ifgarces/code/zoon/zoon-b2e-backend/src/config/application.rb:11:in `<main>'
        from <internal:/home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from <internal:/home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.8/lib/rails/command/actions.rb:22:in `require_application!'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.8/lib/rails/command/actions.rb:14:in `require_application_and_environment!'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.8/lib/rails/commands/generate/generate_command.rb:21:in `perform'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/thor-1.3.0/lib/thor/command.rb:28:in `run'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/thor-1.3.0/lib/thor/invocation.rb:127:in `invoke_command'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/thor-1.3.0/lib/thor.rb:527:in `dispatch'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.8/lib/rails/command/base.rb:87:in `perform'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.8/lib/rails/command.rb:48:in `invoke'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/railties-7.0.8/lib/rails/commands.rb:18:in `<main>'
        from <internal:/home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from <internal:/home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from /home/ifgarces/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        from ./bin/rails:4:in `<main>'

Here are details on my Ruby version and OS:

$ ruby --version
ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-linux]
$ cat /etc/os-release 
NAME="Linux Mint"
VERSION="21.2 (Victoria)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 21.2"
VERSION_ID="21.2"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=victoria
UBUNTU_CODENAME=jammy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant