-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Dotty Repl OOM's on one-liner input #10983
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
Comments
For context, this is a stock Dotty install, installed via
|
@emilipy Some programs OOM. This one is particularly short. That has curiosity value, but is not by itself a bug. If you want to help, it would be good to try to get to the bottom why there is a OOM, and whether that's something that can be fixed. |
@emilypi It's fine. I had another look. The root cause is that errors get propagated too far. They should truncate implicit searches but don't do it sufficiently well. The compiler is very lenient in that it does not report a type mismatch error if some participant is already erroneous. That's good to cut down on noise. But it also means that implicit searches can get out of hand, because too much is eligible. |
Thanks for looking into that @odersky |
Minimized code
Output
Expectation
REPL does not OOM.
For more information, see: #9344.
The text was updated successfully, but these errors were encountered: