scautable icon indicating copy to clipboard operation
scautable copied to clipboard

Many columsn appear to blow up compiler

Open Quafadas opened this issue 9 months ago • 0 comments

  test("Some random CSV files") {
    // val whiskey = CSV.absolutePath(Generated.resourceDir0 + "testFile" + Generated.pathSep + "whiskey.csv").toSeq
    // assert(whiskey.length == 86)

    val longRow = CSV.absolutePath(Generated.resourceDir0 + "testFile" + Generated.pathSep + "10001_columns.csv").toSeq
    longRow.toSeq.ptbln
  }

fails with

Exception occurred while executing macro expansion.
dotty.tools.dotc.core.RecursionOverflow: Recursion limit exceeded.
Maybe there is an illegal cyclic reference?
If that's not the case, you could also try to increase the stacksize using the -Xss JVM option.
For the unprocessed stack trace, compile with -Xno-enrich-error-messages.

Boosting both Xss to 100m and max inlines to 100,000 appears to get a true blue stack overflow.

[116] [error] 407 |    val longRow = CSV.absolutePath(Generated.resourceDir0 + "testFile" + Generated.pathSep + "10001_columns.csv").toSeq
[116] [error]     |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[116] [error]     |                  Exception occurred while executing macro expansion.
[116] [error]     |                  java.lang.StackOverflowError

Quafadas avatar May 08 '25 15:05 Quafadas