Macros not evaluating as per expectation

Ok, have installed exactly these packages into a fresh environment (on Julia 1.10.0). Still everything works as expected for me. Maybe you could try the following:

  1. Start a new Julia REPL and run
    julia> 2 * 5
    
  2. Change your code to explicitly use * from Base, i.e.,
    function create_m_fn(m)
        println("1st => m, 2*m ", m, " ", Base.:*(2, m)) # 1st => m, 2*m 5 7
        Base.:*(2, m)
    end
    # Everything else as before ...
    
    and then try again.