eclipse-tycho/tycho

A required class was missing while executing [...]:compile: org/eclipse/jdt/internal/compiler/parser/Parser with Lombok 0.18.32

bllngr opened this issue · 1 comments

Also filed as projectlombok/lombok#3684 since I don't know what the culprit is.

Describe the bug
Compiling a test project with Tycho (both 4.0.8 and 5.0.0-SNAPSHOT) and current Lombok (both 1.18.32 and edge) fails with an error:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:4.0.7:compile (default-compile) on project com.vogella.logging.config: Execution default-compile of goal org.eclipse.tycho:tycho-compiler-plugin:4.0.7:compile failed: A required class was missing while executing org.eclipse.tycho:tycho-compiler-plugin:4.0.7:compile: org/eclipse/jdt/internal/compiler/parser/Parser
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.eclipse.tycho:tycho-compiler-plugin:4.0.7
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/D:/.m2/repository/org/eclipse/tycho/tycho-compiler-plugin/4.0.7/tycho-compiler-plugin-4.0.7.jar
[ERROR] urls[1] = [...]

To Reproduce

git clone https://github.com/bllngr/tycho-lombok-example
cd tycho-lombok-example
git switch lombok
export MAVEN_OPTS="-javaagent:${PWD}/bundles/org.projectlombok.lombok/lombok-1.18.32.jar"
mvn clean compile -DskipTests

Expected behavior
Compilation succeeds without errors.

Version info (please complete the following information):

  • Tycho version 4.0.8 and 5.0.0-SNAPSHOT
  • Lombok version 1.18.32 and edge
  • Platform:
    Apache Maven 3.9.7 (8b094c9513efc1b9ce2d952b3b9c8eaedaf8cbf0)
    Maven home: C:\maven
    Java version: 21.0.3, vendor: Azul Systems, Inc., runtime: C:\Program Files\Zulu\zulu-21
    Default locale: en_GB, platform encoding: UTF-8
    OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"
    

Additional context
With older Lombok versions like 1.18.30, compilation succeeds.