Avoiding “resource is out of sync with the filesystem”

前端 未结 10 1683
梦如初夏
梦如初夏 2020-11-29 15:22

I develop Java code with Eclipse and regularly get this message:

resource is out of sync with the filesystem.

Right-click > Refr

10条回答
  •  清酒与你
    2020-11-29 16:13

    You can enable this in Window - Preferences - General - Workspace - Refresh Automatically (called Refresh using native hooks or polling in newer builds)

    The only reason I can think why this isn't enabled by default is performance related.

    For example, refreshing source folders automatically might trigger a build of the workspace. Perhaps some people want more control over this.

    There is also an article on the Eclipse site regarding auto refresh.

    Basically, there is no external trigger that notifies Eclipse of files changed outside the workspace. Rather a background thread is used by Eclipse to monitor file changes that can possibly lead to performance issues with large workspaces.

提交回复
热议问题