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

Fix "Find all references" in the IDE with external projects #2810

Merged
merged 1 commit into from
Jun 26, 2017

Conversation

smarter
Copy link
Member

@smarter smarter commented Jun 25, 2017

"Find all references" worked on dotty itself because all its
dotty-compiled dependencies are internal, but in other projects it
failed when trying to construct a SourceTree for trees in the dotty
library, because sym.sourceFile returned null, because the SourceFile
annotation pointed to a path that does not exist on the user filesystem.

For now, we just discard these trees, but we need to find some way to
match them with source jars.

"Find all references" worked on dotty itself because all its
dotty-compiled dependencies are internal, but in other projects it
failed when trying to construct a SourceTree for trees in the dotty
library, because sym.sourceFile returned null, because the SourceFile
annotation pointed to a path that does not exist on the user filesystem.

For now, we just discard these trees, but we need to find some way to
match them with source jars.
@smarter smarter requested a review from felixmulder June 25, 2017 16:10
Copy link
Contributor

@felixmulder felixmulder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if there's an issue to track "Find all references" in external projects

@smarter
Copy link
Member Author

smarter commented Jun 26, 2017

About to catch flight, will open issue later

@smarter smarter merged commit 618f826 into scala:master Jun 26, 2017
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

Successfully merging this pull request may close these issues.

2 participants