ctabin commented on issue #7328:
URL: https://github.com/apache/netbeans/issues/7328#issuecomment-2075766226
Hi,
It seems I've found the problem and it was related to my project: this is
because we use ErrorProne with a custom plugin in our build:
```xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<arg>...</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>ch.astorm</groupId>
<artifactId>errorprone-plugin</artifactId>
<version>1.9</version>
</path>
<path>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.26.1</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
```
In this `error-prone-plugin`, there is the dependency on `auto-service` that
is marked as optional. After removed the `<optional>true</optional>`,
recompiling the plugin and using the new version, I was able to open it in
NetBeans without error \o/
This is just strange that we have no problem with the compilation and in
other IDEs. Also removing the `~/cache/.netbeans` dir had unfortunately no
effect. I even tried a full reinstallation with removal of `~/.cache/netbeans`
and `~/.netbeans`, still the same error was thrown.
So, I close this issue seems it was related to my project and not within
NetBeans directly.
--
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