Can Eclipse refresh resources automatically?

后端 未结 13 1556
长发绾君心
长发绾君心 2020-11-27 11:15

Eclipse (3.4.2 with PyDev) deals with out-of-sync resources (files that have been edited outside of the IDE) differently from other IDEs that I\'ve used, where only resource

相关标签:
13条回答
  • 2020-11-27 11:23

    Out of synchronization problem is common in eclipse IDE so you have to check this option windows -> preference -> Workspace -> refresh using native hooks or polling.

    0 讨论(0)
  • 2020-11-27 11:26

    Perhaps you should add a feature request on the eclipse site:

    https://bugs.eclipse.org/bugs/

    I think it would be a great idea to add a preference for automatically refreshing out of date resources.

    0 讨论(0)
  • 2020-11-27 11:28

    There is a global refresh - have nothing (or everything) selected in the package explorer and press F5 (or right-click on empty space and select Refresh). Of course, this could take rather long if you have large projects.

    0 讨论(0)
  • 2020-11-27 11:28

    Eclipse Helios possesses a built in refresh feature at Preferences > General > Workspace. It's in the same spot where you disable automatic builds. Select refresh automatically. A plugin with the same functionality is Andrei Loskutov's Filesync Plugin. The update site address is: http://andrei.gmxhome.de/eclipse/. During installation, select Eclipse 3.5-3.7 plugins > FileSync.

    0 讨论(0)
  • 2020-11-27 11:34

    This issue will be fixed in Eclipse 3.7 (Indigo). While "Refresh Automatically" does eventually bring resources back into sync, the refresh hook only exists for Windows, so on Linux and Mac OS it has to poll the filesystem periodically.

    From 3.7 there's a new preference Settings > General > Workspace > Refresh On Access (aka Lightweight Refresh). This preference causes Eclipse to automatically refresh resources when it discovers that they're 'out-of-sync'. When opening, reading or searching files, it'll prevent out-of-sync errors from occurring.

    See also: https://bugs.eclipse.org/303517

    0 讨论(0)
  • 2020-11-27 11:34

    Even if the solutions proposed by others perso are indeed correct, you have a "Refresh All" plugin for Eclipse. Simply add the Update page to your Eclipse list of update sites to install it in your IDE.

    0 讨论(0)
提交回复
热议问题