16

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?

0

4 Answers 4

15

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.

11

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...

3
  • There are indeed 2 bindings for F5: Windows > Refresh and Debugging > Step into. Nothing is running and I'm not in the Debug perspective. I do not think it's related to CSS but I do have it often after the message 'Resource is out of sync' (which is of course a trigger to hit F5). Oct 23, 2012 at 18:52
  • 3
    +1 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-Info". Stopping the debug session will re-enable F5 for refresh.
    – Gray
    Feb 13, 2013 at 18:07
  • 1
    Also see Eclipse bug 246483 (from 2008)
    – hfs
    Feb 5, 2014 at 10:01
1

Check the GeForce Experience shortcuts, disable Alt + F5.

0
0

I'll just leave this here in case it affects anyone.

If you are adding a file/folder but it's filtered out in Package Explorer > Filters , refreshing will work but obviously not show the added resource

This might look like a silent failure (it's not; it's doing what you asked, if only by default in some cases).

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.