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

@progress with multi-variable for loop #42

Open
yha opened this issue Apr 11, 2021 · 0 comments
Open

@progress with multi-variable for loop #42

yha opened this issue Apr 11, 2021 · 0 comments

Comments

@yha
Copy link
Contributor

yha commented Apr 11, 2021

@progress doesn't work when later iterables refer to previous iteration variables:

julia> x = [1:3, 1:2, 5:6];

julia> @progress for y in x, z in y
           @show z
       end
ERROR: UndefVarError: y not defined

I realize there's a problem computing the progress in this case, but perhaps there could be a better error message or a fallback to compute progress only based on the outer loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant