I'm having a persistent error where Julia tells me that the multiplication operator is undefined when I use multiplication within a package I'm working on. Nowhere in the package do I redefine or expand the Base multiplication operator, and there are some places where multiplication is recognized and others where it is not. For example, in the following code
Λ = h.metric.Λ # Type Int64
kSize = 2*Λ+1
for i = 1:n_steps
# Tempering
r = temper(lf, r, (i=i, is_half=true), n_steps)
# Take a half leapfrog step for momentum variable
r = r - map(gradi -> ϵ / 2 .* gradi, grad)
the multiplication on line 2 gives me UndefVarError: * not defined wheras the multiplication on the last line compiles and executes without the error.
Multiplication outside the package and in the Julia REPL on Visual Studio Code does not seem to have the same error.
I've tried Using Base: * and import Base.* in both the main module and the individual Julia packages in the file to no avail. Any ideas about what could be going on?