Open udif opened 2 years ago
This is even worse in #881
@udif sorry, but we have no plans to support SCAD to JSCAD translation at this time.
the version that you have been trying to used is very old; published 1.0.0-alpha.d0fb3056 • 3 years ago
i'll keep this issue open for those brave and bold enough to port this module to V2.
Expected Behavior
When an error is encountered, report the correct line number.
Actual Behavior
Under Window, the line number reported is 2 * the actual line number, probably due to
\r\n
counted as two lines.Steps to Reproduce the Problem
test.scad:
And the container OpenJSCAD file:
Function { message: "Parse error on line 7:\n\r\r\rxxxxx\r\n---------^\nExpecting '(', '=', got '1'", hash: { text: '', token: 1, line: 8, loc: { first_line: 7, last_line: 7, first_column: 0, last_column: 5 }, expected: [ "'('", "'='" ] } }