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

More tweaks to harden IDE #2838

Merged
merged 4 commits into from
Jul 6, 2017
Merged

More tweaks to harden IDE #2838

merged 4 commits into from
Jul 6, 2017

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jul 6, 2017

These were all lifted out of the pattern matcher PR, to be reviewed separately.

We observed a crash in ensureConforms when running the IDE because the expected
type was not a value type.
I observed assertion failures, that a param ref is not
in the current constraint. Avoiding an assertion failure
if that case is encountered in the IDE.
Crash was observed where the assert is.
The underlying machinery has various ways to throw a TypeError.
I observed a MergeError when accidentally writing the same method
twice. CyclicReferences are also possible. These should not lead
to crashes to the presentation compiler.
@odersky odersky requested a review from smarter July 6, 2017 12:27
Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

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

LGTM, though we should come back to those later when we have some testing infrastructure for the IDE.

@odersky odersky merged commit a9b7beb into scala:master Jul 6, 2017
@allanrenucci allanrenucci deleted the harden-ide branch December 14, 2017 19:23
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.

None yet

2 participants