Find Usages - Won't Find Usages In Strings Follow Keith Davis Created July 07, 2011 19:02 Why won't Find Usages find usages that are in strings? Refactoring does find usages in strings. Seems very inconsistent.
Hello Keith,
Please provide an example.
Thank you for feedback!
And example of a usage that it won't find? Here's one:
class Apps_TicketsEditForm{
public static function RecurrenceModify(){
echo "test";
}
}
1400 Input2::Type(BUTTON); 1401 Input2::$sName = "cmdModifyRecurrence"; 1402 Input2::$sValue = "Modify"; 1403 Input2::$sDisabled = !self::isTicketCatAdmin(); 1404 Input2::$sTitle = self::DisableTitle(); 1405 Input2::$aAjax = array( 1406 "CLASS" => __Apps_TicketsEditForm, 1407 "METHOD" => "RecurrenceModify", 1408 "PARAMS" => array("iTicketsID" => $id), 1409 "UPDATELOCATION" => "recurrence_modify"); 1410 $sModifyButton = Input2::Display(true);
If I Refactor RecurrenceModify, it will rename the value of the METHOD element in the array, but Find Usages won't find it.
Keith,
It could be a kind of feature request. Please create an issue - http://youtrack.jetbrains.net/issues/WI#newissue=yes
Thank you for feedback!
I don't see it as a feature request, it appears to be a bug. Why does Refactor find it, but Find Usages doesn't?
http://youtrack.jetbrains.net/issue/WI-7000
Keith,
I'm sorry but I have already submitted the issue to our issue tracker and forgot to notify you - http://youtrack.jetbrains.net/issue/IDEA-72200
Please vote it.
Thank you for feedback!