Why does 'show usages' only look in Project Files?

Well, same as the title I guess:

Why does 'show usages' only look in Project Files?

I'm trying to debug a library, and when doing a 'show usages', I expect IntelliJ to show me the usages. Instead, IntelliJ sais: no usages found, which is nonsense, the method is called a few lines about this position. When I do a 'find usages', it does work however.

UPDATE
Now I'm getting a bit confused here: when I first did a 'show usages', IntelliJ didn't find anything. Than I did a 'find usages', and I got a result screen with the found occurances, and then I did a 'show usages', and now it is found. I know it's late, it's weekend, etc, but am I getting crazy here?

5 comments
Comment actions Permalink

Show usages might use remembered scope of last find usages

Erik Pragt wrote:

Well, same as the title I guess:

Why does 'show usages' only look in Project Files?

I'm trying to debug a library, and when doing a 'show usages', I expect IntelliJ to show me the usages. Instead, IntelliJ sais: no usages found, which is nonsense, the method is called a few lines about this position. When I do a 'find usages', it does work however.

UPDATE
Now I'm getting a bit confused here: when I first did a 'show usages', IntelliJ didn't find anything. Than I did a 'find usages', and I got a result screen with the found occurances, and then I did a 'show usages', and now it is found. I know it's late, it's weekend, etc, but am I getting crazy here?



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Hi Erik,

"Quick Find Usages" (Ctrl-Alt-F7) uses the (most recent?) "Find Usages" (Alt-F7) settings.
If you think that's inconvenient and/or confusing, you're not the only one.

Take a look at:
http://www.jetbrains.net/jira/browse/IDEA-15433

Edited by: Taras Tielkes on Oct 26, 2008 4:01 PM

0
Comment actions Permalink

"Might use" ? What do you mean by that? And what do you mean with 'scope' ? I've seen a dialog somewhere (IntelliJ 7?) which says: Search in Project / Search in Project & Libraries, but when I look at the find dialog (see attached screenshot), I don't see anything which looks like a scope...



Attachment(s):
Find Usages.jpg
0
Comment actions Permalink

thanks for the question (Erik) and the response (Taras). I have come across this inadvertently a few times and did not understand what was going on.

0
Comment actions Permalink

I voted for the issue. This is really annoying. I like your suggestions in the issue, but actually, I don't care much which solution is taken, as long as it's obvious what's happening.

0

Please sign in to leave a comment.