Infiltrator.jl icon indicating copy to clipboard operation
Infiltrator.jl copied to clipboard

Redefining Functions* Results in Error

Open astrobc1 opened this issue 3 years ago • 2 comments

I will try to update this with an explicit example. When using @infiltrate, I frequently experience an error like:

ERROR: cannot declare #1#2 constant; it already has a value Stacktrace: [1] top-level scope @ none:0

Running the exact same code in the debug prompt is typically successful after a few attempts; It might complain again that #3#4 already has a value after an additional try, however it usually results in success after 2-3 more attempts.

Note that this only happens with functions that were already defined before @infiltrate was hit, although it doesn't always happen which is the perplexing bit.

Current version of Infiltrator: v1.6.1 Same error on Julia 1.6.x, 1.7.x, 1.8.0.

astrobc1 avatar Sep 03 '22 01:09 astrobc1

Seems related to #111

haberdashPI avatar Mar 22 '24 18:03 haberdashPI

Do you have a MWE for this?

pfitzseb avatar Apr 08 '24 10:04 pfitzseb