如何摆脱did_you_mean警告

时间:2019-03-15 23:58:42

标签: ruby-on-rails bundler

我不得不更新我的捆绑器,从那时起,我收到了一些警告消息,我不确定该如何摆脱。我试图恢复为根据我的Gemfile.lock使用的捆绑器版本,但这不起作用。 有什么想法吗?

/var/lib/gems/2.5.0/gems/railties-5.2.2.1/lib/rails/app_loader.rb:53: warning: Insecure world writable dir /mnt/c in PATH, mode 040777
/usr/lib/ruby/vendor_ruby/did_you_mean/version.rb:2: warning: already initialized constant DidYouMean::VERSION
/var/lib/gems/2.5.0/gems/did_you_mean-1.3.0/lib/did_you_mean/version.rb:2: warning: previous definition of VERSION was here
/usr/lib/ruby/vendor_ruby/did_you_mean/jaro_winkler.rb:63: warning: already initialized constant DidYouMean::JaroWinkler::WEIGHT
/var/lib/gems/2.5.0/gems/did_you_mean-1.3.0/lib/did_you_mean/jaro_winkler.rb:63: warning: previous definition of WEIGHT was here
/usr/lib/ruby/vendor_ruby/did_you_mean/jaro_winkler.rb:64: warning: already initialized constant DidYouMean::JaroWinkler::THRESHOLD
/var/lib/gems/2.5.0/gems/did_you_mean-1.3.0/lib/did_you_mean/jaro_winkler.rb:64: warning: previous definition of THRESHOLD was here
/usr/lib/ruby/vendor_ruby/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb:9: warning: already initialized constant DidYouMean::VariableNameChecker::NAMES_TO_EXCLUDE
/var/lib/gems/2.5.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb:9: warning: previous definition of NAMES_TO_EXCLUDE was here
/usr/lib/ruby/vendor_ruby/did_you_mean/spell_checkers/name_error_checkers.rb:5: warning: already initialized constant DidYouMean::NameErrorCheckers
/var/lib/gems/2.5.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/name_error_checkers.rb:5: warning: previous definition of NameErrorCheckers was here
/usr/lib/ruby/vendor_ruby/did_you_mean/spell_checkers/method_name_checker.rb:7: warning: already initialized constant DidYouMean::MethodNameChecker::NAMES_TO_EXCLUDE
/var/lib/gems/2.5.0/gems/did_you_mean-1.3.0/lib/did_you_mean/spell_checkers/method_name_checker.rb:7: warning: previous definition of NAMES_TO_EXCLUDE was here
/usr/lib/ruby/vendor_ruby/did_you_mean.rb:34: warning: already initialized constant DidYouMean::SPELL_CHECKERS
/var/lib/gems/2.5.0/gems/did_you_mean-1.3.0/lib/did_you_mean.rb:87: warning: previous definition of SPELL_CHECKERS was here

谢谢

1 个答案:

答案 0 :(得分:0)

尝试运行

bundle clean --force

然后再次捆绑