Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

F5 refresh not always available/working in eclipse

Tags:

eclipse

Usually if I want to refresh a project (or folder, Working Set, ...) in eclipse I just select the project and hit F5. Sometimes however nothing happens after hitting F5. When I then right-click the project I see in the context menu the option Refresh and not Refresh... (F5).

So for some reason the current state or such of the project does not allow F5 to refresh. I have this issue now in Indigo but this was already there in at least the 2 previous versions of eclipse.

Is this a bug or is there a (valid) reason why F5 is sometimes not available?

like image 361
Stijn Geukens Avatar asked Oct 23 '12 11:10

Stijn Geukens


People also ask

How do you refresh in Eclipse?

When a new file is created in Eclipse you might need to refresh the Eclipse project to see the new file. This refresh process can take place automatically. To set auto-refresh, go to window → preferences → general → workspace and check the "Refresh using native hooks or polling" check-box.

How do I refresh Eclipse on Mac?

Hi, I'm using the latest version of Eclipse on Mac 10.6. 3. When you need to refresh a view, the menu suggests clicking "F5".


2 Answers

So for some reason the current state or such of the project does not allow F5 to refresh.

If you have a debugging session going (even if it is in the background and you are in a different perspective) the F5 is disabled for Refresh and mapped to "Step-Into".

Stopping the debug session will re-enable F5 for Refresh.

like image 196
Gray Avatar answered Sep 18 '22 15:09

Gray


My guess would be that the F5 key is mapped to multiple actions, where "Refresh" has the lowest priority. You can see the mapping under Preferences > General > Keys

By default F5 is mapped to "Refresh" and "Step into" while debugging, there can be more mappings depending on which plugins you use.

But in another note:

Even if the context menu lists F5 as shortcuts, refreshing often doesn't work for me that way (especially when I have an 'out-of-sync' error from CVS). I got used to rightclick refresh my project as it always works...

like image 27
moeTi Avatar answered Sep 16 '22 15:09

moeTi