3
注釈宝石にいくつか問題があります。私はRuby 2.3とレール5beta3を実行しています。バンドルをインストールGem ruby on railsに注釈を付ける5
[email protected]:~/crash$ annotate
WARN: Unresolved specs during Gem::Specification.reset:
activerecord (< 6.0, >= 3.2)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
/usr/local/lib/ruby/gems/2.3.0/gems/annotate-2.7.0/lib/annotate.rb:12:in `require': cannot load such file -- active_support/core_ext/hash/indifferent_
access (LoadError)
from /usr/local/lib/ruby/gems/2.3.0/gems/annotate-2.7.0/lib/annotate.rb:12:in `rescue in <top (required)>'
from /usr/local/lib/ruby/gems/2.3.0/gems/annotate-2.7.0/lib/annotate.rb:6:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.3.0/gems/annotate-2.7.0/bin/annotate:18:in `require'
from /usr/local/lib/ruby/gems/2.3.0/gems/annotate-2.7.0/bin/annotate:18:in `<top (required)>'
from /usr/local/bin/annotate:22:in `load'
from /usr/local/bin/annotate:22:in `<main>'
ないで何が起こっているかを確認してください...うまく動作するようだが、私は注釈コマンドを呼び出すために行くとき、私はこれを取得します。
'rake db:migrate'を使うと、' annotate'が直接失敗したときに動作することがあります。 Rails 5以降では、githubのdevelブランチを使用する必要があります。 https://www.bountysource.com/issues/41011908-rake-12-0-0-support – sventechie