lundi 12 juillet 2021

Ruby bundle exec s

Building a rails application , everything has been working correctly for the past few weeks, using ruby on rails with a react app as well.

I mis-typed bundle exec rails s with a \ example bundle exec rails s\ and the terminal recognized it as a new line and I just control c out of it, after pushing to git, I ran the program locally again using the above command and I am returned with the error below.

I have tried rails s same error along with bundle exec rails c I have tried to reinstall ruby gems using --force, and npm packages.

I am not even sure where to even start with this error.

I am fairly new to ruby and rails. I do not understand how or where this error started everything was fine prior.

    => Run `bin/rails server --help` for more startup options
Exiting
Traceback (most recent call last):
        56: from bin/rails:4:in `<main>'
        55: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        54: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        53: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        52: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        51: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        50: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.3.2/lib/rails/commands.rb:18:in `<main>'
        49: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.3.2/lib/rails/command.rb:50:in `invoke'
        48: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.3.2/lib/rails/command/base.rb:69:in `perform'
        47: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
        46: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
        45: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
        44: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:135:in `perform'
        43: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:135:in `tap'
        42: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:144:in `block in perform'
        41: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:37:in `start'
        40: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.3.2/lib/rails/commands/server/server_command.rb:77:in `log_to_stdout'
        39: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/server.rb:422:in `wrapped_app'
        38: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/server.rb:249:in `app'
        37: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/server.rb:349:in `build_app_and_options_from_config'
        36: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:66:in `parse_file'
        35: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:105:in `load_file'
        34: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `new_from_string'
        33: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/rack-2.2.3/lib/rack/builder.rb:116:in `eval'
        32: from config.ru:3:in `block in <main>'
        31: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:53:in `require_relative'
        30: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-6.1.3.2/lib/active_support/dependencies.rb:332:in `require'
        29: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-6.1.3.2/lib/active_support/dependencies.rb:299:in `load_dependency'
        28: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/activesupport-6.1.3.2/lib/active_support/dependencies.rb:332:in `block in require'
        27: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require'
        26: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
        25: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
        24: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
        23: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
        22: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
        21: from /Users/machine5739/Desktop/greenroads-admin/config/environment.rb:5:in `<main>'
        20: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.3.2/lib/rails/application.rb:384:in `initialize!'
        19: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.3.2/lib/rails/initializable.rb:60:in `run_initializers'
        18: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:205:in `tsort_each'
        17: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:226:in `tsort_each'
        16: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:347:in `each_strongly_connected_component'
        15: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:347:in `call'
        14: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:347:in `each'
        13: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:349:in `block in each_strongly_connected_component'
        12: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:431:in `each_strongly_connected_component_from'
        11: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
        10: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/2.7.0/tsort.rb:228:in `block in tsort_each'
         9: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.3.2/lib/rails/initializable.rb:61:in `block in run_initializers'
         8: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.3.2/lib/rails/initializable.rb:32:in `run'
         7: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/railties-6.1.3.2/lib/rails/initializable.rb:32:in `instance_exec'
         6: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/webpacker-5.4.0/lib/webpacker/railtie.rb:41:in `block in <class:Engine>'
         5: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/webpacker-5.4.0/lib/webpacker.rb:35:in `bootstrap'
         4: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/webpacker-5.4.0/lib/webpacker/commands.rb:47:in `bootstrap'
         3: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/webpacker-5.4.0/lib/webpacker/manifest.rb:18:in `refresh'
         2: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/webpacker-5.4.0/lib/webpacker/manifest.rb:84:in `load'
         1: from /Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/json-2.5.1/lib/json/common.rb:216:in `parse'
/Users/machine5739/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/json-2.5.1/lib/json/pure/parser.rb:121:in `parse': source is not valid JSON! (JSON::ParserError)

Aucun commentaire:

Enregistrer un commentaire