Community
Participate
Working Groups
Build Identifier: Indigo Build id: 20110609-2236, CDT 8.0.0 After upgrading from Helios to Indigo. "Link to editor" works in Navigator but fails in Project Explorer and C/C++ Explorer. As described in https://bugs.eclipse.org/bugs/show_bug.cgi?id=320473#c14 it seems that the tree expansion does not work. Bug only happens for C/C++ projects. No problem with simple resource projects. Reproducible: Always
It works for me with a sample hello world project. Please provide a test case which fails reproducibly. Do you have any other plugins installed except Eclipse and CDT?
(In reply to comment #1) > It works for me with a sample hello world project. > Please provide a test case which fails reproducibly. It depends on the depth of the file tree. src sub1 file1-works sub2 file2-works sub3 file3-does_not_work
Hm, still cannot reproduce. I tried on Windows and Linux, a variety of file types and file tree depths. Is there maybe something in the log?
Created attachment 202507 [details] Sample project - Import this project into your workspace and open it (do not expand project tree) - Open Resource: Menu Navigate->Open Resource .. or Shift-Ctrl-R and select file1.cpp => file1.cpp should be opened in the editor but nothing happens in the Project Explorer If it still does work as expected for you then close and reopen the project (close file1.cpp before).
Still works for me. I even installed AnyEdit Tools because the .settings in the sample project indicated that you have that installed, but still no change in behavior.
Created attachment 202518 [details] Preferences I tried with a complete new workspace and my sample project does indeed work as expected. However, after importing the preferences from my actual workspace the problem occured. Unfortunately, I do not know which preference is the cause.
When I enable the preference C/C++ > Appearance > Show source roots at top of projects, it starts to fail.
(In reply to comment #7) > When I enable the preference C/C++ > Appearance > Show source roots at top of > projects, it starts to fail. Did you enable or disable it? It starts to fail for me when I disable the preference.
(In reply to comment #8) > (In reply to comment #7) > > When I enable the preference C/C++ > Appearance > Show source roots at top of > > projects, it starts to fail. > Did you enable or disable it? It starts to fail for me when I disable the > preference. Yes, when I disable this preference (my default because of bug #355601 ) it fails. Enabling makes it work again.
(In reply to comment #8) > Did you enable or disable it? It starts to fail for me when I disable the > preference. You are right. It's enabled by default and I disabled it.
Fixed in master and cdt_8_0.
*** cdt git genie on behalf of Anton Leherbauer *** Bug 356275 - Project Explorer: Link with Editor does not work for C/C++ projects [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=e0bca93e1a44e4bb4bb8cc201d8bf26f1f25b939
*** cdt git genie on behalf of Anton Leherbauer *** Bug 356275 - Project Explorer: Link with Editor does not work for C/C++ projects [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=ad878d86aa6fc8bce0c734573d6332b8cfba3afa