Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370956 - Not able to define relative include path using ".." (parent directory) with "workspace_loc"
Summary: Not able to define relative include path using ".." (parent directory) with ...
Status: RESOLVED DUPLICATE of bug 416024
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 275779
  Show dependency tree
 
Reported: 2012-02-08 09:33 EST by Yevgeny Shifrin CLA
Modified: 2013-10-20 15:30 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yevgeny Shifrin CLA 2012-02-08 09:33:39 EST
Build Identifier: 20110615-0604

Hi,

I have the following file structure:
1) workspace location: /home/yevgenys/eclipse_workspaces/cdt8.0.0/temp2
2) directory location which I want to add as an include path:
/home/yevgenys/eclipse_workspaces/cdt8.0.0/dummy_include_path

I don't want to use absolute path. I defined it:
${workspace_loc}/../dummy_include_path

After pressing ok, it was change to //../dummy_include_path and became
"workspace path". 

If I use "WorkspaceDirPath" defined by CDT instead, it works.

Please refer to https://bugs.eclipse.org/bugs/show_bug.cgi?id=353498 for more details.

Thanks,
Yevgeny



Reproducible: Always
Comment 1 Andrew Gvozdev CLA 2012-02-08 10:43:38 EST
Yevgeny, this is not Platform issue. In bug 353498 you requested to clarify description of the variable. *That* would be Platform issue.
I will reclassify this bug.
Comment 2 Yevgeny Shifrin CLA 2012-02-08 11:07:39 EST
Hi,

There are two issues that were obseved 353498 bug:
1) WorkspaceDirPath is no documented but works fine when using "..". 2) "workspace_loc" with ".." is not working.

I am a bit confused which ticket should handle what :-)

Thanks,
Yevgeny
Comment 3 Andrew Gvozdev CLA 2012-02-08 11:38:23 EST
I observe 3 issues there:
1) WorkspaceDirPath is not documented -> bug 353498 (see also its subj)
2) "workspace_loc" with ".." is not working -> this bug
3) The complain that ${workspace_loc} is not fully documented, specifically, it is not clear how to use arguments -> Platform folks would need to improve its description. I thought your focus was on that one.
Comment 4 Yevgeny Shifrin CLA 2012-02-08 15:01:41 EST
(In reply to comment #3)
> I observe 3 issues there:
> 1) WorkspaceDirPath is not documented -> bug 353498 (see also its subj)
If you look at bug 353498, the original subject was: "Not able to define relative include path using ".." (parent directory)" Once I was able to use WorkspaceDirPath instead, I lowered the severity and changed the subject. In comment 3 you said: "But ${workspace_loc}/../dummy_include_path should also work which makes this report a bug." This is why according to my understanding issue 2) is not solved. 

> 2) "workspace_loc" with ".." is not working -> this bug
'this bug' pointed me to https://bugs.eclipse.org/bugs/show_bug.cgi?id=3 which does not seem to be related to our issue.

> 3) The complain that ${workspace_loc} is not fully documented, specifically, it
> is not clear how to use arguments -> Platform folks would need to improve its
> description. I thought your focus was on that one.
This is probably additional issue.

Please let me know if I am missing something.

Thanks,
Yevgeny
Comment 5 Yevgeny Shifrin CLA 2012-02-08 15:11:02 EST
After looking a bit I understand my confusion with your previous answer. Editor by mistake created a hyperlink to bug number 3 :-)

I agree with you that there are 3 issues as you described. 

* bug 353498 for issue "1" - CDT scope

* this bug should handle issue "2" - Is it CDT or platform issue?

* new bug is required for issue "3" - I can create a new bug for this. I am not sure what needs to be improved in the description.

Thanks,
Yevgeny
Comment 6 Andrew Gvozdev CLA 2012-02-08 15:20:18 EST
(In reply to comment #5)
> * this bug should handle issue "2" - Is it CDT or platform issue?
This is CDT. CDT control interprets the expression as a whole.
Comment 7 Andrew Gvozdev CLA 2013-10-20 15:30:17 EDT
Fix coming for bug 416024 should resolve this issue.

*** This bug has been marked as a duplicate of bug 416024 ***