Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Find usages" does not work for package names #2821

Closed
dcelasun opened this issue Nov 7, 2016 · 3 comments
Closed

"Find usages" does not work for package names #2821

dcelasun opened this issue Nov 7, 2016 · 3 comments

Comments

@dcelasun
Copy link

dcelasun commented Nov 7, 2016

Running 0.12.1885 on IDEA Ultimate 2016.2.5.

  • What are you trying to do?

In a Go file, right click the package name at the top of the file and choose "Find Usages".

  • What would you expect to happen?

The find dialog should open, displaying all the places that package is imported.

  • What happens?

find_usages

@zolotov
Copy link
Contributor

zolotov commented Nov 7, 2016

Import statement import a directory with a given import path, not package, so you should use find usages on directory, not on the package clause.

@dcelasun
Copy link
Author

dcelasun commented Nov 7, 2016

That works, thanks! Maybe the same thing should happen when it's being invoked from the package clause?

@zolotov
Copy link
Contributor

zolotov commented Nov 7, 2016

Eventually I'll make it work for looking for qualifiers like thrift.SomeFunction() but still not for imports, sorry

@dcelasun dcelasun closed this as completed Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants