Skip to content
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

Generate features not called after successful compile #757

Open
turkeylurkey opened this issue Jun 1, 2022 · 0 comments
Open

Generate features not called after successful compile #757

turkeylurkey opened this issue Jun 1, 2022 · 0 comments

Comments

@turkeylurkey
Copy link
Member

turkeylurkey commented Jun 1, 2022

Usually the generate features task is called after Java code compiles successfully. But if Java code fails to compile twice in a row and then you fix the error and it compiles successfully then generate features is not called. It could also be that generate features is not called on an intermittent basis.

Use the demo-devmode project and start dev mode normally: gradle libertyDev
Next, modify SystemLivenessCheck.java to remove a semicolon to cause a syntax error and save. LGP reports Source compilation had errors. Remove another ; and save, same message. Correct both syntax errors and save again. Even though dev mode prints the message Source compilation was successful the generate features task does not run.

N.B. This affects one of the integration tests. Find this issue number in DevTest.groovy and restore the assertions.

> Task :libertyDev
Source compilation had errors.

> Task :compileJava
> Task :processResources UP-TO-DATE

BUILD SUCCESSFUL in 185ms
2 actionable tasks: 1 executed, 1 up-to-date

> Task :libertyDev
Source compilation was successful.

[AUDIT   ] CWWKT0017I: Web application removed (default_host): http://192.168.0.209:9081/
[AUDIT   ] CWWKZ0009I: The application demo-devmode-gradle has stopped successfully.
[AUDIT   ] CWWKT0016I: Web application available (default_host): http://192.168.0.209:9081/
[AUDIT   ] CWWKZ0003I: The application demo-devmode-gradle updated in 0.081 seconds.
<-------------> 0% EXECUTING [10m 43s]
> :liberty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant