BenchmarkTools: getting UndevVarError `@__MODULE__`

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.)

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.

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

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