0

I have a Gradle project with Appium java-client where lombok is also used. After upgrading java-client to v8.2.0 (tries also 8.0.0, 8.1.0, 8.1.1) the project is not compiling with errors like this:

error: cannot find symbol
public void saveChunk(String label, Path destination, CpuUsageGraph.CpuUsageGraphBuilder graphBuilder) {
                                                                   ^
symbol:   class CpuUsageGraphBuilder
location: class CpuUsageGraph

The same error appears on every method/entity created by lombok (setter, getter, builder, ...).

The error appears only during the compilation, in the Intellij IDEA nothing is marked as an error, I can navigate to those entities and from annotations to the classes of the lombok jar.

Lombok is linked to the project as the Gradle plugin of version 5.3.0 (I also tried bumping it to 6.5.1 - the issue remains). Lombok jar version is 1.18.24.

I feel that the newer version of the Appium java-client brings some transitive dependencies that interfere with the lombok but I can't figure out which ones.

Have anyone face this issue yet?

UPD:

Intellij IDEA log contains and exception around the time this failure occurs:

2022-09-15 15:05:36,893 [267740997]   INFO - STDERR - Exception in thread "DisconnectableInputStream source reader" org.gradle.api.UncheckedIOException: java.nio.channels.AsynchronousCloseException
2022-09-15 15:05:36,894 [267740998]   INFO - STDERR -   at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:62)
2022-09-15 15:05:36,894 [267740998]   INFO - STDERR -   at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:41)
2022-09-15 15:05:36,894 [267740998]   INFO - STDERR -   at org.gradle.util.internal.DisconnectableInputStream$1.run(DisconnectableInputStream.java:127)
2022-09-15 15:05:36,894 [267740998]   INFO - STDERR -   at java.base/java.lang.Thread.run(Thread.java:833)
2022-09-15 15:05:36,894 [267740998]   INFO - STDERR - Caused by: java.nio.channels.AsynchronousCloseException
2022-09-15 15:05:36,894 [267740998]   INFO - STDERR -   at java.base/java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
2022-09-15 15:05:36,894 [267740998]   INFO - STDERR -   at java.base/sun.nio.ch.SourceChannelImpl.endRead(SourceChannelImpl.java:263)
2022-09-15 15:05:36,894 [267740998]   INFO - STDERR -   at java.base/sun.nio.ch.SourceChannelImpl.read(SourceChannelImpl.java:285)
2022-09-15 15:05:36,894 [267740998]   INFO - STDERR -   at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:59)
2022-09-15 15:05:36,894 [267740998]   INFO - STDERR -   at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:107)
2022-09-15 15:05:36,894 [267740998]   INFO - STDERR -   at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:101)
2022-09-15 15:05:36,894 [267740998]   INFO - STDERR -   at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:282)
2022-09-15 15:05:36,894 [267740998]   INFO - STDERR -   at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:343)
2022-09-15 15:05:36,894 [267740998]   INFO - STDERR -   at org.gradle.util.internal.DisconnectableInputStream$1.run(DisconnectableInputStream.java:98)
2022-09-15 15:05:36,894 [267740998]   INFO - STDERR -   ... 1 more

0 Answers0