-
Notifications
You must be signed in to change notification settings - Fork 611
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
[epilogue] Sporadic runtime errors #7103
Comments
This is not a directory generated by Gradle. Generated sources are in build/generated/sources, which you report are correct. I don't know what would be generating this bin directory, nor why it would be included in the build and apparently overriding the correct files |
Thats the folder where the redhat Java extension compiles into. When running the debugger, it uses those files, and not the Jar compiled by gradle. We don't control that behavior. |
potential related issue: |
We've done some more investigation into this problem, and it's likely an issue somewhere with either the Red Hat language server or the Eclipse jdt project it uses for its implementation. In either case, the Eclipse compiler is used to generate the source files created by Epilogue in order for intellisense to pick up the generated source files (eg A workaround for this would be to run |
Generated Epilogue logging classes unpredictably throw runtime errors.
Project setup
Robot.java
ExampleSubsystem.java
This example when run in simulation typically throws an error at startup.
The behavior is sporadic; making a code change and rebuilding + restarting the simulation will occasionally fix the issue temporarily.
./gradlew clean
has also occasionally solved it, at worst I have gone as far as manually purging all build directories (.gradle/
,bin/
,build/
) to resolve runtime errors. Repeatedly rebuilding without any intervention does not mitigate the issue. IfExampleSubsystem
is excluded, issues are much more seldom but still occur. Runtime errors are sensibly reflected inbin/generated-sources/
, but interestingly artifacts inbuild/generated/sources/
never have problems. I'm not an expert on how annotation processors and gradle interact in the slightest, however my blind intuition is that there exists a race condition between Epilogue finishing logger generation and gradle compiling.Desktop
build.gradle
:(Note that this behavior is also seen when using GradleRIO 2024.3.2)
The text was updated successfully, but these errors were encountered: