Assigning the result of a constructor call seems to lead to errors in the code generator:
RangeError: Invalid array length
at SafeDsPythonGenerator.generateAssignment (C:\Users\Lars\Repositories\safe-ds-org\DSL\packages\safe-ds-lang\src\language\generation\safe-ds-python-generator.ts:637:48)
at SafeDsPythonGenerator.generateStatement (C:\Users\Lars\Repositories\safe-ds-org\DSL\packages\safe-ds-lang\src\language\generation\safe-ds-python-generator.ts:597:39)
at __vite_ssr_import_1__.joinTracedToNode.separator (C:\Users\Lars\Repositories\safe-ds-org\DSL\packages\safe-ds-lang\src\language\generation\safe-ds-python-generator.ts:517:28)
at file:///C:/Users/Lars/Repositories/safe-ds-org/DSL/node_modules/langium/src/generate/node-joiner.ts:226:108
at file:///C:/Users/Lars/Repositories/safe-ds-org/DSL/node_modules/langium/src/generate/node-joiner.ts:113:25
at reduceWithIsLast (file:///C:/Users/Lars/Repositories/safe-ds-org/DSL/node_modules/langium/src/generate/node-joiner.ts:354:18)
at joinToNode (file:///C:/Users/Lars/Repositories/safe-ds-org/DSL/node_modules/langium/src/generate/node-joiner.ts:109:12)
at file:///C:/Users/Lars/Repositories/safe-ds-org/DSL/node_modules/langium/src/generate/node-joiner.ts:224:13
at SafeDsPythonGenerator.generateBlock (C:\Users\Lars\Repositories\safe-ds-org\DSL\packages\safe-ds-lang\src\language\generation\safe-ds-python-generator.ts:515:52)
at SafeDsPythonGenerator.generatePipeline (C:\Users\Lars\Repositories\safe-ds-org\DSL\packages\safe-ds-lang\src\language\generation\safe-ds-python-generator.ts:463:47)
To Reproduce
Generate Python code for this:
package test
pipeline myPipeline {
val table = Table();
}
Describe the bug
Assigning the result of a constructor call seems to lead to errors in the code generator:
To Reproduce
Generate Python code for this:
Expected behavior
No error.
Screenshots (optional)
No response
Additional Context (optional)
No response