Infinite loop during typing match types
See original GitHub issueCompiler version
3.0.1
Reproducer
Try to compile code from this commit:
https://github.com/sirthias/parboiled2/commit/3cc460f0bfc05eb8683036b4deca8e11355391c3
with parboiledCoreJVM/Test/compile
runs into an infinite loop.
Expectation
There’s probably some error here leading to the infinite loop but it’s hard to debug without any error message. The documentation seems to imply that these situations are caught and somehow handled but that doesn’t seem to be the case here.
I can try to minimize further if needed.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Match Types - Scala 3 - EPFL
Match type definitions can be recursive, which means that it's possible to run into an infinite loop while reducing match types.
Read more >Infinite loop with cin when typing string while a number is ...
When we use cin , if the input is not a number, then are there ways to detect this to avoid abovementioned problems?...
Read more >Match Types in Dotty | by Knoldus Inc. - Medium
Match types can also detect infinite loop if it is defined as an endless recursion. The compiler internally detects it by stack overflows....
Read more >Top 4 Types of Statements in Python Infinite Loop - eduCBA
A few types of Infinite Loop in Python include the While statement, the If statement, the Continue statement, and the Break statement.
Read more >Match Types in Scala 3 - Baeldung
Recursive Match Types. Since match types can be recursive, there's nothing preventing us from writing an infinite loop. Luckily, the Scala ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Here’s a self-contained reproducer:
and a stack trace while it was running with 3.0.2:
I assume this can be closed then?