In my traces I see that SonarLint slows down the startup of the Eclipse IDE by more than 600 ms. It is on the top of my list of activators:
See https://www.vogella.com/tutorials/EclipsePerformance/article.html#using-the-build-in-tracing-facilities-of-eclipse how to trace this yourself.
Most likely you are doing lots of things in your activator. Could you move that initialization to an OSGi service or do it lazy?
Best regards, Lars
Thanks for the feedback. I created a ticket that we will try to fix during the next sprint:
Thanks. Looking forward for this. Lets me know if you need input. For inspiration, see https://github.com/eclipse/dartboard/issues/114 and https://github.com/eclipse/dartboard/commit/39b6e6f7c2ff7a2ac2ab7f27679c199894c02531 where we move to use OSGI services for Dartboard.
The OSGi annotations requires to activate “Generate descriptors from annotated source” in the preference under Plug-in Development -> DS Annotations.
I have fixed the issue in SonarLint master (it should be released next week). Feel free to test using this artifact:
Note that I have not used OSGi services, because I have not found a way to properly react to “close” events to cleanup listeners. So I’m still relying on plugin activator, but moved slow startup code to a separate job (I found several plugins doing the same).
Looks awesome, here are my new times:
Thanks Julien from ~650 ms to ~40 ms is awesome
When is this change available via the public update site?
It already is, SonarLint for Eclipse 5.0 was deployed last week (2020-02-18) to the public release update site.
The version number listed on https://www.sonarlint.org/eclipse/ says 4.3, updated Nov 2019. Was the site text just not updated?
Indeed, the product Web site is not up-to-date (yet).
But the version it links to is correct? It’s just a text problem?
Yup, this is only an issue with the text of the link: it points to the Eclipse Marketplace which holds the latest version, regardless of the version displayed on the site.
The link you posted is 404, already by this morning.
Should be https://marketplace.eclipse.org/content/sonarlint instead ?
To be completely accurate, the URL I posted is the one that shall be used in the Eclipse update site management window - it returns a 404 when called by a browser because there is no
index.html, however it does contain a
compositeContent.xml file as expected by the Eclipse P2 client.
Ok, thanks for clarification.