-
Notifications
You must be signed in to change notification settings - Fork 28
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
@eval
interpolation broken inside @require
block
#86
Comments
I think this is a more general problem with macros being expanded before the package is loaded, I've run into it when e.g. calling julia> using Requires
shell> cat test.jl
x = 2
@eval $x
julia> @require Requires="ae029012-a4dd-5104-9daa-d747884805df" begin
include("test.jl")
end
2
julia> @require Requires="ae029012-a4dd-5104-9daa-d747884805df" begin
x = 2
@eval $x
end
ERROR: UndefVarError: x not defined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A MWE with Julia 1.4.2 and Requires v1.0.1:
The text was updated successfully, but these errors were encountered: