Does Infiltrator work with Revise?

I tried to use @infiltrate in my code as follows:

    ...
    println("\n\n1 &*&*&*&*&*&*&*&*&*&*&*&*&*&*&*")
    println( "Debugging")
    @infiltrate
    ...

but I got the following:

1 &*&*&*&*&*&*&*&*&*&*&*&*&*&*&*
Debugging
ERROR: Disabling the infiltration point in model_precalculate(model_data::ModelFunctions.ModelData, df::DataFrame; report_exec_time::Bool) at ModelFunctions.jl:3427.
Infiltrating fully asynchronous code is currently not possible. You may be trying
to infiltrate an @async task or are using inline evaluation in VS Code or Juno.

Infiltration points can be re-enabled with Infiltrator.clear_disabled!() and
this check is toggled with Infiltrator.toggle_async_check(false).

Someone suggested to me that Infiltrator might not work with Revise.jl. Is that the reason for this error? (I am not using asynchronous code and I am not clear about the meaning of an “inline evaluation”)

Infiltrator and Revise work together very well. How are you running this code? Ctrl-Enter in a VS Code session? If so, that constitutes “inline evaluation” :slight_smile:

1 Like