This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
23 Replies Last post: Jan 26, 2013 4:53 AM by David Bell  
Joshua Austin Newbie 8 posts since
Jan 20, 2013
Currently Being Moderated

Jan 20, 2013 11:58 PM

Find usages not working reliably.

There seems to be an issue with find usages not reliably finding all usages.

I am using the latest EAP for phpstorm 6.

 

I right click on the function (the scope is set to project) and it says there are no usages.  Later on I am working on something else and find usages of the function that phpstorm said werent there.

After further tinkering it seems as if (even though I have the scope set to project) it is only searching files that are open in a tab.

 

If I open the tab, it finds the usages.

If I close that tab, it can no longer find the usages.

 

I have the scope set to search the whole project (find usages settings) but that doesnt appear to be what is actually happening.

 

Has anyone else experienced this?  Is there a work around?

Kirill Safonov Apprentice 584 posts since
Jul 9, 2009
Currently Being Moderated
Jan 21, 2013 4:55 PM in response to: Joshua Austin
Re: Find usages not working reliably.

Joshua, are you searching for PHP or JavaScript function?

 

Kirill

Keith Davis Apprentice 676 posts since
Aug 23, 2010
Currently Being Moderated
Jan 21, 2013 8:44 PM in response to: Joshua Austin
Re: Find usages not working reliably.

124.509?

Keith Davis Apprentice 676 posts since
Aug 23, 2010
Currently Being Moderated
Jan 21, 2013 9:04 PM in response to: Joshua Austin
Re: Find usages not working reliably.

We can't use 124.509 due to

WEB-6193

 

 

I didn't realize another version was released either - wonder why I did not get the email.


Keith Davis Apprentice 676 posts since
Aug 23, 2010
Currently Being Moderated
Jan 21, 2013 9:04 PM in response to: Keith Davis
Re: Find usages not working reliably.

Oh wait, I only see a Webstorm update, not a PHPStorm update.

Kirill Safonov Apprentice 584 posts since
Jul 9, 2009
Currently Being Moderated
Jan 23, 2013 11:03 PM in response to: Joshua Austin
Re: Find usages not working reliably.

Hi Joshua,

 

I'm sorry, does it work in the end?

 

Kirill

David Bell Newbie 7 posts since
Jan 25, 2013
Currently Being Moderated
Jan 25, 2013 3:27 PM in response to: Joshua Austin
Re: Find usages not working reliably.

I've found the same thing. I can't get Find Usages to work at all.

 

I'm working on an existing PHP project. Whatever I try it just says No usages found.

 

I'm using the current version - downloaded yesterday.

 

(I've just started evaluating phpStorm for use with a Codeigniter project. This is the first time I've used it - so it's quite possible I'm missing something somewhere!)

Kirill Safonov Apprentice 584 posts since
Jul 9, 2009
Currently Being Moderated
Jan 25, 2013 3:38 PM in response to: David Bell
Re: Find usages not working reliably.

David, are you using PhpStorm 6 EAP? Can you attach idea.log? (Help -> Reveal log)

 

Thanks,

Kirill

David Bell Newbie 7 posts since
Jan 25, 2013
Currently Being Moderated
Jan 25, 2013 4:19 PM in response to: Kirill Safonov
Re: Find usages not working reliably.

No - I'm using PHPStorm 5.0.4 Build PS 121-390

Kirill Safonov Apprentice 584 posts since
Jul 9, 2009
Currently Being Moderated
Jan 25, 2013 5:18 PM in response to: David Bell
Re: Find usages not working reliably.

OK, log file is welcome. And a screenshot of the search dialog as well.

 

Thanks,

Kirill

David Bell Newbie 7 posts since
Jan 25, 2013
Currently Being Moderated
Jan 25, 2013 6:37 PM in response to: Kirill Safonov
Re: Find usages not working reliably.

Where do I find idea.log?

 

There isn't a Reveal log menu item under Help.

 

The only log reference I can find anywhere is the event log - which doesn't generate anything when I run Find Usages.

 

I've attached the dialogue box for Find Usages, and the resulting message

Attachments:
David Bell Newbie 7 posts since
Jan 25, 2013
Currently Being Moderated
Jan 25, 2013 6:38 PM in response to: Joshua Austin
Re: Find usages not working reliably.

I'm running on a Mac. So the location will be different

David Bell Newbie 7 posts since
Jan 25, 2013
Currently Being Moderated
Jan 25, 2013 6:51 PM in response to: Joshua Austin
Re: Find usages not working reliably.

OK, thanks - I found it in ~/Library/Logs/WebIde50/idea.log - attached

Attachments:
Kirill Safonov Apprentice 584 posts since
Jul 9, 2009
Currently Being Moderated
Jan 25, 2013 7:01 PM in response to: David Bell
Re: Find usages not working reliably.

Thanks, log looks good. Does the problem reproduce on a small sample project?

Kirill Safonov Apprentice 584 posts since
Jul 9, 2009
Currently Being Moderated
Jan 25, 2013 6:44 PM in response to: Joshua Austin
Re: Find usages not working reliably.

It's in a different folder on Mac, but there should be a menu item for it: http://clip2net.com/s/2KOvT

David Bell Newbie 7 posts since
Jan 25, 2013
Currently Being Moderated
Jan 25, 2013 6:53 PM in response to: Kirill Safonov
Re: Find usages not working reliably.

OK - found it. Thanks

Andriy Bazanov Master 3,991 posts since
May 28, 2010
Currently Being Moderated
Jan 26, 2013 1:02 AM in response to: David Bell
Re: Find usages not working reliably.

Hi David,

 

1) See if File | Invalidate Caches will help.

 

2) Does PhpStorm complains about the method (or whatever you are searching for) in any way (when you using it, not when declaring) -- I mean, any warnings (like "Unknown method" etc)? Can you show a screenshot of such call?

David Bell Newbie 7 posts since
Jan 25, 2013
Currently Being Moderated
Jan 26, 2013 4:53 AM in response to: Andriy Bazanov
Re: Find usages not working reliably.

I tried that but the result was the same. No error messages of any sort.

More Like This

  • Retrieving data ...