Hi,
since the SonarLint update to 7.30 we’re getting errors during file analysis. From the SonarLint console:
Error while fetching and matching server issues
java.lang.NoClassDefFoundError: org/eclipse/jgit/util/StringUtils
at org.sonarlint.eclipse.core.internal.vcs.VcsService.lambda$0(VcsService.java:106)
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705)
at org.sonarlint.eclipse.core.internal.vcs.VcsService.electBestMatchingBranch(VcsService.java:103)
at org.sonarlint.eclipse.core.internal.vcs.VcsService.getServerBranch(VcsService.java:125)
at org.sonarlint.eclipse.core.internal.tracking.ServerIssueUpdater$IssueUpdateJob.run(ServerIssueUpdater.java:98)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jgit.util.StringUtils cannot be found by org.sonarlint.eclipse.core_7.3.0.44160
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:519)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 6 more
I’ve noticed that the log output is rather new and that JGit is listed as optional dependency in the projects Manifest file.
Versions used:
Eclipse: 2021-03 (4.19)
SonarLint: 7.3.0
SonarQube: 8.9.5
Oliver