Spring Toolkit Icons Are Marked Only After a Ten Second Delay

I run STS (Kepler / 3.5.1.RELEASE) and experience an annoying problem in which Java editors highlight cases of the / method / etc variable. only after a ten second delay.

This behavior occurs regardless of the following:

  • the number of verification types selected in the settings of Mark Occurrences
  • number of selected project validators
  • or the number of selected event types that I selected

Installing a similarly sized Eclipse Juno on the same machine marks the appearance almost instantly. Other types of editors (like Python) seem to highlight much faster as I expected.

Has anyone else seen this behavior?

+6
source share
1 answer

I just ran into this problem, and I have the latest (at the moment) version of Spring Tool Suite (version: 3.6.3.SR1). The solution was inspired by Kris 's comment, but instead of using a new workspace, you can β€œclear” it first.


Decision

Run STS (or any other Eclipse-based IDE) with the -clean argument (which is equivalent to setting osgi.clean to "true") on the command line. Result (quote):

any cached data used by the OSGi environment and the Eclipse runtime environment will be wiped. This will clear the caches used to store the dependency resolution package and the Eclipse extension registry data. Using this option will force Eclipse to reinitialize these caches.

Example for Windows:
C:\sts-3.6.0.RELEASE\sts.exe -clean


It worked flawlessly!


Alternative solutions

If the solution above did not help, here are the main alternatives:

  • creating a new workspace (as suggested by Chris)
  • clean reinstall Eclipse

More detailed instructions can be found here: Keeping Eclipse Clean

+8
source

Source: https://habr.com/ru/post/973415/


All Articles