Skip to content

Better error messages for missing symbols #5627

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 1 commit into from
Dec 26, 2018

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 17, 2018

When I changed branches, the compiler encountered a missing required symbol
"DottyPredef.ImplicitConverter" because in the previous branch that symbol
had been renamed to "ImplicitConversion". The error message was not exactly
helpful, however:

None of the required alternatives of satisfies required predicate

This commit changes things so that we give a meaningful error message in all cases where
a required symbol is missing.

When I changed branches, the compiler encountered a missing required symbol
"DottyPredef.ImplicitConverter" because in the orevious branch that symbol
had been renamed to "ImplicitConversion". The error message was not exactly
helpful, however:

   None of the required alternatives of <none> satisfies required predicate

This commit fixes this. It gives a meaningful error messages in all cases where
a required symbol is missing.
@odersky odersky requested a review from biboudis December 17, 2018 13:50
@odersky odersky added the fasttrack Simple fix. Reviewer should merge or apply additional changes directly. label Dec 17, 2018
@nicolasstucki nicolasstucki merged commit d8b210a into scala:master Dec 26, 2018
@nicolasstucki nicolasstucki deleted the fix-reporting-required branch December 26, 2018 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fasttrack Simple fix. Reviewer should merge or apply additional changes directly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants