| Summary: | Project source excludes does not work | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Vaidotas Radžius <vradzius> | ||||
| Component: | cdt-core | Assignee: | Alain Magloire <alain> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P2 | ||||||
| Version: | 2.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 2000 | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 72435 | ||||||
| Attachments: |
|
||||||
|
Description
Vaidotas Radžius
> Problem: > 1.Look at the indexer problems list and you find out that files under > TempInc folder was indexed. This is an indexer problem, it does not look at the exclutions pattern and just recursively go through. So let's make a new PR, to track this particular problem of the indexer(bogdan this is for you) : https://bugs.eclipse.org/bugs/show_bug.cgi?id=72435 > 2. Also you find that in the C/C++ Project tree view those files are shown. Yes they are, look closely the icon is different(icon for non-c-resources). You can filter them out by checking the filter "do not show non-c-resources" See "filters" drop down on the C/C++ Project view. The idea here is that folks were confuse when they did not see the files, say Readme, log.txt etc ... so by default the files are visible. > 3. Also there is another problem that when you add the same project folder > another time to C/C++ Project paths. The contents of project in C/C++ > Projects > tree view gets dublicated. You can find to the same folder with the same > files > twice or maybe more, but on the file system and in navigator view there is > > only one. Sorry, you have lost me on this one. How did you manage to add a second time the project as a source folder, give me more info on this particular problem, as I do not follow. to me!! 3. Problem I found by directly editing .cdtproject file. I do this way, because this is faster way to add includes, definitions and excludes. By copy->paste from another project. Example: <pathentry excluding="Release/TempInc/*.*" kind="src" path=""/> Paste it to the newly created .cdtproject file. Created attachment 14122 [details]
Second problem screenshot
As You see from the screen shot I add here. my excluded source files are shown
here thought i exclude them from my project in C/C++ project properties window.
> 3. Problem I found by directly editing .cdtproject file.
> I do this way, because this is faster way to add includes, definitions and
> excludes. By copy->paste from another project.
> Example: <pathentry excluding="Release/TempInc/*.*" kind="src" path=""/>
> Paste it to the newly created .cdtproject file.
If you do that no checking is done. So you propably have two source entries
probably something like this.
<pathentry excluding="Release/TempInc/*.*" kind="src" path=""/>
<pathentry kind="src" path=""/>
Basically duplications of pathentries.
Lets accept the bug because the Core Model should probably
ignore this error for certain entries like Source folder and
the output entries.
On the TODO list. Meanwhile check again your .cdtproject for such duplications
> <pathentry excluding="Release/TempInc/*.*" kind="src" path=""/>
> <pathentry kind="src" path=""/>
>
> Basically duplications of pathentries.
In the head I've put some code to detect the duplication and issue
a warning. Only __one__ of the source entries will be taken removing
the duplication. It will be up to the user to fix the corrupted ".cdtproject"
Fix in the head.
|