-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shoehorn.Handler behaviour not working with Elixir 1.16.3 / OTP 26.2.5 #137
Comments
@alanj853 I've stopped using this feature of Shoehorn, so I'm not in a good spot to help. If you or others can figuring it out and send a patch, I'll gladly merge and make a release. I think we can also bump the lowest version of OTP supported if it's hard to maintain backwards compatibility. |
But is this not the main feature of shoehorn, to provide a means to restart applications that crash without having to go outside the VM? |
It is. |
With some more trial and error, I found that this is due to some change in Elixir 1.15.0. This all works fine with the 1.14.5. What is happening is the handle_event and handle_call implementations in lib/shoehorn/report_handler.ex are not being called anymore, even though init/1 is. |
I think I have fixed the issue here: #138 |
Environment
elixir -v
): 1.16.3 OTP 26.2.5may help
I am running the steps in the example provided at: https://github.com/nerves-project/shoehorn/tree/c7d1caa0cc6020c7251c9fc4da3de876b535c0b2/example
Current behavior
Shoehorn behaviour does not seem to be getting used at all.
Steps to reproduce
Expected behavior
Application should restart, and we should see Logger.info print messages
Actual Behaviour
Application exits, and does not restart. Also, there are no Logger.info prints at all, even if the prints in my_project/lib/my_project/shoehorn_handler.ex are switched to IO.puts/1, which shows the code is not being called at all I think.
The text was updated successfully, but these errors were encountered: