Why is Eclipse so slow to save individual JavaScript, HTML, and CSS files?

I am using Spring Eclipse, STS version 3.6.0, which is based on Eclipse Kepler SR2 (4.3.2). Eclipse's performance is usually very good, and if I save a Java file, it is instant. However, when I try to save a JavaScript file, it can take up to 3 seconds and the entire IDE will be frozen during the process, which is very annoying and actually affects performance. I did some digging and apparently there are validators and ones that cause a slowdown, so I tried to disable them, but that doesn't make any difference.

The problem also arises with the CSS and HTML file types, so I am sure it is specifically with the web development plugins. Can anyone suggest a way to fix this? I am ready to disable features to improve save time, if necessary.

Note. I am using the STS stock version - no additional plugins.

+6
source share
2 answers

At first, I thought this was related to git, and disabling it helped a bit (see the old answer below), but after some further use, the problem remained. In the end, I realized that the problem was related to Package Explorer ! If I have selected the Link with Editor button and the package explorer tree is expanded, Eclipse is an eclipse that very slowly saves anything other than Java source code. If I deselect Link with Editor and make sure that the tree is minimized, everything works fine.

Old answer :

Turns out it was related to egit some way. I do not use git integration in Eclipse, so I just disabled git support for the project using the Team->Disconnect command.

+2
source

One possibility is to damage eclipse.project and / or .settings. I experienced a delay of up to 25 seconds. Try deleting this file / folder and creating the project again.

0
source

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


All Articles