0
我有一個運行的應用程序沒有問題,只是捆綁更新和捆綁軟件安裝,現在。我想,過去4個月我沒有更新過捆綁軟件。錯誤 - 無法加載'guard/rails-assets'或''查找類Guard :: RailsAssets(Rails 4/zeus/guard)
,現在當我運行$後衛,我有這樣的錯誤:錯誤 - 無法加載「後衛/ Rails的資產」或」'找到類衛隊:: RailsAssets
我不明白的地方這個bug來自:我認爲這是捆綁更新導致問題的10分鐘之前,我沒有問題,但我不是100%確定。
mathieu-To-be-filled-by-O-E-M:~/rails_projects/mathieu_app$ guard
17:30:40 - ERROR - Could not load 'guard/rails-assets' or' ' find class Guard::RailsAssets
17:30:40 - ERROR - Error is: cannot load such file -- guard/guard
17:30:40 - ERROR - /home/mathieu/.rvm/gems/[email protected]/gems/guard-rails-assets-0.1.5/lib/guard/rails-assets.rb:2:in `require'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-rails-assets-0.1.5/lib/guard/rails-assets.rb:2:in `<top (required)>'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/plugin_util.rb:105:in `require'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/plugin_util.rb:105:in `rescue in plugin_class'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/plugin_util.rb:97:in `plugin_class'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/plugin_util.rb:56:in `initialize_plugin'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/internals/plugins.rb:24:in `add'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/dsl.rb:186:in `block in guard'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/dsl.rb:183:in `each'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/dsl.rb:183:in `guard'
> [#] /home/mathieu/rails_projects/mathieu_app/Guardfile:37:in `evaluate'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/dsl.rb:378:in `instance_eval'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/dsl.rb:378:in `evaluate'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/guardfile/evaluator.rb:91:in `evaluate'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard.rb:155:in `_evaluate'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard.rb:60:in `setup'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/commander.rb:32:in `start'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/cli.rb:243:in `_start'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/cli.rb:108:in `start'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/aruba_adapter.rb:32:in `execute'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/lib/guard/aruba_adapter.rb:19:in `execute!'
> [#] /home/mathieu/.rvm/gems/[email protected]/gems/guard-2.10.1/bin/guard:11:in `<top (required)>'
> [#] /home/mathieu/.rvm/gems/[email protected]/bin/guard:23:in `load'
> [#] /home/mathieu/.rvm/gems/[email protected]/bin/guard:23:in `<main>'
> [#] /home/mathieu/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `eval'
> [#] /home/mathieu/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `<main>'
17:30:40 - ERROR - Invalid Guardfile, original error is:
> [#]
> [#] Could not load class: "RailsAssets",
> [#] backtrace:
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/lib/guard/plugin_util.rb:57:in `initialize_plugin'
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/lib/guard/internals/plugins.rb:24:in `add'
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/lib/guard/dsl.rb:186:in `block in guard'
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/lib/guard/dsl.rb:183:in `each'
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/lib/guard/dsl.rb:183:in `guard'
> [#] (dsl)> ./Guardfile:37:in `evaluate'
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/lib/guard/dsl.rb:378:in `instance_eval'
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/lib/guard/dsl.rb:378:in `evaluate'
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/lib/guard/guardfile/evaluator.rb:91:in `evaluate'
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/lib/guard.rb:155:in `_evaluate'
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/lib/guard.rb:60:in `setup'
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/lib/guard/commander.rb:32:in `start'
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/lib/guard/cli.rb:243:in `_start'
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/lib/guard/cli.rb:108:in `start'
> [#] (dsl)> $GEM_PATH[0]/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
> [#] (dsl)> $GEM_PATH[0]/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
> [#] (dsl)> $GEM_PATH[0]/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
> [#] (dsl)> $GEM_PATH[0]/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/lib/guard/aruba_adapter.rb:32:in `execute'
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/lib/guard/aruba_adapter.rb:19:in `execute!'
> [#] (dsl)> $GEM_PATH[0]/gems/guard-2.10.1/bin/guard:11:in `<top (required)>'
> [#] (dsl)> $GEM_PATH[0]/bin/guard:23:in `load'
> [#] (dsl)> $GEM_PATH[0]/bin/guard:23:in `<main>'
> [#] (dsl)> $GEM_PATH[0]/bin/ruby_executable_hooks:15:in `eval'
編輯
現在我得到一個新的類型的錯誤:看到here
試過但沒有工作,其實我已經擺脫了錯誤BU我真的不知道如何。無論是否使用叉子,我都會遇到新的錯誤。 – Mathieu 2014-12-21 15:56:23
我設法擺脫這一點,只有恢復到守衛寶石版寶石'守衛','= 2.7.3' – Mathieu 2014-12-21 16:02:17