Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Consider local imports when calculating dependencies of Scala code #89

Merged
merged 7 commits into from
Aug 10, 2015

Conversation

mlangc
Copy link
Collaborator

@mlangc mlangc commented Aug 9, 2015

This PR is my first attempt to handle local imports properly when calculating dependencies. More details can be found in the commit messages/comments.

Fixes #1002511
Fixes #1002512

When calculating required imports, we filter out all dependencies that are
children of the tree that uses these imports. Until now this parent child
relationship was checked by looking at the associated tree positions only.
This could lead to false positives for trees from different files.
@mlangc mlangc force-pushed the move-class-and-special-chars-1002511 branch from 1e0a013 to b47f800 Compare August 9, 2015 12:43
Until now, local imports where not considered when calculating dependencies
of Scala code. This led to bugs like
[Ticket #1002511](https://www.assembla.com/spaces/scala-ide/tickets/1002511).
This patch attempts to track and handle local imports properly.

Fixes #1002511
@mlangc mlangc force-pushed the move-class-and-special-chars-1002511 branch from e733e68 to 39ac289 Compare August 9, 2015 13:39
@misto
Copy link
Member

misto commented Aug 10, 2015

Looking forward to the next "attempts" :-) Thank you very much!

misto added a commit that referenced this pull request Aug 10, 2015
Consider local imports when calculating dependencies of Scala code
@misto misto merged commit 210251c into scala-ide:master Aug 10, 2015
@kiritsuku
Copy link
Member

Cool, thanks!

@mlangc mlangc deleted the move-class-and-special-chars-1002511 branch August 14, 2015 10:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants