This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 137681 - "Find Usages" action for php files has different behaviour.
Summary: "Find Usages" action for php files has different behaviour.
Status: VERIFIED WONTFIX
Alias: None
Product: php
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-19 10:17 UTC by Victoria Zhukovskaya
Modified: 2008-06-28 13:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot (65.07 KB, image/png)
2008-06-26 11:57 UTC, Victoria Zhukovskaya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victoria Zhukovskaya 2008-06-19 10:17:47 UTC
Product Version: NetBeans IDE Dev (Build 200806190009)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06

Find Usages for php files has different behaviour. 

random.

1. Create PhpProject1 with default settings
2. Add php file and edit code f.e.

<?php
class a
{

}
?>

3. Click on this  php file on Project view and invoke Find Usaged.

result - all is Ok -  there is Find Usage wnd for finding Calss a. 
4. Press Find. 
result - all is ok - opened Usages view.

try  invoke "Find Usages" several times 
Can be so that after invocation Find Usage wnd is not appeared


another sample af beheviour is
1. Create AirAlliance sample
2. Invoke Find Usages on flight.php



Result is  - There is "Find Usages" wnd with message: JavaScript Refactoring is approximate....
Can be so that after invocation Find Usage wnd is not appeared
Comment 1 rmatous 2008-06-19 12:30:09 UTC
Fixed:
http://hg.netbeans.org/main/rev/9a2a9a2bbc8c

"JavaScript Refactoring is approximate....", shouldn't be reported against php.refactoring
Comment 2 Quality Engineering 2008-06-20 15:57:21 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #271 build
Changeset: http://hg.netbeans.org/main/rev/9a2a9a2bbc8c
User: Radek Matous <rmatous@netbeans.org>
Log: #137681 "Find Usages" action for php files has different behaviour. .
Comment 3 Victoria Zhukovskaya 2008-06-26 11:56:12 UTC
reopen for NB 6.5M1
Product Version: NetBeans IDE Dev (Build 200806260103)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06
See attachment

Comment 4 Victoria Zhukovskaya 2008-06-26 11:57:11 UTC
Created attachment 63500 [details]
Screen shot
Comment 5 rmatous 2008-06-26 12:18:00 UTC
Victoria, you probably disagree with my comment:
 "JavaScript Refactoring is approximate....", shouldn't be reported against php.refactoring. 

So, please explain what should be fixed in php.refactoring, thanks.

Comment 6 Victoria Zhukovskaya 2008-06-26 14:43:29 UTC
Sorry, may be I misunderstand.

I see so result after an invocation Find Usages:
  1. No action after the invocation
  2. "JavaScript Refactoring is approximate...."
  3. There was Find Usage wnd for finding Class a. (for i did not see that result 200806260103)
Every time I have different results after an invocation Find Usages.

Is it right?
Comment 7 rmatous 2008-06-26 18:43:10 UTC
expected behavior:
 1. No action after the invocation -  if invoked outside of editor (e.g. from logical/file view).

If doesn't behave according expected behavior - please reopen. If you find improper behavior in javascript code, please
report against javascript. If you don't agree, please comment and reopen. 
Comment 8 Victoria Zhukovskaya 2008-06-28 13:31:06 UTC
Thanks for comments.

I update the issue as veryfied.
There is no Find Usage wnd for finding Calss ClassName (for php).
But sometimes there is "JavaScript Refactoring is approximate...." wnd. I open new issue - 138550 for javascript.