Skip to content

restructure/app/models/dynamic/def_generator.rb:397: syntax error, unexpected `end' (SyntaxError) end #44

@melonistic

Description

@melonistic

santiagoalvarezvargas@chagui restructure % FPHS_2FA_AUTH_DISABLED=true bundle exec rails s
=> Booting Rails
Resources::Models.remove(resource_name:)

Errored out on the line above. Investigate.

=> Booting Puma
=> Rails 6.1.7.7 application starting in development
=> Run bin/rails server --help for more startup options
Exiting
/Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require': /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/dynamic/def_generator.rb:397: syntax error, unexpected end' (SyntaxError)
end
^~~
/Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/dynamic/def_generator.rb:489: syntax error, unexpected end-of-input, expecting end' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:26:in require' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/external_identifier.rb:7:in class:ExternalIdentifier'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/external_identifier.rb:3:in <main>' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:26:in require'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/concerns/alternative_ids.rb:63:in external_id_definitions' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/concerns/alternative_ids.rb:49:in external_id_matching_fields'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/concerns/alternative_ids.rb:134:in alternative_id_fields' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/concerns/alternative_ids.rb:198:in setup_resource_alternative_id_fields'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/concerns/handles_user_base.rb:52:in block in <module:HandlesUserBase>' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/concern.rb:136:in class_eval'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/concern.rb:136:in append_features' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/user_base.rb:10:in include'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/user_base.rb:10:in <class:UserBase>' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/user_base.rb:7:in

'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:26:in require' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/player_info.rb:3:in '
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:26:in require' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/fphs/master_search_handler.rb:12:in module:MasterSearchHandler'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/fphs/master_search_handler.rb:7:in <module:Fphs>' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/fphs/master_search_handler.rb:6:in '
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:26:in require' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/master.rb:86:in class:Master'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/app/models/master.rb:3:in <main>' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:26:in require'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/dependencies/zeitwerk_integration.rb:49:in require_dependency' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/config/initializers/app_restarter.rb:55:in block in '
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:427:in instance_exec' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:427:in block in make_lambda'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:198:in block (2 levels) in halting' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:604:in block (2 levels) in default_terminator'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:603:in catch' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:603:in block in default_terminator'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:199:in block in halting' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:512:in block in invoke_before'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:512:in each' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:512:in invoke_before'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/callbacks.rb:105:in run_callbacks' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/reloader.rb:88:in prepare!'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/railties-6.1.7.7/lib/rails/application/finisher.rb:124:in block in <module:Finisher>' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/railties-6.1.7.7/lib/rails/initializable.rb:32:in instance_exec'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/railties-6.1.7.7/lib/rails/initializable.rb:32:in run' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/railties-6.1.7.7/lib/rails/initializable.rb:61:in block in run_initializers'
from /Users/santiagoalvarezvargas/.rbenv/versions/3.0.6/lib/ruby/3.0.0/tsort.rb:228:in block in tsort_each' from /Users/santiagoalvarezvargas/.rbenv/versions/3.0.6/lib/ruby/3.0.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component'
from /Users/santiagoalvarezvargas/.rbenv/versions/3.0.6/lib/ruby/3.0.0/tsort.rb:431:in each_strongly_connected_component_from' from /Users/santiagoalvarezvargas/.rbenv/versions/3.0.6/lib/ruby/3.0.0/tsort.rb:349:in block in each_strongly_connected_component'
from /Users/santiagoalvarezvargas/.rbenv/versions/3.0.6/lib/ruby/3.0.0/tsort.rb:347:in each' from /Users/santiagoalvarezvargas/.rbenv/versions/3.0.6/lib/ruby/3.0.0/tsort.rb:347:in call'
from /Users/santiagoalvarezvargas/.rbenv/versions/3.0.6/lib/ruby/3.0.0/tsort.rb:347:in each_strongly_connected_component' from /Users/santiagoalvarezvargas/.rbenv/versions/3.0.6/lib/ruby/3.0.0/tsort.rb:226:in tsort_each'
from /Users/santiagoalvarezvargas/.rbenv/versions/3.0.6/lib/ruby/3.0.0/tsort.rb:205:in tsort_each' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/railties-6.1.7.7/lib/rails/initializable.rb:60:in run_initializers'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/railties-6.1.7.7/lib/rails/application.rb:391:in initialize!' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/config/environment.rb:5:in '
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in require' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:332:in block in require'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:299:in load_dependency' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:332:in require'
from config.ru:3:in block in <main>' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/rack-2.2.8.1/lib/rack/builder.rb:116:in eval'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/rack-2.2.8.1/lib/rack/builder.rb:116:in new_from_string' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/rack-2.2.8.1/lib/rack/builder.rb:105:in load_file'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/rack-2.2.8.1/lib/rack/builder.rb:66:in parse_file' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/rack-2.2.8.1/lib/rack/server.rb:349:in build_app_and_options_from_config'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/rack-2.2.8.1/lib/rack/server.rb:249:in app' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/rack-2.2.8.1/lib/rack/server.rb:422:in wrapped_app'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/railties-6.1.7.7/lib/rails/commands/server/server_command.rb:77:in log_to_stdout' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/railties-6.1.7.7/lib/rails/commands/server/server_command.rb:37:in start'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/railties-6.1.7.7/lib/rails/commands/server/server_command.rb:144:in block in perform' from <internal:kernel>:90:in tap'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/railties-6.1.7.7/lib/rails/commands/server/server_command.rb:135:in perform' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/thor-1.3.0/lib/thor/command.rb:28:in run'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/thor-1.3.0/lib/thor/invocation.rb:127:in invoke_command' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/thor-1.3.0/lib/thor.rb:527:in dispatch'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/railties-6.1.7.7/lib/rails/command/base.rb:69:in perform' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/railties-6.1.7.7/lib/rails/command.rb:48:in invoke'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/railties-6.1.7.7/lib/rails/commands.rb:18:in <main>' from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require'
from /Users/santiagoalvarezvargas/Documents/GitHub/restructure/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' from bin/rails:4:in '

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions