Game Development Community

Bugs found in "Find" and "Find in Files" function

by Bartholomew IU · in Torsion · 09/29/2008 (8:43 pm) · 1 replies

I use Torsion V1.1.392 Final, working on the Stronghold project of TGEA 1.7.1.
I found some bugs in Find and Find in Files. Then I create a simple files to test the bug.

This is the content I tested. I save this files with the name: "test.cs" and include this file in the torsion project.
new GuiGameListMenuCtrl(ListMenu) {
   CallbackOnA = "ListMenu.activateRow();";
};

new GuiGameListMenuCtrl(SomeElse) {
   CallbackOnA = "SomeElse.activateRow();";
   test = "SomeElseElse";
};

Bug 1:
I try to search the word "SomeElse" using Find with "Match case" and "Match whole word" checked. Then Torsion finds three occurrences, including the word "SomeElseElse". But "SomeElseElse" should not be found as I checked the "Match whole word".

Bug 2:
I try to search the word "ListMenu" using Find in Files with "Match case" and "Match whole word" checked, and Look in "Project". Then Torsion finds only one occurrence in this file. Torsion misses one occurrence. But if I search the word "SomeElse", Torsion find two occurrences in this file correctly. It seems that the word "ListMenu" is a bit special.

I haven't tried to create a new project and test this again. May be these bugs occur only in a project with many files.

#1
09/29/2008 (9:59 pm)
Thanks for the post! I'm not sure whats going on in bug 1, might have to investigate.

But bug 2, I'm guessing that searching for ListMenu is different from "ListMenu". Match whole word most likely considers the quotes as part of the word.