-
Notifications
You must be signed in to change notification settings - Fork 52
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
Intermittent error output: "Error executing FreeMarker template" #446
Comments
Hi, |
I will add this property now. I won't know for sure since I can't reproduce it, but we can check back in a few days and I can let you know if I still am seeing it. |
Although I am concerned that's not an ideal solution. What if one day there is a FreeMarker-related issue that I do need to see the output for? The above property could cause a subtle and hard to fix bug in the future. |
This is a temporary solution until we fix this problem locally in our code. |
… report Due to an untraceable error of FreeMarker templates, repeated attempts to generate a report are triggered in some cases. In case of unsuccessful attempts, FreeMarker writes to its logger, which is sent to stdout by default. If the error repeats frequently, an exception will be thrown with an error message - so we can ignore FreeMarker's own logging when generating an HTML report. Fixes #446
… report Due to an untraceable error of FreeMarker templates, repeated attempts to generate a report are triggered in some cases. In case of unsuccessful attempts, FreeMarker writes to its logger, which is sent to stdout by default. If the error repeats frequently, an exception will be thrown with an error message - so we can ignore FreeMarker's own logging when generating an HTML report. - upgraded IntelliJ Coverage Library to version `1.0.738` - changed IntelliJ stdout logging level to error - refactored code that works with Gradle Worker API - small refactoring IntelliJ integration Fixes #446 PR #469
Fixed in |
Describe the bug
Randomly every so often I see the output
Error executing FreeMarker template
. I'm not 100% sure it is from kover, but maybe 98% sure. There is no other output, and it is printed to standard error.Upon searching for this output, I see that FreeMarker is in fact used in IntelliJ's (and thus Kover's) code coverage. Also, I never saw this output before I started using Kover myself.
Code coverage seems to otherwise work completely as expected.
Errors
Error executing FreeMarker template
in red (standard error). That's it.Expected behavior
As I said above code coverage seems to still proceed normally.
If the FreeMarker error is handled internally, than the error should not be shown to the user as it is non-actionable, unless the user's log level is high. My
org.gradle.logging.level
is set towarn
, so I don't expect to see any output unless it has a purpose of informing me of an issue.If the error is not completely handled, and is in fact something that we should be concerned about, then there should be a full stack trace and a more informative message.
Reproducer
I cannot reproduce it. It happens at random. If there was a full stack trace or a more informative message I may be able to figure out how to reproduce it.
Environment
See the very place that this message is logged in FreeMarker here
The text was updated successfully, but these errors were encountered: