NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] Search and Replace Bug


Joined: 30 Jan 2007
Posts: 34
Reply with quote
There appears to be a bug in PHPed 4.6.2 when searching and replacing across multiple files. Sometimes the found text is incorrectly highlighted, and sometimes not. See the pics below

Creating the search and replace criteria:


Found one the right way:


Found one the wrong way:


As you can see, if you let loose, and hit yes on all the questions, you will end up with the wrong result, as sometimes the finds are offset to the right by a couple of characters.
View user's profileFind all posts by rgagnonSend private message
Veteran

Joined: 24 Jan 2006
Posts: 311
Reply with quote
Thank you , we will take a look shortly
View user's profileFind all posts by yfaktorSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Please submit source file and screenshot of the editor settings.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 30 Jan 2007
Posts: 34
Reply with quote
Here are the editor settings:



Sorry I cannot upload the source, due to company policy. However, this is not the only search term where this happened before I opened the ticket.

Note in the shot below, I turned on the option to show hidden characters. Also note that this shows the same file above where the match was found correctly, but this time around, it is incorrect:



More explanation was sent in the open support ticket related to this (yfaktor is who I have been corresponding with via email).

Thanks.
View user's profileFind all posts by rgagnonSend private message


Joined: 30 Jan 2007
Posts: 34
Reply with quote
Apparently this is directly related to either "Spaces in tab" or "block indent"

If I set those two values to 4, I do not see the bug.

If I set those two values to 2, the offset of the search is different that when it is 3.

It appears the search and replace across files has a 4 hard-coded into it
View user's profileFind all posts by rgagnonSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
thanks for the report.
problem is fixed in build 4633 (v4.6.3)

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
[resolved] Search and Replace Bug
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic