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

+tblish/+internal/mycombvec.m: Fix syntax error #124

Closed
wants to merge 1 commit into from

Conversation

mmuetzel
Copy link

@mmuetzel mmuetzel commented Feb 8, 2024

Spaces separate elements inside brackets [ ]. So, that line is interpreted as

out = [out; [repmat, (a(i), [size, (rest_combs,1), 1]), rest_combs]];

Combining comma-separated lists with parenthesis is not supported (and is probably not what was intended).

Fix the syntax errorby removing the space between function name and opening parenthesis inside brackets.

See the failing doctest: gnu-octave/packages#401


Andrew's notes

See also: #127

Spaces ` ` separate elements inside brackets `[ ]`. So, that line is
interpreted as

    out = [out; [repmat, (a(i), [size, (rest_combs,1), 1]), rest_combs]];

Combining comma-separated lists with parenthesis is not supported (and is probably not what was intended).

Fix the syntax error by removing the space between function name and
opening parenthesis inside brackets.
@apjanke
Copy link
Owner

apjanke commented Feb 9, 2024

Oh, shoot; I didn't even see that you had already submitted a PR for this. I'm sorry! I already checked in a fix for this in 151d2ec, which covers this mycombvec issue, and similar ones I found in a few other functions.

Would you mind re-testing against HEAD of main to see if my change took care of things for you?

@apjanke apjanke self-assigned this Feb 9, 2024
@apjanke apjanke added the bug Something isn't working label Feb 9, 2024
@apjanke apjanke added this to the 0.4.3 milestone Feb 9, 2024
@mmuetzel
Copy link
Author

mmuetzel commented Feb 9, 2024

No worries. I didn't check the codebase. Just reacted on the test error on gnu-octave/packages#401

@mmuetzel mmuetzel closed this Feb 9, 2024
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
Status: Closed
Development

Successfully merging this pull request may close these issues.

2 participants