This usually means that you are using eval
to define new functions inside your function and then trying to call them. See the explanation here: Help calling a function defined from expressions - #4 by stevengj
Calling eval
inside a function is almost always the wrong thing to do. Often new Julia programmers make the mistake of trying to build up inner functions from strings or symbolic expressions that they eval
, when the right thing is to just pass/define functions directly using ->
.