-
Notifications
You must be signed in to change notification settings - Fork 23
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 macro does nothing if Juno is not loaded #131
Comments
I think you want function _progress(name, ex)
quote
if isactive()
$(Atom.Progress._progress(name, ex))
else
$(esc(ex))
end
end
end It'd also work to just always inject the monitoring (looks like the progress api is always guarded by isactive); I guess the downside there is a small perf hit, but it seems a little weird to make that Juno-dependent anyway. |
That's problematic because of
when Atom isn't loaded as well... |
Is there are particular reason for the macro expansion to be in Atom though? It seems like it's just lowering straight to the API defined in Juno anyway, right? |
IIRC that's to avoid having Juno.jl depend on MacroTools (used here). |
"Fixed" with 40dc676. |
Actually fixed in latest Juno.jl/Atom.jl release. |
I don't know when this changed, but this should lower to code that does the right thing when Juno is loaded (presumably the lower level progress API should work and just be a no-op). Otherwise,
@progress
cannot be used inside packages.The text was updated successfully, but these errors were encountered: