Avoiding “resource is out of sync with the filesystem”

前端 未结 10 1668
梦如初夏
梦如初夏 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:00

    Just right click on the file or on the project and click Refresh. The error will vanish. I also faced the same issue and it worked for me.

    0 讨论(0)
  • 2020-11-29 16:05

    enter image description hereWindow -> Preferences -> General -> Workspace

    0 讨论(0)
  • 2020-11-29 16:05

    A little hint. The message often appears during rename operation. The quick workaround for me is pressing Ctrl-Y (redo shortcut) after message confirmation. It works only if the renaming affects a single file.

    0 讨论(0)
  • If you are a regular Eclipse user than you might have got this error many times. The error simply says, “you’ve made changes in files in your workspace from outside eclipse”. The simplest solution would be to select the project and press F5 (Right click -> Refresh).

    if you need more explanation you can read from this web site

    0 讨论(0)
  • 2020-11-29 16:07

    I was not able to resolve this error by either refresh or by turning on "native polling" workspace feature. Turned out my project was also opened in two instances of eclipse. Once I closed the other instance, the error went away. So make sure your project is only opened at one place if you are seeing this error.

    0 讨论(0)
  • 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.

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