Hello guys, it seems that AutoReload feature was b...
# ktor
k
Hello guys, it seems that AutoReload feature was broken between 0.4.0-alpha-11 and 12. It is always reproduced in my app, whith the Ktor version being the only change. After version 12, the app restarts as usual, but all
install
calls get lost. Therefore any call to
application.feature
fails with
java.lang.IllegalStateException: No instance for key AttributeKey: x
. What I can see, is that
attributes[ApplicationFeature.registry]
is empty after restart, although routing seems to work well. Is there something I have to update in the app regarding autoreload in ktor alpha-12? The lastest alpha-14 is also failing in the same way, with no obvious problems shown in log. The most surprising thing is that after another change of the code, the app can actually recover! So it seems like some recently introduced race condidion in the framework.