Trouble with "refresh" on Eclipse

I´m using Eclipse on MaxOSX and I always seem to have problems with a refresh when adding a file, like an image file or a .tmx file. Most of the times it just doesn´t work at all and most of the times I have to open a newly imported .png or .tmx in a text editor, make a change in the file, remove that change so I can save it. Then, most of the time, it works. The same problem when updating code from a repository.

Is this a common problem or is it just me? Is there something I´m missing that can be done? This is starting to get on my nerves…

Try refreshing different folders.

Sometimes it fails on 1 folder, but when I refresh one directory up/down, it works fine.

Eclipse, by default, does not refresh when files are changed externally. You can just press F5 with your project selected, and it will refresh and compile etc. accordingly.

Alternatively you can enable auto refresh in Eclipse, see this answer on StackOverflow.

Edit: I’m not really sure what the default is with the newest versions of Eclipse.

Grunnt: I have that “refresh on access” box ticked, but like a comment on that page wrote: “Although works when you modify file from explorer. it fails to work when files are updated from version control”.

HeroesGraveDev: I guess this is what´s bothering me. Why is such a great program like Eclipse problems with something seemingly easy as a refresh function? :slight_smile:

Now, this isn´t a huge problem. I´m aware of it and I can work around it but it does disrupts my work flow. Especially 2am and my head is buried in some problem and I get a “file not found”. Sometimes that´s just enough to cause an mental meltdown. :wink:

Yeah it is kind of weird, but I guess I got used to it. You could try also ticking the “old” native polling method, which may help you.