We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Here's a MWE:
using JuMP m = Model() x = (lower_bound=5.0,) @variable(m, set = MOI.GreaterThan(x.lower_bound))
With JuMP 1.18.0, this fails with the error
ERROR: UndefVarError: `x` not defined Stacktrace: [1] macro expansion @ ~/.julia/packages/JuMP/9tYtW/src/macros/@variable.jl:313 [inlined] [2] macro expansion @ ~/.julia/packages/JuMP/9tYtW/src/macros.jl:375 [inlined] [3] top-level scope @ ~/julia-envs/jump-bug/minrepro.jl:6
In JuMP 1.17 and below, there is no error.
The text was updated successfully, but these errors were encountered:
I'll take a look. I recently refactored our macro handling, so this is my fault.
I guess I was right #3629 (comment)
The main risk is probably esc scoping bugs
Sorry, something went wrong.
See #3647
I guess the lesson is that when writing tests, we should prefer to use variables rather than literals so that we can check for scoping bugs like this.
Successfully merging a pull request may close this issue.
Here's a MWE:
With JuMP 1.18.0, this fails with the error
In JuMP 1.17 and below, there is no error.
The text was updated successfully, but these errors were encountered: