-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Survive TypeErrors in isMatchedBy #15675
Conversation
How I fixed it: At first, I was a bit puzzled why a change to hasKnownMembers would have an effect like the one seen in #15673. The test case was really simple, so that was a plus. I compiled with -Xprompt and looked at the stack trace. That indicated that the error was a TypeError that was raised somewhere else and that was caught and issued in The question was still how to fix it. The problem was as explained in the new comment in
The fix then was simply to catch a some more output to that message to see the current |
The CB build fails because of this:
|
Now there's a real puzzler: how does catching a TypeError cause scala-webapps.epfl.ch to start returning 409s?! 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a little extreme. Is there no way to add a guard somewhere that quietly returns false instead of recovering from a thrown exception? Or can we at least tighten around what call can't be guarded but we want to recover from it throwing?
We recover from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see, 24 matched lines of with "case" and "TypeError". OK, fair enough.
Rebased to fix community build failure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the explanation, I was struggling to make the connection.
Backport #15675: Survive TypeErrors in isMatchedBy
Fixes #15673