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
Click the icon to update IntelliJ given the pom change. This also writes the file and the dev loop rebuilds and restarts the server.
Open GreetResource.java and insert
@Inject
private MeterRegistry meterRegistry;
IntelliJ will correctly find MeterRegistry in the Micrometer transitive dependency pulled in by the dependency you added earlier and fill it in as you type.
4. Save the file.
5. The dev loop reports
| source file changed
| rebuilding (incremental)
COMPILATION ERROR :
/Users/tjquinn/mic/j4c/demo/quickstart-mp/src/main/java/me/tjquinn/mp/quickstart/GreetResource.java:[20,37] package io.micrometer.core.instrument does not exist
/Users/tjquinn/mic/j4c/demo/quickstart-mp/src/main/java/me/tjquinn/mp/quickstart/GreetResource.java:[54,13] cannot find symbol
symbol: class MeterRegistry
location: class me.tjquinn.mp.quickstart.GreetResource
| build failed
| waiting for source file changes
In the IDE, return to the pom.xmlfile and remove the earlier added space, or add a new space to the end of a line. Save the file.
The dev loop reports:
| build file changed
and then stalls.
6. Add a space to the pom again and save the file.
7. Now the dev loop sees and acts on the change, rebuilds with a successful compilation this time, and all is well.
The text was updated successfully, but these errors were encountered:
The dev loop does not seem to learn, upon the first change to the pom.xml file, about the transitive dependency on the Micrometer artifact that the helidon-integrations-micrometer-cdi artifact brings with it. That would seem to cause the Java compilation error.
After I see the compilation error and then touch the pom.xml again, the dev loop stalls.
The issue can be reproduced by executing the dev-loop using the --clean option. The fix is to share the MavenSession used during the full/prime build with the incremental build.
Helidon 2.3.0, CLI 2.2.0
Run
helidon init
and choose an MP quick-start app and choose to run the dev loop.Open the new project in IntelliJ IDEA.
GreetResource.java
and insertIntelliJ will correctly find MeterRegistry in the Micrometer transitive dependency pulled in by the dependency you added earlier and fill it in as you type.
4. Save the file.
5. The dev loop reports
pom.xml
file and remove the earlier added space, or add a new space to the end of a line. Save the file.and then stalls.
6. Add a space to the pom again and save the file.
7. Now the dev loop sees and acts on the change, rebuilds with a successful compilation this time, and all is well.
The text was updated successfully, but these errors were encountered: