You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of TableTransformer the missing block could be named after any block type exported by std-lib.
Description
Expected: The interpreter and language server emit an appropriate error message.
Actual: The interpreter crashes with this message:
/home/jonas/Code/uni/hiwi/jayvee/libs/interpreter-lib/src/interpreter.ts:355
const blockTypeName = block.type.ref?.name;
^
TypeError: Cannot read properties of undefined (reading 'ref')
at toString (/home/jonas/Code/uni/hiwi/jayvee/libs/interpreter-lib/src/interpreter.ts:355:38)
at <anonymous> (/home/jonas/Code/uni/hiwi/jayvee/libs/interpreter-lib/src/interpreter.ts:362:23)
at Array.map (<anonymous>)
at toString (/home/jonas/Code/uni/hiwi/jayvee/libs/interpreter-lib/src/interpreter.ts:362:8)
at logPipelineOverview (/home/jonas/Code/uni/hiwi/jayvee/libs/interpreter-lib/src/interpreter.ts:384:2
2)
at DefaultJayveeInterpreter.runPipeline (/home/jonas/Code/uni/hiwi/jayvee/libs/interpreter-lib/src/int
erpreter.ts:313:5)
at <anonymous> (/home/jonas/Code/uni/hiwi/jayvee/libs/interpreter-lib/src/interpreter.ts:271:21)
at Array.map (<anonymous>)
at DefaultJayveeInterpreter.interpretJayveeProgram (/home/jonas/Code/uni/hiwi/jayvee/libs/interpreter-
lib/src/interpreter.ts:269:65)
at DefaultJayveeInterpreter.interpretProgram (/home/jonas/Code/uni/hiwi/jayvee/libs/interpreter-lib/sr
c/interpreter.ts:156:47)
at async DefaultJayveeInterpreter.interpretFile (/home/jonas/Code/uni/hiwi/jayvee/libs/interpreter-lib
/src/interpreter.ts:182:12)
at async Command.runAction (/home/jonas/Code/uni/hiwi/jayvee/apps/interpreter/src/run-action.ts:54:20)
and the language server does not report anything
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Instead of
TableTransformer
the missing block could be named after any block type exported by std-lib.Description
and the language server does not report anything
The text was updated successfully, but these errors were encountered: