Does anyone know, how to make silent messages " incremental compilation may be fatally broken for this module "?
The problem is that I have a module, which pirates function from the Base
. And each time I make changes to this module I see this warning message.
WARNING: Method definition show(IO, Base.CoreLogging.LogLevel) in module CoreLogging at logging.jl:142 overwritten in module BIBO at /home/skoffer/.julia/dev/FOO/src/custom_logging.jl:47.
incremental compilation may be fatally broken for this module
For some reason, this message is not affected by julia --warn-overwrite=no
, so I am at loss here.
Looking at the source (src/gf.c
), it looks like that warning is on when --output-incremental
is on, so --output-incremental=no
should do it. I'm not clear on what that option does though, tbh (as opposed to --compiled-modules
which is documented )
It sounds like you are overwriting a method exactly. You could avoid the piracy by boxing a type. That would help.
This is weird, but for some reason --output-incremental=no
does not help. But looking through the source code I see no reason why :-( Mysterious.
Mark Kittisopikul said:
It sounds like you are overwriting a method exactly. You could avoid the piracy by boxing a type. That would help.
Unfortunately I can not avoid it, since I need to change default output of log levels (e.g., INFO
instead of Info
). Of course, I can write my own logger, but then the code will be incompatible with all other loggers.
This is one of the cases, when piracy is necessary.
Last updated: Dec 28 2024 at 04:38 UTC