Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353184

Summary: Problems with Resource Filters in combination with user defined PWD/CWD path
Product: [Tools] CDT Reporter: Sebastian Wagner <sebastians_mail>
Component: cdt-coreAssignee: Project Inbox <cdt-core-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: sebastians_mail, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Sebastian Wagner CLA 2011-07-27 05:00:12 EDT
Build Identifier: 20110615-0604

If I try to use a user defined CDW/ PWD path, this doesn't work correctly if I have an "include only" resource filter in parallel. It seems that the value of the CWD/PWD path is saved correctly, but it doesn't appear correctly if I open the respective properties window.



Reproducible: Always

Steps to Reproduce:
1. open Eclipse CDT, configuration downloaded from the homepage, no further plugins
2. create a C Project (e.g. Cross Compile, GCC)
3. go to the project preferences and modify the PWD path, apply changes -> appears yellow and shows "USER-CONFIG"
4. go to the Project Resource filters in the same window and add any "Include Resource Filter", choose option "recursive", I just selected "jave expression" and typed a "c" as the filter
5. apply changes and close preferences window
6. open the project preferences again - > in the environment tab you see that the path of PWD shows empty
7. toggle the option "recursive" of the created resource filter, apply changes and switch back to the environment variables -> the PWD path shows correctly if "recursive" is disabled and empty if "recursive" is enabled (you don't need to close the window doing these steps)

Please let me know if you need further information.
Comment 1 Sebastian Wagner CLA 2011-07-27 08:08:14 EDT
Initially I thought that the problem appears only for "include filters". Now I tried to create a workaround and started to develop an inverse filter.

But now when I try the use this exclude filter the same problem occurs:
(.*\.(?!(lik$|mk$|s$|c$|h$|err$|lst$|map$|s28$|r34$)).*) 

As soon as I remove the "?!" it seems to work and the CWD/PWD path shows correctly... As for inlcude filters it also helps to disable "recursive" to make the problem disappear.