sdedic commented on PR #4921: URL: https://github.com/apache/netbeans/pull/4921#issuecomment-1315384294
Relevant parts from the log: Cause of the actual test failure: ``` 2022-11-15T11:54:18.9353555Z [junit] Error during dispatch at server 2022-11-15T11:54:18.9353858Z [junit] java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: org/netbeans/modules/java/lsp/server/htmlui/$JsCallbacks$ 2022-11-15T11:54:18.9354114Z [junit] at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) 2022-11-15T11:54:18.9354372Z [junit] at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) 2022-11-15T11:54:18.9354596Z [junit] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606) 2022-11-15T11:54:18.9354796Z [junit] at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) 2022-11-15T11:54:18.9355031Z [junit] at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) 2022-11-15T11:54:18.9355235Z [junit] at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278) 2022-11-15T11:54:18.9355443Z [junit] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) ``` - will add more logging to both `Server.java` and `ServerTest.java` to display these in the future Files present at the end of the compilation: ``` 2022-11-15T11:50:59.9605425Z java/java.lsp.server/build/classes/org/netbeans/modules/java/lsp/server/htmlui: 2022-11-15T11:50:59.9605683Z total 64 2022-11-15T11:50:59.9606013Z -rw-r--r-- 1 runner docker 1802 2022-11-15 11:49:39.123093473 $JsCallbacks$$1.class 2022-11-15T11:50:59.9606474Z -rw-r--r-- 1 runner docker 4391 2022-11-15 11:49:39.127093433 $JsCallbacks$.class 2022-11-15T11:50:59.9606882Z -rw-r--r-- 1 runner docker 4497 2022-11-15 11:49:39.163093069 Buttons.class 2022-11-15T11:50:59.9607278Z -rw-r--r-- 1 runner docker 257 2022-11-15 11:49:38.707097682 WebView$1.class 2022-11-15T11:50:59.9607701Z -rw-r--r-- 1 runner docker 1702 2022-11-15 11:49:38.707097682 WebView$Command$1Wrap.class 2022-11-15T11:50:59.9608116Z -rw-r--r-- 1 runner docker 9974 2022-11-15 11:49:38.707097682 WebView$Command.class 2022-11-15T11:50:59.9608525Z -rw-r--r-- 1 runner docker 1592 2022-11-15 11:49:38.707097682 WebView$Page.class 2022-11-15T11:50:59.9608936Z -rw-r--r-- 1 runner docker 4261 2022-11-15 11:49:38.707097682 WebView$Server.class 2022-11-15T11:50:59.9609335Z -rw-r--r-- 1 runner docker 8391 2022-11-15 11:49:38.707097682 WebView.class 2022-11-15T11:50:59.9609511Z ``` Files present at the time of test execution: ``` 2022-11-15T11:54:18.9352721Z [junit] File list in classes: WebView$Command.class 2022-11-15T11:54:18.9352816Z [junit] WebView$1.class 2022-11-15T11:54:18.9352924Z [junit] WebView$Command$1Wrap.class 2022-11-15T11:54:18.9353014Z [junit] WebView$Server.class 2022-11-15T11:54:18.9353106Z [junit] WebView.class 2022-11-15T11:54:18.9353200Z [junit] WebView$Page.class 2022-11-15T11:54:18.9353286Z [junit] Buttons.class 2022-11-15T11:54:18.9353432Z [junit] File list in generated classes: $JsCallbacks$.java ``` There's no `$JsCallback$.class` in the classes directory Why the `uptodate` task thinks the module should be recompiled: ``` 2022-11-15T11:51:05.1806399Z [depend] Class org.netbeans.modules.java.lsp.server.refactoring.PullUpRefactoring$1 is out of date with respect to /opt/hostedtoolcache/Java_Zulu_jdk/8.0.352-8/x64/lib/tools.jar ``` Because of ``` 2022-11-15T11:50:59.9453309Z JAVA_HOME/lib contents: 2022-11-15T11:50:59.9468383Z total 38272 2022-11-15T11:50:59.9468880Z drwxr-xr-x+ 3 runner docker 4096 Nov 15 11:50 amd64 2022-11-15T11:50:59.9469371Z -rw-r--r--+ 1 runner docker 17898406 Nov 15 11:50 ct.sym 2022-11-15T11:50:59.9469725Z -rw-r--r--+ 1 runner docker 163083 Nov 15 11:50 dt.jar 2022-11-15T11:50:59.9470064Z -rw-r--r--+ 1 runner docker 19429 Nov 15 11:50 ir.idl 2022-11-15T11:50:59.9470418Z -rw-r--r--+ 1 runner docker 407704 Nov 15 11:50 jconsole.jar 2022-11-15T11:50:59.9470780Z -rwxr-xr-x+ 1 runner docker 23224 Nov 15 11:50 jexec 2022-11-15T11:50:59.9471135Z -rw-r--r--+ 1 runner docker 1637 Nov 15 11:50 orb.idl 2022-11-15T11:50:59.9471496Z -rw-r--r--+ 1 runner docker 2312771 Nov 15 11:50 sa-jdi.jar 2022-11-15T11:50:59.9471865Z -rw-r--r--+ 1 runner docker 18348414 Nov 15 11:50 tools.jar 2022-11-15T11:50:59.9472383Z nb module jar: 2022-11-15T11:50:59.9484419Z -rw-r--r-- 1 runner docker 1963066 Nov 15 11:49 nbbuild/netbeans/java/modules/org-netbeans-modules-java-lsp-server.jar ``` Why the `$JsCallback$` is actually deleted during compilation step: ``` 2022-11-15T11:51:05.2022221Z [nb-javac] org/netbeans/modules/java/lsp/server/htmlui/$JsCallbacks$$1.class will be deleted since .class is missing ``` I can fix this bug. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
