Eclipse resolve “resource is out of sync with the filesystem” permanently

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). This will re-sync any external changes to the file system and eclipse would now know what exactly is in your workspace. But it is cumbersome to do this every time any of your file changes due to external agent.

The best way would be to let Eclipse automatically handle any external changes in file system. So that when you compile the code it never gives the error “resource is out of sync with the filesystem”.

Do do this, select following option:

Window -> Preferences -> General -> Workspace

Now depending on your version of Eclipse you will get either of following options in workspace window.

  • Refresh Automatically
  • Refresh using native hooks or pooling

One thing we should highlight here is that Eclipse uses polling mechanism to check whether there was any change in the filesystem. This might have a performance impact. So choose wisely. Frankly I am using this feature for quite sometime now and I don’t see that much of impact.

View Comments

Share
Published by
Viral Patel
Tags: eclipse eclipse feature eclipse tricks

Recent Posts

  • Java

Java URL Encoder/Decoder Example

Java URL Encoder/Decoder Example - In this tutorial we will see how to URL encode/decode…

4 years ago
  • General

How to Show Multiple Examples in OpenAPI Spec

Show Multiple Examples in OpenAPI - OpenAPI (aka Swagger) Specifications has become a defecto standard…

4 years ago
  • General

How to Run Local WordPress using Docker

Local WordPress using Docker - Running a local WordPress development environment is crucial for testing…

4 years ago
  • Java

Create and Validate JWT Token in Java using JJWT

1. JWT Token Overview JSON Web Token (JWT) is an open standard defines a compact…

4 years ago
  • Spring Boot

Spring Boot GraphQL Subscription Realtime API

GraphQL Subscription provides a great way of building real-time API. In this tutorial we will…

4 years ago
  • Spring Boot

Spring Boot DynamoDB Integration Test using Testcontainers

1. Overview Spring Boot Webflux DynamoDB Integration tests - In this tutorial we will see…

4 years ago