flucoma/flucoma-max

Bug: Too many arguments. Got X, expect at most 0

Closed this issue · 1 comments

Please tell us what you were doing! You can include code and files by drag and dropping them into the text area.

When an object with max-setting arguments (declared with LongParamRuntimeMax) has too many arguments, it doesn't write the right 'expected' number. For instance, instantiating [fluid.sinefeature~ 1 2 3 4] give "fluid.sinefeature~: Too many arguments. Got 4, expect at most 0"

What was the expected result?

fluid.sinefeature~: Too many arguments. Got 4, expect at most 1 (in this case)

What was the actual result?

fluid.sinefeature~: Too many arguments. Got 4, expect at most 0

What operating system were you using?

Mac

Operating system version

Monterey

FluCoMa Version

latest

it does indeed work by adding ParamDescType::NumPrimaryParams