Skip to content

Fix/#34 pathresolvers #38

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

Merged
merged 2 commits into from
Mar 3, 2014
Merged

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Mar 3, 2014

See explanation in commits.

Review by @DarkDimius, @srjd

odersky added 2 commits March 3, 2014 17:45
Right now this one fails.
The root cause of scala#34 was that we took a type argument which was an existential type. These are returned as type bounds, which make no sense in the calling context. To avoid that problem in the future, `typeArgs`
got renamed to `argInfos`, so it is clear we get an info, not necessarily a value type. There are
also added method `argTypes`, `argTypesLo`, `argTypesHi`, which return a type, but either throw an exception or return a lower/upper approximation of the argument is an existential type.

There's another issue that the existential type only arose when compiling the same couple fo files the seciond time. We need to chase that one down separately.
@sjrd
Copy link
Member

sjrd commented Mar 3, 2014

Otherwise OK for me.

@odersky
Copy link
Contributor Author

odersky commented Mar 3, 2014

The trace can stay enabled. We can include the test case in the commit the next time. for now I would prefer to just get the build back to work, so I am not resubmitting.

@DarkDimius
Copy link
Contributor

testIssue_34 seems to tests this particular issue. https://github.com/lampepfl/dotty/pull/38/files#diff-28f8d722cae3da74d903fc63040c9d36R74
Though it would be good to come up with minimized test that doesn't depend on "tools/dotc/config/PathResolver.scala" and "tools/dotc/config/Properties.scala", which can be modified in several years making tests useless.

LGTM, as a quickfix for #34

DarkDimius added a commit that referenced this pull request Mar 3, 2014
@DarkDimius DarkDimius merged commit 9c73c96 into scala:master Mar 3, 2014
@odersky
Copy link
Contributor Author

odersky commented Mar 3, 2014

Yes, it would be good to minimize the test case further. The other thing we still need to do is find out why the problem manifested itself only on a resident recompile. That should not be the case. For that reason also it's good to leave the failing test case in a separate commit. Easier to come back to it that way.

noti0na1 pushed a commit to noti0na1/dotty that referenced this pull request Nov 4, 2019
szymon-rd pushed a commit that referenced this pull request Dec 9, 2022
WojciechMazur pushed a commit to WojciechMazur/dotty that referenced this pull request Mar 19, 2025
Backport "Backport changes for the presentation compiler from Metals" to 3.3 LTS
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.

3 participants