2009-11-25 60 views
0

您好我安裝了metric_fu om軌道2.2系統運行hobo,我只是無法運行metrics命令。這是我的日誌:安裝metric_fu與flay相關的問題

$:apfcool $item rake metrics:all 
(in /Users/$/Documents/apf/apfcool) 
* master 
/Users/$/.gem/ruby/1.8/gems/flay-1.4.0/lib/flay.rb:171:in `process_sexp': undefined method `<' for nil:NilClass (NoMethodError) 
    from /Users/$/.gem/ruby/1.8/gems/flay-1.4.0/lib/flay.rb:309:in `[]' 
    from /Users/$/.gem/ruby/1.8/gems/flay-1.4.0/lib/flay.rb:309:in `deep_each' 
    from /Users/$/.gem/ruby/1.8/gems/flay-1.4.0/lib/flay.rb:318:in `each_sexp' 
    from /Users/$/.gem/ruby/1.8/gems/flay-1.4.0/lib/flay.rb:315:in `each' 
    from /Users/$/.gem/ruby/1.8/gems/flay-1.4.0/lib/flay.rb:315:in `each_sexp' 
    from /Users/$/.gem/ruby/1.8/gems/flay-1.4.0/lib/flay.rb:308:in `deep_each' 
    from /Users/$/.gem/ruby/1.8/gems/flay-1.4.0/lib/flay.rb:169:in `process_sexp' 
    from /Users/$/.gem/ruby/1.8/gems/flay-1.4.0/lib/flay.rb:144:in `process' 
    from /Users/$/.gem/ruby/1.8/gems/flay-1.4.0/lib/flay.rb:121:in `each' 
    from /Users/$/.gem/ruby/1.8/gems/flay-1.4.0/lib/flay.rb:121:in `process' 
    from /Users/$/.gem/ruby/1.8/gems/flay-1.4.0/bin/flay:10 
    from /usr/bin/flay:19:in `load' 
    from /usr/bin/flay:19 
rake aborted! 
undefined method `first' for nil:NilClass 

我google了一番,發現這http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/8e7ba74ea6ba58a1但「修正」,甚至沒有得到線或方法的名字吧。

回答

0

我升級到Snow Leopard時遇到了這個問題。我通過刪除並重新安裝sexp_processor和ParseTree gem來修復它。他們做一些低級別的東西,所以如果他們下面的地面移動,你需要重新安裝。

寶石卸載sexp_processor 寶石卸載分析樹

然後:

創業板安裝sexp_processor 創業板安裝分析樹

取決於你如何存儲的寶石,你可能想在前面把「須藤」這些命令。