Skip to content

Commit 5a900a5

Browse files
authored
Fix: UndefVarError: @withprogress not defined (#25)
* More strict test/test_progress_macro.jl * Fix: UndefVarError: @withprogress not defined
1 parent b64333d commit 5a900a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ProgressLogging.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ function _progress(name, thresh, ex, target, result, loop, iter_vars, ranges, bo
460460
@gensym count_to_frac val frac lastfrac
461461
m = @__MODULE__
462462
quote
463-
$target = @withprogress name = $name begin
463+
$target = $m.@withprogress name = $name begin
464464
$count_to_frac = $make_count_to_frac($(ranges...))
465465
$lastfrac = 0.0
466466

test/test_progress_macro.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module TestProgressMacro
22

3-
using ProgressLogging
3+
using ProgressLogging: @progress
44
using Test
55

66
let i = 0, x

0 commit comments

Comments
 (0)