You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On release 0.16.1 this change was introduced ad133e8.
I understand this is trying to workaround initialisation issues. However, it creates larger problems.
Because the catch block hides the exceptions, this becomes a real mess when the error is not actually because of initialisation order.
For example, I had multiple times where the failure was "Can't release a repo without being clean" or "Can't re-release the same tag again" etc.... (errors that were my mistake and real errors) where the exception was caught and ignored and instead of my build failing, it went fine with "unspecified" version up to when it was actually finishing the release build (deploying and everything).
I don't think you should catch all exceptions and assume they are because the initialisation isn't correct. Most cases it will be other errors that should not be caught. Even the error message is completely misleading.
"Project version evaluated before reckon was configured. Run with --info to see cause."
The error was something completely different and the message does not make sense at all. If you want to keep this logic, you should understand which error to catch and let the others errors throw correctly.
I am going to keep using 0.16.0 instead until this issue is sorted.
Thanks.
The text was updated successfully, but these errors were encountered:
While we don't want to soft-fail at all in the settings plugin, we still
want to provide this as a workaround for misbehaving plugins that might
interfere with your version before it's configured.
However, as #194 made clear, we want to be more careful about which
exceptions we catch. We'd really like to catch cases of failing to build
the reckoner configuration. We do need to inspect the throwable cause
chain though given the layers Gradle adds on top.
Fixes#194
This fix will be released as 0.17.0. In the new behavior, the settings plugin will never soft-fail (bury exceptions). In the "legacy" project plugin, it will only soft-fail on config errors (during Reckoner.Builder.build()) but not during version inference.
Hi,
On release 0.16.1 this change was introduced ad133e8.
I understand this is trying to workaround initialisation issues. However, it creates larger problems.
Because the catch block hides the exceptions, this becomes a real mess when the error is not actually because of initialisation order.
For example, I had multiple times where the failure was "Can't release a repo without being clean" or "Can't re-release the same tag again" etc.... (errors that were my mistake and real errors) where the exception was caught and ignored and instead of my build failing, it went fine with "unspecified" version up to when it was actually finishing the release build (deploying and everything).
I don't think you should catch all exceptions and assume they are because the initialisation isn't correct. Most cases it will be other errors that should not be caught. Even the error message is completely misleading.
"Project version evaluated before reckon was configured. Run with --info to see cause."
The error was something completely different and the message does not make sense at all. If you want to keep this logic, you should understand which error to catch and let the others errors throw correctly.
I am going to keep using 0.16.0 instead until this issue is sorted.
Thanks.
The text was updated successfully, but these errors were encountered: