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
Provide more detailed error report about missing configuration value if it is computed #24444
Comments
@gradle/bt-execution task input validation is currently in your domain, do you plan to handle this issue? Configuration team is ready to help with the plumbing if any is missing. |
I will add it to our list and we can triage it when Lóránt is back. |
The change required here is mostly pending on the provenance tracking feature of the provider API. Once that feature is available, we can update the message here to better attribute the problem. |
We should clarify that |
Just for clarification: I think what is meant here is that it's a property of the task instance in the JavaBean sense, which is true for |
We should distinguish between If we wanted to actually explain where the current provided value comes from, for that we need support for provenance tracking first, which is a bigger undertaking that we should design more holistically. |
BTW, is "computed" the terminology we want to use when describing providers being fed other providers as inputs? |
I don't think I could see saying "computed" when we fail to determine a value for a property. We use this in the documentation already to refer to "expensive computations" or "computed" values with zip. "determined" could also work in those contexts. We could say "foo's value could not be computed from otherProp", but I would then expect we would say something like "otherProp's value could not be computed because its not known" |
A partial fix (improving the misleading proposed solution) will be addressed by: |
The rest is not a requirement for provider API migration, moving back to @gradle/bt-configuration-cache. |
Current Behavior
User gets an error about missing value. The information they get isn't complete: there is no indication that the value is computed. The solutions are misleading: user can't set computed value.
Expected Behavior
User gets a descriptive error with a note about missing computed value and details about how it is computed and/or which configure values it depends on. Something like this:
Context
Current behavior might be confusing for new users. They can try to set a computed value and would get another error. See an example here.
Reproducer
The text was updated successfully, but these errors were encountered: