-
Notifications
You must be signed in to change notification settings - Fork 6
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
Macro in test undefined #3
Comments
Thanks for reporting the issue. Sorry for the late response. I am not good at keeping track of my GitHub notifications. The problem here is that by the time
|
Macros won't work in this case in general, so this issue cannot be fixed. julia> @time begin
using Turing, Test
@model model() = begin
end
end
ERROR: LoadError: UndefVarError: @model not defined
Stacktrace:
[1] top-level scope
[2] eval(::Module, ::Any) at ./boot.jl:331
[3] eval_user_input(::Any, ::REPL.REPLBackend) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86
[4] run_backend(::REPL.REPLBackend) at /home/scheme/.julia/packages/Revise/AMRie/src/Revise.jl:1023
[5] top-level scope at none:0
in expression starting at REPL[1]:4 |
It would be nice to be able to use it with @nbinclude too, but it isn't too hard to just write out a module by hand. |
Hi-
I want to report that SafeTestsets cannot find the model macro in Turing.jl. Here is a MWE:
Error:
Version
By the way, thank you for putting this package together. I find it to be very useful.
The text was updated successfully, but these errors were encountered: