-
Notifications
You must be signed in to change notification settings - Fork 130
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
Fix issue #420 (mh_release.pl errors out on decode_json) #463
Conversation
Hmm, I notice this change causes the following notifications on startup of MisterHouse:
This is a similar error that appeared when Jim was adding support for the Android application. Unclear at the moment how to fix this. Do other people also see this? |
I do see those warning messages on startup when running this branch:
However, I am able to run a check for an updated MH version and it seems to run successfully:
I am running on Ubuntu 14.04.1 64-bit Server edition with perl v5.18.2 |
I looked further into the JSON and the JSON:PP modules. If I understand it well JSON can redirect calls to submodules with different implementations, the PP (= Pure Perl) module being one of them. So it is 'normal' that if in your code you both include 'use JSON' (in many MisterHouse files this module is used) and 'use JSON::PP' (in my pull request), and the function prototypes are not identical you get the warning we get. I think one should always use 'use JSON;' and never one of the submodules directly. So I will discard this pull request (unless somebody has a different opinion on this, then please chime in). How to fix the version parsing on my system (that only works with the ::PP version of decode_json) is not clear to me yet. It is not a priority to me but on the other hand I'd like to get it working correctly. I'll close this pull request for the time being. |
…ng, and call the decode_json function from JSON::PP directly
I have updated the pull request so that there are no longer conflicts reported at startup time. The code works fine on my system now. Can others test and report please? |
This works for me, without any warnings on: Ubuntu 14.4 |
@JaredF could you please double-check if the additional fixes I committed to this branch work fine for you now? If they do then we can safely merge it into master. |
@hollie, Sorry for being out of touch lately. I just tested the latest version of your branch and it works as expected with no more warnings at startup. Great work! |
Hey @JaredF, thank you for making time to verify it. 2 positive test reports + mine > I will merge it into master. |
Fix issue #420 (mh_release.pl errors out on decode_json)
This change fixes the failure that occurs when checking the MisterHouse version. Occurs on OS X 10.9.4 using Perl v 5.18.2.
Before merging this change, please test it out on other (non-OS X) systems.