Bug? IDE Quick Search bar fails on = in first character position

Status
Not open for further replies.

mr23

Active Member
Licensed User
Longtime User
If I search for
= "
<equals><space><doublequote>

in the quick search bar, nothing is found.

If I search for
= "
<space><equals><space><doublequote>

then it finds the expected matches in the code.

If I search for
="
<equals><doublequote>

then it works on those matches.

So it seems it is just <equals><space><doublequote> fails.

Is there some escape character that must be used with certain search string character/combinations, or is this an IDE bug?

B4A IDE v5.50

Update: There are other characters that don't work in the Quick Search, too.
Such as
<leftparen>
<singlequote>
<singlequote><doublequote>

While this does work:
<space><leftparen>
<doublequote><space>
 
Last edited:

Erel

B4X founder
Staff member
Licensed User
Longtime User
This is a limitation of the the quick search. There must be at least one "regular" character in the search term. It will be fixed in a future version.

Edit: It is fixed for the next version.

As the quick search is based on a dynamic index, it must be fast enough. Therefore there will still be some edge cases, however I don't expect them to happen in real-world usages.

Note that you can always use the non-index based search (F3) to search the current module.
 
Last edited:

Kanne

Member
Licensed User
Longtime User
Hi,

I also had a strange search result: when searching for "region" I noticed that it is not found when starting with the first character in the editor.
Testing with other words get the same result: the searched word is not found when it is starting row 0 col 0. When placing a blank before or a newline it is found.

See example: no results found when searching for XYZ when it is placed at row 0 col 0
 

Attachments

  • 2020-06-03_111709.jpg
    2020-06-03_111709.jpg
    54.3 KB · Views: 193
  • 2020-06-03_111900.jpg
    2020-06-03_111900.jpg
    89.9 KB · Views: 197
Status
Not open for further replies.
Top