2

Measure error when loading into the OS GUI with Measure Internalization

I'm getting the following error in my measure.xml file when I open the measure in the OS GUI.

<error>wrong number of arguments (1 for 2)</error>

My all my tests in my test.rb pass without an issue. I started getting this error after I added Measure Internalization to check unit preference as described in the measure writing guide. When I remove this code from my measure, it opens in the GUI just fine. Is this feature not supported in the GUI?

# I'm passing the runner into my arguments definition so i can check units preference
def arguments(model,runner)
annamo's avatar
23
annamo
asked 2017-07-27 13:52:44 -0500
Julien Marrec's avatar
29.7k
Julien Marrec
updated 2017-08-01 03:48:25 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

The "arguments" method is only expecting "model" and can't accept "runner". The error says that it is expecting one argument but is getting to.

Having said that, looking down the the "Arguments Method Enhancements" in the documentation for internationalization I see runner being passed in. I think the documentation may have gotten ahead of the coding for what can be done. I'l follow up on this to confirm, and will remove from documentation if necessary.

David Goldwasser's avatar
20.4k
David Goldwasser
answered 2017-07-27 14:51:59 -0500, updated 2017-07-27 15:14:41 -0500
edit flag offensive 0 remove flag delete link

Comments

Thank you for the response David!

annamo's avatar annamo (2017-07-27 15:10:20 -0500) edit
add a comment see more comments