Recompile of a dependency does not take affect

Something I noticed; haven’t investigated deeply but I decided to query here:
Previously, when I would do a change in a dep that I was testing in a project, I could run mix compile in terminal, the dep would recompile and then I could do recompile in the iex shell and the changes I made would be visible.

Recently I switched to 1.20.0-rc.1-otp-28 and it seems this flow is not working as before. Recompiles still happen, I do get :ok from shell but I don’t see the changes, it’s like the old one is still loaded. If I exit and start the server again the changes show.

Not sure if it’s a bug or something else, haven’t investigated it deeply. Maybe somebody noticed similar?

It sounds like although the module has been recompiled it has not been reloaded. These are two separate operations.

Yes. I verified it now:
Using 1.20.0-rc.1-otp-28 the reload doesn’t happen after running mix compile outside and recompile in shell.

Using 1.18.4 the reload does happen.

So is this a bug? :thinking: