PapaParse icon indicating copy to clipboard operation
PapaParse copied to clipboard

Meta cursor stops to change when skipLines is greedy

Open victorlucss opened this issue 5 years ago • 0 comments

Description

When I try to parse a CSV using worker and skipEmptyLines greedy the cursor stop when it completes 1000 lines processed.

Scenario


Papa.parse(file, {
      skipEmptyLines: "greedy", // skipEmptyLines greedy
      worker: true, // worker true
      chunkSize: 500,
      header: true,
      step: function(result, row) {
        console.log(result.meta.cursor) // this will show the archive progress until isn't the thounsand line.
      },
      complete: (count) => {
        console.log(count);
      }
});

If I use skipEmptyLines with true value, the result.meta.cursor will bring the correct value. Why is this occurring?

Versions

Browser: Google Chrome 84.0.4147.105 System macOS 11.0 Beta Papaparse: ^5.2.0

Thank you for the great work! :D

victorlucss avatar Aug 11 '20 16:08 victorlucss