2012-07-03 1 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

 Смежные вопросы

  • Нет связанных вопросов^_^