macMikey / levure

Application development framework for LiveCode
MIT License
0 stars 0 forks source link

check for errors in sos's #6

Open macMikey opened 2 years ago

macMikey commented 2 years ago
macMikey commented 2 years ago

187A01A6-49EE-4F19-80A2-7AB91D9D7FF5_1_201_a

macMikey commented 2 years ago

checking in the pb: scriptStatus does not help b/c it does not check the current state of the script

macMikey commented 2 years ago

put the scriptLines of the behavior of button "button" of card id 1002 is enough to throw the script error dialog you can't try / catch it

macMikey commented 2 years ago

revseeditorbehavior.livecodescript contains scriptCompile

macMikey commented 2 years ago

this triggers it: dispatch "scriptCompile" to the behavior of button "button" of card "x"

macMikey commented 2 years ago

the first few lines are all you really have to do, because LC will attempt to compile the script the moment you assign it to another object.

macMikey commented 2 years ago

in levure packager.livecodescript, could put this in _performPackagingPrechecks or even in levure.livecodescript in levurePackageApplication we want to do it once, not once for each platform, and only if the app.yml says so.