Author Topic: RC2: Search not finding  (Read 4552 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
RC2: Search not finding
« on: October 25, 2015, 01:09:34 AM »
The config file I created from my DSL modem is XML data, but it has no filename extension.
When I load it in Slick edit it recognizes that the file is XML.


When I attempt to Ctrl+F search using the GUI for a string I know is in the file, it doesn't find it.
If I search incrementally, Ctrl+I, that doesn't work either.
If I place the cursor on this string and use Ctrl+F3, then Slick is able to find other occurances of the string.


When I load the same file in SlickV19, find works as expected.


In the Find dialog I have no options checked other than "Wrap at beginning / end".
In particular, no search colors are selected.


I can send a copy of this file via a private message.


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6862
  • Hero Points: 528
Re: RC2: Search not finding
« Reply #1 on: October 25, 2015, 12:31:30 PM »
I've sent you an email.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6862
  • Hero Points: 528
Re: RC2: Search not finding
« Reply #2 on: October 25, 2015, 07:40:43 PM »
What string are you searching for?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6862
  • Hero Points: 528
Re: RC2: Search not finding
« Reply #3 on: October 26, 2015, 01:34:25 PM »
This will be fixed in RC 3. Thanks for finding this

rajkej

  • Senior Community Member
  • Posts: 344
  • Hero Points: 14
Re: RC2: Search not finding
« Reply #4 on: October 26, 2015, 06:52:49 PM »
I'm running RC1 still but was having a problem with search as well.

I had a .cpp file with class 'x1' defined in it. I cut/paste some code into the file that had routines defined with scope of class x2. I was doing some searches and a forward search from x1 worked but a backwards search did not until I got out of the scope of class x2.

e.g. In the following code my cursor was on x1::func1 and I searched for 'searchText' case insensitive, scope of <Current Buffer>. It found searchText in x2::func2. But then I searched backwards while my cursor was on searchText from x2 and it wouldn't find it anywhere in the file. I moved my cursor outside of the scope of x2 and search started working again.

x1::func1()
{
...
   searchText
...
}
x1 functions here
...

x2::func2()
{
...
searchText
...
}

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6862
  • Hero Points: 528
Re: RC2: Search not finding
« Reply #5 on: October 26, 2015, 07:07:55 PM »
If you can post a small sample I can take a look.

The other search problem had to do with a bug with Match color. If you ever click on the "..." to the right of Match color and mess with the check boxes, you have to reset the check boxes before the Find dialog will correctly search without matching color. If you are unsure whether you are having this problem, start SlickEdit with a new config and see if you can reproduce your problem ("vs +new -sc <new-config-dir>").

rajkej

  • Senior Community Member
  • Posts: 344
  • Hero Points: 14
Re: RC2: Search not finding
« Reply #6 on: October 26, 2015, 07:22:52 PM »
As a test, I tried to copy/paste the entire file into a new file and the search did not fail in the new file yet still failed every time in the old file.

I reproduced the issue several times on the original file. Then I restarted the editor and the issue is no longer reproducing. Not sure sending a file would help if I can't get the issue to reproduce again.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6862
  • Hero Points: 528
Re: RC2: Search not finding
« Reply #7 on: October 26, 2015, 08:22:41 PM »
Could be the match color issue