| Summary: | Define how to display include paths in Project Explorer and status bar | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Alex Freidin <freidin.alex> |
| Component: | cdt-core | Assignee: | Project Inbox <cdt-core-inbox> |
| Status: | NEW --- | QA Contact: | Jonah Graham <jonah> |
| Severity: | normal | ||
| Priority: | P3 | CC: | jamesblackburn+eclipse, yevshif |
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 345140 | ||
|
Description
Alex Freidin
Good summary. (In reply to comment #0) > As of CDT 7.0.1, CDT represents its resources different than other > tools. In short, when dealing with core.resources Workspace paths I think we should be consistent with the platform tooling. When dealing with absolute paths, we can use our own markup. Mixing of path types by string concatentation should be discouraged. Examples like: ${workspace_loc}/ProjectA/path may work for one user, but won't work for other users, and this risk of incompatibility is non-obvious. Relating to (4), both files and folders appear different in the status bar for C/C++ projects than in other projects. Even in C/C++ project, different files are displayed differently in the status bar.
Ah, to add to the main topic, there are also paths like ${project_loc:<resource path>}, ${project_loc}/<path> and build relative paths like ../<path>.
(In reply to comment #2) > Ah, to add to the main topic, there are also paths like ${project_loc:<resource > path>}, ${project_loc}/<path> and build relative paths like ../<path>. project_loc should _never_ be used. That corresponds to the currently _selected_ project. As this changes as you click around, the results isn't very useful (and the IDE doesn't keep a cache of the last selection...) (In reply to comment #3) > project_loc should _never_ be used. That corresponds to the currently > _selected_ project. As this changes as you click around, the results isn't > very useful (and the IDE doesn't keep a cache of the last selection...) Nevertheless, it appears working and the makefile is correct. The path keeps pointing to the same project. Even expanding such project when another project is selected shows the correct include path. Selecting other project and then Build All generates the correct makefile. Do you have a counter example? (In reply to comment #4) Ah you've probably given it an argument. Using concatenation won't work: ${project_loc}/<path> You're right, it doesn't work. I apparently had another include path to the same location. Both ${project_loc:/src} and ${project_loc}/src do not resolve correctly. It should be restricted then.
|