I finally got around to play with dry-system 0.19. Since I haven’t used Zeitwerk before, I tried using just Zeitwerk and Roda to see if the code reloading works. That part was relatively easy to get to work.
But then I wanted to add dry-system into the mix, and so far, all my efforts to have code reloading work in development have failed. The furthest I have come is getting a
Nothing registered with the key error after the code gets reloaded.
I think this is because I am using a boot file to register the Roda app, since auto-registering doesn’t play nice with Roda.
I put up the simplest setup that reproduces the problem here. What I find interesting is that after the code reloads, the auto-registered key “foo” exists, but “reload_app” is nowhere to be found. Is this expected behaviour, or is this a bug?