2012-07-03 22 views
0

我不確定爲什麼這會炸燬我。直到我建立在0.6/Lion之上時,這些錯誤纔出現,我知道這與0.3的距離相差很遠,但它仍然可以工作,除非使用xcode改變了一些質感。 我不明白爲什麼它會抱怨這條線。使我抓狂。任何幫助表示讚賞。錯誤:將MacRuby應用程序從0.3 Leopard移植到0.6 Lion會產生錯誤

/Users/matthew.sacks/dev/mrHost/mrhost/build/mrhost-axyfekrprsyhptctrrnpsyeqwgjv/Build/Products/Debug/mrhost.app/Contents/Resources/host.rb:83:in `set_host': wrong number of arguments (2 for 0) (ArgumentError) 
     from /Users/matthew.sacks/dev/mrHost/mrhost/build/mrhost-axyfekrprsyhptctrrnpsyeqwgjv/Build/Products/Debug/mrhost.app/Contents/Resources/rb_main.rb:22:in `swap_env' 
     from /Users/matthew.sacks/dev/mrHost/mrhost/build/mrhost-axyfekrprsyhptctrrnpsyeqwgjv/Build/Products/Debug/mrhost.app/Contents/Resources/rb_main.rb:69:in `<main>' 

代碼爲https://github.com/msacks/mrhost/blob/master/host.rb

回答

0

該錯誤說,

On line 82 of host.rb there is a call to a method named set_host . You are passing in two arguments during your call to the method, but the method is not written to take any arguments.

The above call was made inside the call to swap_env , made on line 22 of rb_main.rb

…and that call was made from line 69 of main.rb

相關問題