renoise / tools

Scripting tools written by the Renoise team
MIT License
285 stars 43 forks source link

xStream: error is thrown when entering "return" into main method #97

Closed bjorn-nesby closed 7 years ago

bjorn-nesby commented 7 years ago

The following error is produced when entering the literal statement "return" into the main method as the last characters

.\source/cLib/classes/cSandbox.lua:240: attempt to call local 'def' (a nil value) stack traceback: .\source/cLib/classes/cSandbox.lua:240: in function 'compile' .\source/xStreamModel.lua:385: in function <.\source/xStreamModel.lua:360> [C]: in function '__newindex'

.\source/xStreamUILuaEditor.lua:216: in function 'apply_editor_content' .\source/xStreamUI.lua:687: in function 'on_idle' .\source/xStream.lua:351: in function 'on_idle' .\source/xStream.lua:201: in function <.\source/xStream.lua:200>