Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRefreshing the file list
https://www.eclipse.org/forums/index.php/mv/msg/551159/1138242/#msg_1138242
I use cmake to generate my Eclipes CDT projects. I sometimes add files to my project. After I add a file, but before I "finish" compiling, the new files are invisible. I cannot open them with CTRL-SHIFT-R. I cannot double-click them in the error console to jump to a line number. I just "finish" a compile (even if it fails).
Is there a keyboard (or mouse if necessary) way I can ask Eclipse to refresh the files without compiling? (I'm looking for something faster than running the compiler/linker/cmake/etc).
Thank you,
Chris]]>Chris Stankevitz2013-10-15T02:09:58-00:00Re: Refreshing the file list
https://www.eclipse.org/forums/index.php/mv/msg/551159/1139095/#msg_1139095
Axel Mueller2013-10-15T14:35:21-00:00Re: Refreshing the file list
https://www.eclipse.org/forums/index.php/mv/msg/551159/1142696/#msg_1142696
I tried this:
1. Open an existing eclipse CDT project
2. Use CTRL-SHIFT-r to search for the file test.cpp
3. Verify that test.cpp does not exist
4. using bash, 'touch test.cpp' inside the source tree
5. Press F5 in eclipse
6. Use CTRL-SHIFT-r to search for the file test.cpp
7. test.cpp does not exist
8. Press CTRL-B to start a compile. Await completion.
9. Use CTRL-SHIFT-r to search for the file test.cpp
10. test.cpp does exist!
Based on your response, I was expecting at step 7 to find test.cpp in the file list. I conclude that F5 does not work with my setup (Eclipse Kepler under linux).
Refreshing is then much faster.
]]>Axel Mueller2013-10-24T13:18:29-00:00Re: Refreshing the file list
https://www.eclipse.org/forums/index.php/mv/msg/551159/1167057/#msg_1167057
Marc-Andre Laperle wrote on Wed, 23 October 2013 23:46
Are you clicking on the project first in Project Explorer? You have to select a folder containing your file in the Project Explorer first then F5 will refresh what you selected recursively.
Marc-Andre,
No. I did not use the Project Explorer to select a folder containing my file before pressing F5. I do not even keep open a "Project Explorer" View. I will open a "Project Explorer" View and try your F5 method again.
Unfortunately for me, I dislike using the mouse while writing code. If use of the mouse and project explorer is required for a quick file refresh, I'll stick with the slow 10-step method I outlined earlier.
Thank you for your help,
Chris]]>Chris Stankevitz2013-11-02T11:13:18-00:00Re: Refreshing the file list
https://www.eclipse.org/forums/index.php/mv/msg/551159/1167058/#msg_1167058
Axel Mueller wrote on Thu, 24 October 2013 09:18
You should enable the following:
Preferences: General->Workspace: enable "Refresh using native hooks"
Ahh yes, thank you! I been using eclipse 40 hours a week for years and I just now found this! Thank you!
Chris
]]>Chris Stankevitz2013-11-02T11:15:38-00:00