Author Topic: SE 2008 Project file import can't handle entries with no results  (Read 4157 times)

Duhhh

  • Community Member
  • Posts: 36
  • Hero Points: 0
I just upgraded to SE 2008, and the first thing I tried to do was build a project. I already had a list of directories to search for source, so I tried to use the project files import. However, some of the directories I had listed didn't return any results. Ex:

Code: [Select]
C:\project\source\*.c
C:\project\source\*.h

The source directory contains a few .c files, but no .h files. When I import this file list, I get a "file not found" dialog (as generated in project.e, line 8600). No hint about what wasn't found, unfortunately (my import list had dozens of entries). I went back to my old SlickEdit (v10) and it handled this case without any trouble.

I'm going to go hunting in project.e, but if anyone else has a fix, please let me know. I will try to add some way to do exclusions via import list, but that seems tough, since the search code is general purpose. I'd like to be able to create a list such as:

Code: [Select]
C:\project\source\*.c
- C:\project\source\old-*.c

That way, all of my "old" files wouldn't get pulled into the project.

Duhhh

  • Community Member
  • Posts: 36
  • Hero Points: 0
Re: SE 2008 Project file import can't handle entries with no results
« Reply #1 on: January 06, 2009, 07:29:12 PM »
Is anyone else seeing this problem? I'm guessing that importing directory lists to build a project isn't used by everyone, but I've been using it for years - until I upgraded to SE2008. I started looking into the macro source to see why no results causes it to give up, but I haven't found the key yet - SE 10 works, but that part of the macro code is significantly different.

chrisant

  • Senior Community Member
  • Posts: 1410
  • Hero Points: 131
Re: SE 2008 Project file import can't handle entries with no results
« Reply #2 on: January 06, 2009, 08:55:44 PM »
You might want to check out the sync_project_with_scm macro, which automates updating (or initially populating) the file list for a project.  It's much easier this way.

Duhhh

  • Community Member
  • Posts: 36
  • Hero Points: 0
Re: SE 2008 Project file import can't handle entries with no results
« Reply #3 on: January 13, 2009, 06:22:20 PM »
You're right - it is much easier that way. No need to debug the builtin stuff any longer! Thanks!