Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353511 - Not able to define source location using ".." (parent directory)
Summary: Not able to define source location using ".." (parent directory)
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.7.1   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 4.4 M6   Edit
Assignee: Szymon Ptaszkiewicz CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-01 12:05 EDT by Yevgeny Shifrin CLA
Modified: 2014-05-15 07:22 EDT (History)
5 users (show)

See Also:


Attachments
Fix (1.23 KB, patch)
2012-02-08 07:43 EST, Serge Beauchamp CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yevgeny Shifrin CLA 2011-08-01 12:05:02 EDT
Build Identifier: 20110615-0604

Hi,

I am trying to define source folder location (Linked Folder) using variable with ".." (parent directory). It does not work, it does not understand "..".


The following path is resolved: WORKSPACE_LOC/dummy_src3
The following path is not resolved: WORKSPACE_LOC/../dummy_src2

Thanks,
Yevgeny 


Reproducible: Always
Comment 1 Yevgeny Shifrin CLA 2011-11-04 06:24:00 EDT
Hi guys,

Is there any chance supporting this for 8.0.2? This is a very important functionality (using relative path with "..") that is not working.

Thanks a lot,
Yevgeny
Comment 2 Sergey Prigogin CLA 2012-02-07 12:45:43 EST
This issue is not CDT-specific, is it?
Comment 3 Serge Beauchamp CLA 2012-02-08 04:38:34 EST
Hi, 

I can confirm that this does not work if you use the text field in the 'New Folder' dialog.

A workaround is to put a dummy value as the resource location (say, "WORKSPACE_LOC"), then right click on the newly created folder in the Package Explorer, choose "Properties", in the 'Resource' section, push on the button 'Edit...' along the 'Location:' section, and enter "WORKSPACE_LOC/../dummy_src2".
Comment 4 Serge Beauchamp CLA 2012-02-08 07:43:37 EST
Created attachment 210723 [details]
Fix

Here's a fix for this bug.
Comment 5 Serge Beauchamp CLA 2012-02-08 07:45:31 EST
Szymon, can you review the fix please?
Comment 6 Yevgeny Shifrin CLA 2012-02-08 08:14:56 EST
Guys,

Could you please make an effort submit it for indigo sp2 release that is very close :-) ?

Thanks,
Yevgeny
Comment 7 Yevgeny Shifrin CLA 2012-04-03 17:25:01 EDT
Hi,

Is there a chance to get this fix solved for next release (JUNO)? It seems like there a fix for this issue.

Thanks a lot,
Yevgeny
Comment 8 Yevgeny Shifrin CLA 2013-08-20 05:24:06 EDT
Hi guys,

The fix was provided almost a year and a half ago. It is really a shame that it is not part of Eclipse release? Any chance submitting it to the next eclipse release?

Thanks a lot,
Yevgeny
Comment 9 Yevgeny Shifrin CLA 2014-02-20 02:26:20 EST
Hi again,

The fix for this was provided two years ago !!! Does anyone track this bug ??? Why can't it be committed to eclipse release?

Regards,
Yevgeny
Comment 10 Szymon Ptaszkiewicz CLA 2014-02-20 12:45:21 EST
The overall idea is ok, but we should not use the linkTarget field as a temporary variable.

Fixed in master:

http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=b53f68049a555b06fa69bdd2d8a28e96d2b2526d
Comment 11 Yevgeny Shifrin CLA 2014-02-20 13:22:28 EST
Hi,

Thank you for handling this.

Best regards,
Yevgeny
Comment 12 Szymon Ptaszkiewicz CLA 2014-03-04 10:40:29 EST
Verified in I20140303-2000.
Comment 13 Markus Keller CLA 2014-05-15 06:39:03 EDT
This broke external file system providers, see bug 434943.