[haiku-bugs] Re: [Haiku] #8975: [TextSearch] Wrongly adds entries for newly created, empty files

  • From: "stippi" <trac@xxxxxxxxxxxx>
  • Date: Tue, 02 Oct 2012 20:41:02 -0000

#8975: [TextSearch] Wrongly adds entries for newly created, empty files
---------------------------------------+----------------------------
   Reporter:  x-ist                    |      Owner:  stippi
       Type:  bug                      |     Status:  in-progress
   Priority:  normal                   |  Milestone:  R1
  Component:  Applications/TextSearch  |    Version:  R1/Development
 Resolution:                           |   Keywords:
 Blocked By:                           |   Blocking:
Has a Patch:  1                        |   Platform:  All
---------------------------------------+----------------------------

Comment (by stippi):

 In the original version, the first message MSG_REPORT_FILE_NAME is just an
 information that this file is now being processed. Think of the status bar
 informing of the files being scanned. Then there is a message
 MSG_REPORT_RESULT, which may or may not be sent for that same file. If the
 file contains the search string, it is sent with the "text" string
 field(s) containing the search hit line(s). If the file is a negative,
 then the message is being sent if the "iterator" is configured to "notify
 negatives" (and it won't contain a single "text" field).

 Both the first thing (status report) and the "negatives" reporting is what
 your patch breaks. With these semantics in mind, it looks to me like the
 Grepper loop works as intended without your patch. And I think the problem
 must be on the receiving end. If you have more time to look into it, it is
 much appreciated. I remember this bug having annoyed me as well. Thanks
 for your help! I can try to look into it, too, but I don't know how much
 time I will have in the near future.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8975#comment:6>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: