-
Notifications
You must be signed in to change notification settings - Fork 510
Closed
Labels
Description
Hi,
After upgrading Language Support for Java(TM) to version 1.36, visual studio code started failing to generate MapStruct Mappers with the following error :
Error occured while building workspace. Details:
message: No implementation was created for xxxMapper due to having a problem in the erroneous element java.util.ArrayList. Hint: this often means that some other annotation processor was supposed to process the erroneous element. You can also enable MapStruct verbose mode by setting -Amapstruct.verbose=true as a compilation argument.
I'm using Maven with Lombok 1.18.30 and MapStruct 1.5.5.Final. Command line compilation works just fine, the issue arises only when building using the VS Code IDE.
Rolling back Language Support for Java(TM) plugin in VS Code to version 1.35.1 solves the issue.
Below is my maven annotationProcessorPaths configuration. I can try and provide a basic application to reproduce the issue, if it helps.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-mapstruct-binding</artifactId>
<version>${lombok.mapstruct.binding.version}</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${mapstruct.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
Best regards,
Nicolas
bsproger and Palvoluss