Page 1 of 1
Cannot use "Import Files From Directory"
Posted: Thu Apr 21, 2011 4:08 pm
by emadima
I'm trying to test this IDE and I want to use it with existing source code.(project is big, more than 15000 files)
I've created Workspace and Project but when adding files using "Import Files From Directory", it doesn't work.
Directory are selected and extensions are correct (*.cpp; *.h etc...)
I'm using revision 2.10.0.4778, both on Win and Ubuntu I have same problem,
can some one help me?
Re: Cannot use "Import Files From Directory"
Posted: Thu Apr 21, 2011 5:30 pm
by eranif
can u try and import files from another directory to make sure it works? it simply works here, and I got no clues what is happening on your machine.
Eran
Re: Cannot use "Import Files From Directory"
Posted: Thu Apr 21, 2011 6:04 pm
by emadima
Hi Eran,
thanks for reply.
I think to have an idea of what is happening.
in fact, the main folder where my project are located is called "CVS_WORK_DIR", so I suppose there is some test on "CVS.." dir name...that exclude the path...
Do you think it is possible? (moving out of this dir I can Import Files to project)
best
E.
Re: Cannot use "Import Files From Directory"
Posted: Tue Apr 26, 2011 7:41 pm
by nemesis
hej!
to prevent misunderstandings, by 'directories are selected' you refer to the checkboxes in front of them? i had the same problem and i missed ticking the checkboxes in front of the directorynames. (some windowthemes make them vanish in the background color).
regards,
nem
Re: Cannot use "Import Files From Directory"
Posted: Tue Apr 26, 2011 7:46 pm
by eranif
emadima wrote: think to have an idea of what is happening.
in fact, the main folder where my project are located is called "CVS_WORK_DIR", so I suppose there is some test on "CVS.." dir name...that exclude the path...
Do you think it is possible? (moving out of this dir I can Import Files to project)
indeed... this is the problem
This code is what causing the problem:
Code: Select all
if( filepath.Contains(wxT(".svn")) || filepath.Contains(wxT(".cvs")) ||
filepath.Contains(wxT(".arch-ids")) || filepath.Contains(wxT("arch-inventory")) ||
filepath.Contains(wxT("autom4te.cache")) || filepath.Contains(wxT("BitKeeper")) ||
filepath.Contains(wxT(".bzr")) || filepath.Contains(wxT(".bzrignore")) ||
filepath.Contains(wxT("CVS")) || filepath.Contains(wxT(".cvsignore")) ||
filepath.Contains(wxT("_darcs")) || filepath.Contains(wxT(".deps")) ||
filepath.Contains(wxT("EIFGEN")) || filepath.Contains(wxT(".git")) ||
filepath.Contains(wxT(".hg")) || filepath.Contains(wxT("PENDING")) ||
filepath.Contains(wxT("RCS")) || filepath.Contains(wxT("RESYNC")) ||
filepath.Contains(wxT("SCCS")) || filepath.Contains(wxT("{arch}"))) {
I will fix this and will update this post, thanks for the hint!
Eran
Re: Cannot use "Import Files From Directory"
Posted: Tue Apr 26, 2011 8:11 pm
by eranif
Fixed in trunk
Eran