SonarLint update to 10.2 Eclipse LSP4J failure

Please provide

  • Operating system: Windows 10
  • SonarLint plugin version: 10.2.0.81875
  • Programming language you’re coding in: Java, JS, TS
  • Eclipse: 2022-12
  • Is connected mode used:
    • Connected to SonarCloud

After updating SonarLint 10.1 to 10.2.0.81875, eclipse 2022-12:

  • started acting slowly during startup
  • has such errors in the logs
!ENTRY org.eclipse.wildwebdeveloper.xml 4 0 2024-06-07 16:50:16.756
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.wildwebdeveloper.xml [508]
  Unresolved requirement: Require-Bundle: org.eclipse.lsp4j; bundle-version="0.9.0"
    -> Bundle-SymbolicName: org.eclipse.lsp4j; bundle-version="0.20.1.v20230228-1531"
       org.eclipse.lsp4j [359]
         Unresolved requirement: Import-Package: com.google.gson.annotations; version="[2.9.1,2.11.0)"
  Unresolved requirement: Require-Bundle: org.eclipse.lsp4e; bundle-version="0.13.4"
    -> Bundle-SymbolicName: org.eclipse.lsp4e; bundle-version="0.16.0.202303141217"; singleton:="true"
       org.eclipse.lsp4e [357]
         Unresolved requirement: Require-Bundle: org.eclipse.lsp4j; bundle-version="[0.20.0,0.21.0)"
           -> Bundle-SymbolicName: org.eclipse.lsp4j; bundle-version="0.20.1.v20230228-1531"
         Unresolved requirement: Require-Bundle: org.eclipse.lsp4j.jsonrpc; bundle-version="[0.20.0,0.21.0)"
           -> Bundle-SymbolicName: org.eclipse.lsp4j.jsonrpc; bundle-version="0.20.1.v20230228-1531"
              org.eclipse.lsp4j.jsonrpc [362]
                Unresolved requirement: Import-Package: com.google.gson.annotations; version="[2.9.1,2.11.0)"

	at org.eclipse.osgi.container.Module.start(Module.java:463)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1852)
	at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1845)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1786)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1750)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1672)
	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)

  • has ‘Wild Web developer’ functionality not working.

Could this be related somehow to the SonarLint update or it’s some coincidence?
I’ve found this issue but it was fixed in 10.2… [SLE-793] - Jira

Hey @lrozenblyum,

thank you for reaching out.

We removed the LSP4J dependency on SLE 10.2 from our Update Site so that it would not conflict with other plug-ins like WWW.

It could be that after the update of SonarLint for Eclipse, the bundle from the old plug-in version is still lying around in your installation. We shipped LSP4J version 0.22, so it might be worth looking in the plugins directory for that.
Eclipse ain’t that tidy and I often encounter it not cleaning up after plug-in updates/uninstallations.

If possible, remove the JAR (back it up) and run Eclipse. It might also be possible that the bundle we provided was removed, but the one (still) lying around is coming from another Eclipse plug-in - that I cannot tell based on the little information provided.

Otherwise, as a meaning of last resort, start from a fresh installation of Eclipse. But that I would only suggest as a last resort.

If the error still persists, then please come back and we try to find the solution for it :smile:

Best,
Tobias

1 Like

Hello @tobias.hahnen!
The eclipse plugins directory didn’t contain LSP4J of 0.22 version.
I struggled a little bit with removing the existing LSP4J plugins and it made things only worse.
So in the end I’ve started up with a fresh installation and it went pretty smoothly.
Thanks for your support.

Hi @lrozenblyum,

good to hear, that you could resolve that issue :slight_smile:
If something else crosses your way, that is hindering you on working with SonarLint, feel free to reach out again :sonarlint_eclipse:

Best,
Tobias