diff --git a/Toolset/palettes/script editor/behaviors/revseeditorbehavior.livecodescript b/Toolset/palettes/script editor/behaviors/revseeditorbehavior.livecodescript index 137604e788..006a77b54d 100644 --- a/Toolset/palettes/script editor/behaviors/revseeditorbehavior.livecodescript +++ b/Toolset/palettes/script editor/behaviors/revseeditorbehavior.livecodescript @@ -742,6 +742,15 @@ command scriptCompile pObject setCompilationErrors line 1 of tResult, pObject put "error" into tState end if + else + send "clearErrors" to group "Errors" of the owner of me + if tResult is empty then + setCompilationErrors empty, pObject + else + send "addError compilation, line 1 of tResult, pObject" to group "Errors" of the owner of me + setCompilationErrors line 1 of tResult, pObject + put "error" into tState + end if end if seSetObjectState pObject, tState diff --git a/notes/bugfix-22555.md b/notes/bugfix-22555.md new file mode 100644 index 0000000000..5a7dcc257c --- /dev/null +++ b/notes/bugfix-22555.md @@ -0,0 +1 @@ +# Flag compile errors consistently when LiveError is turned off