BenchmarkTools: getting UndevVarError `@__MODULE__`


#1

Whenever I call any macro from BenchmarkTools (latest tagged release) I get an UndefVarError for @__MODULE__. There is no stack trace. There doesn’t seem to be an issue on the github, so it seems something strange is going on.

Any ideas? (Usually I ask here to make sure it’s not my fault before posting an issue.)


#2

On 0.6, @__MODULE__ is provided by Compat.jl. Perhaps you have an old version of Compat? Maybe BenchmarkTools needs to bump the Compat version requirement.


#3

I’m on Compat 0.34.0 which is the latest tagged release.


#4

It’s a BenchmarkTools bug. I believe there’s a wip PR for it.