-
Notifications
You must be signed in to change notification settings - Fork 316
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
Error message for pkgPathFor
needs to be clearer
#1904
Comments
Also, the reason that this issue is cropping up is that the ServiceConfig cannot be properly deserialized until there is some census information available, which makes the first pass of evaluating pkgPathFor fail. I'd be happy to pair with someone on fixing this. |
@smurawski I've just run into this bug. Perhaps we can pair on it sometime next week. |
@bodymindarts I'm out at a conference all next week on the west coast, but I could definitely find some time in the early morning there (Monday, Tuesday, or Wednesday are best) to sync up. We can sort out a time in Slack if that'd work. |
After debugging this a bit it looks like I actually ran into #1788 The timing issue mentioned in this ticket doesn't seem to be an issue since afaict the hook actually renders correctly even the first time! Just deserializing integerers is an issue. |
Opened #2067 to address the issue I am seeing. It looks like the timing issue mentioned here has been resolved because even on the first run I can see the hook being rendered correctly, despite the error message. I agree the message is misleading but actually wonder if it should ever float up to the user. If anything else than a serialized ServiceConfig gets passed as context to handlebars thats a programmer error. |
@smurawski has this been taken care of now? |
Yep! I updated the error message in #2077 |
hab-sup
0.18.0When a hook or config file is generated with
pkgPathFor
, the initial run will fail with an error about the lack of a service config (since the context doesn't exist yet). This error is misleading and plan authors probably aren't aware of the internal constructs of the supervisor and when they are ready or not.We just need a better error message.
The text was updated successfully, but these errors were encountered: