Eclipse 2019-09 is incompatible with sonarlint 4.2 in macos

  • sonarlint: 4.2 / eclipse: 2019-09 / os: macos 10.15
  • I installed sonarlint 4.2 in eclipse market place, no error during installation, but after reboot as the prompting, there is no sonar tab in preference of eclipse.

who can help on it?

Hi,

Could you please look at Eclipse logs, to see why the plugin is not loaded? Should be in file <workspace>/.metadata/.log

!ENTRY org.sonarlint.eclipse.cdt 4 0 2019-11-15 08:49:55.155
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.sonarlint.eclipse.cdt [1928]
Unresolved requirement: Require-Bundle: org.jsr-305; resolution:=“optional”
Unresolved requirement: Require-Bundle: org.eclipse.cdt.core; resolution:=“optional”
Unresolved requirement: Require-Bundle: org.sonarsource.sonarlint.core.sonarlint-client-api
Unresolved requirement: Require-Bundle: org.sonarlint.eclipse.core
-> Bundle-SymbolicName: org.sonarlint.eclipse.core; bundle-version=“4.2.0.201909192007”; singleton:=“true”
org.sonarlint.eclipse.core [1929]
Unresolved requirement: Require-Bundle: org.jsr-305; resolution:=“optional”
Unresolved requirement: Require-Bundle: org.sonarsource.sonarlint.core.sonarlint-client-api; bundle-version=“4.0.0”

at org.eclipse.osgi.container.Module.start(Module.java:462)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1844)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$2$1.execute(EquinoxContainerAdaptor.java:150)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1837)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1778)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1742)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1664)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)

thanks for your reply, I got the error log as above

I’m not sure of what happened. Could you try to download the update site archive from https://binaries.sonarsource.com/SonarLint-for-Eclipse/releases/org.sonarlint.eclipse.site-4.2.0.201909192007.zip and reinstall from there. You may have to first uninstall/cleanup all SonarLint plugins/features from your Eclipse distribution first, then restart Eclipse with the -clean parameter.