This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 171685 - Unable to filter files for C++/fortran project
Summary: Unable to filter files for C++/fortran project
Status: REOPENED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All Other
: P2 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-08 09:27 UTC by apartment06
Modified: 2014-04-14 14:31 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description apartment06 2009-09-08 09:27:44 UTC
Bug/ feature request for Netbeans6.7 on AIX 5.3. 

I use Netbeans for my project that has C++ and Fortran code. 

I was using Netbeans 6.5 and it worked just fine. But recently, I switched to 6.7 version and am now encountering the
following problem: 

I have an exisiting code base , say "foo" which has C++ as well as Fortran code. This directory also has some other
files such as README, config, Makefile, notes etc and several obsolete files such as file.f0 etc. 

In 6.5, if I create a new project from existing project folder, it used to filter out those files and include only, for
instance, files with extensions .cpp, .cc, .C, .f etc.  This worked out pretty well for me. 

But in 6.7 , this filter option is missing. I even tried selecting 'manual project creation' option to specify these
files but can't find this option. As a result, the project it creates has a lot of junk files. This is a folder from CVS
and (I don't want to delete those files from cvs as those are still needed for reference by the others)  

Is there a workaround for this problem? Your help would be greatly appreciated.
Comment 1 Milan Kubec 2009-09-08 09:47:57 UTC
Please evaluate. Thanks.
Comment 2 Thomas Preisler 2009-09-09 01:59:21 UTC
Have you tried to filter out files using the file filter in Tools|Miscellaneous|Files|Files ignored by the IDE? You can also filter out folders in the project's 
properties under Ignore Folders Pattern.
Comment 3 apartment06 2009-09-15 10:45:45 UTC
sorry for a late reply. 

Actually I saw the option "Ignored patterns" in Tools ->Option ->Misc->Files 

I am not familiar with the pattern syntax. The current default pattern syntax in that field is:  
^(CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!htaccess$).*$ 

I will review the regular expression syntax to add new filters to this list... I want to filter out the following files
*.out, *.f0, *.C.x . Perhaps the following syntax will work (not tested yet)  |.out|.C.x|.f0 . 

But in general, it would save time if the old filter option could be reinstated in the Open Projects dialog. It is much
more convenient than the regular expression filter. 

Thanks

Comment 4 Thomas Preisler 2009-09-29 01:13:06 UTC
I consider this fixed. We probably won't go back to the old notation. Regular expressions are used other places in the IDE so it makes sense to use it here too.
Comment 5 apartment06 2009-09-29 04:33:30 UTC
Well, I think it is still (an annoying) user inconvenience so reopening it. 

Here is the reason for that: 

With reg expressions one needs to specify a list of files that should be ignored. 
Instead, in this case, we require a feature that actually lets the user to include
files in the project that he specifies. Example it is much more convenient to 
specify a list of filetypes ".cpp, .h, .f" as the files to consider (and thus ignore *all* the rest)
then to specify a list of files to ignore! . 

My project generates a lot of files e.g. .lst, some .dat , some folders with misc file extensions (without .C, .h, .f)
etc when its built. Netbeans 6.7 just includes these newly generated files in the project. 

Comment 6 Thomas Preisler 2009-10-23 18:43:42 UTC
We made a very important switch in 6.7 of how directories are handled in unmanaged projects. Prior to 6.7 the project view was static and didn't reflect any 
changes in the directories and you had to manually add/remove files to keep up with changes. In 6.7 directories in project view are dynamically updated to 
reflect all changes and we now show 'all' files by default but  allow some filtering for files you don't want to see and using the built-in filtering mechanism in 
NB. You want a 'positive' filter instead of a 'negative' filer. That's fair. Perhaps we could add such a filter somewhere and have the user decide whether they 
want 'positive' or 'negative' filtering.

I will turn your concern into an enhancement request so we don't forget. 
Comment 7 apartment06 2009-11-30 23:16:05 UTC
(In reply to comment #6)
>... You want a 'positive' filter instead of a 'negative' filer. That's fair.
> Perhaps we could add such a filter somewhere and have the user decide whether
> they 
> want 'positive' or 'negative' filtering.

Can this feature be implemented in the upcoming 6.8 release due at around xmas time? We really need this ability and that is a major reason we are still using netbeans 6.5

Thank you!
Comment 8 Thomas Preisler 2009-11-30 23:20:07 UTC
Too late for 6.8. It is pretty much done. I will up priority to P2 and hopefully it can be done early in 6.9.
Comment 9 apartment06 2011-02-25 09:05:48 UTC
(In reply to comment #8)

Any updates on when this feature can be introduced? We really need this. 

> Too late for 6.8. It is pretty much done. I will up priority to P2 and
> hopefully it can be done early in 6.9.