Bug 57462 - broken regexp for included files in python project
Summary: broken regexp for included files in python project
Status: RESOLVED NOT A BUG
Alias: None
Product: kdevelop
Classification: Applications
Component: scriptproject (show other bugs)
Version: 3.0.0a4
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-20 02:34 UTC by Stuart
Modified: 2003-12-17 08:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart 2003-04-20 02:34:44 UTC
Version:           3.0.0a4 (using KDE KDE 3.1)
Installed from:    RedHat RPMs
OS:          Linux

After creating an imported python project it includes all python files in the project directory and subdirectories, after changing the include expression from '*.py' to 'mtg*.py' to limit this action *NO* files are included. '*mtg*.py' causes the inclusion of ALL files, not only those that match the expression. (there are definately mtg*.py files included when using *.py)

(changed in 'project->project options->script project options')

This makes it very hard to maintain a meaningfull python project, as all files (not just rhe ones desired) become included in the project, and therefore in the class browser, etc.

It would also be nice to be able to provide a list of expressions.
eg, 'mtg*.py; testrun.py; lib/lib*.py'
Comment 1 Amilcar do Carmo Lucas 2003-09-19 21:20:20 UTC
Can you retest with the latest CVS? 
Comment 2 Jens Dagerbo 2003-12-17 08:51:11 UTC
I can verify this behaviour. It is however debatable if this is a bug or not.

The reason for the confusion is that the wildcard matching isn't done against the filename, but against the full path of the file. 

The reporter's project path(see bug #57461) is "/home/stuart/mtg2", and clearly all .py files under this path will match '*mtg*.py'.

It IS possible to define a list of expressions, but the separator isn't ';' it is ','

So, the reporters wish of 'mtg*.py; testrun.py; lib/lib*.py' should work if written something like: '*mtg???.py,*testrun.py,*lib/lib*.py' - where the '???' sequence in the first pattern clearly being the weak case..

IMHO, there is no "bug", it works as intended. However, it clearly needs alot of improvement. Hopefully the interest for this will come, but for now I think we can close this one.