2012-07-03 2 views
0

이것이 왜 나에게 불어 올지 잘 모르겠습니다. 이 오류는 0.6/Lion을 빌드하기 전까지는 존재하지 않았습니다. 이는 0.3에서 상당히 벗어났습니다. 그러나 xcode로 펑키 한 내용이 변경되지 않는 이상 작동해야합니다. 이 줄에 대해 불평하는 이유를 모르겠다. 날 놀리는 거. 어떤 도움을 주셔서 감사합니다. 오류 :0.3 레오파드에서 0.6 라이온으로 MacRuby 응용 프로그램을 이식하면 오류가 발생합니다

/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