How to use Infiltrator?

I think you have stumbled on the case where you try to precompile code with the @infiltrate statements which does not work as startup.jl is not loaded by precompilation pipeline. The workflow that I use is:

  1. Let the code to precompile without any @infiltrate statement in the code
  2. Then add @infiltrate statements in the code and let Revise to recompile the necessary methods.

The first step could be resolved if we had ability to set a custom startup.jl file that is passed to precompilation, which could be ignored when running tests.

1 Like