Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tremblap opened this issue Aug 17, 2023 · 1 comment
Closed

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

tremblap opened this issue Aug 17, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@tremblap
Copy link
Member

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

@tremblap tremblap added the bug Something isn't working label Aug 17, 2023
@AlexHarker AlexHarker self-assigned this Aug 17, 2023
AlexHarker added a commit to AlexHarker/flucoma-max that referenced this issue Aug 17, 2023
@tremblap
Copy link
Member Author

it does indeed work by adding ParamDescType::NumPrimaryParams

jamesb93 pushed a commit to jamesb93/flucoma-max that referenced this issue Aug 27, 2023
wrapper: adding the primary parameters to the max in the error line, fix flucoma#392
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants