From f11b450b02c3e49280c68efd54889bc8e4ec5339 Mon Sep 17 00:00:00 2001 From: BerndN Date: Fri, 31 Jan 2020 15:46:10 +0100 Subject: [PATCH 1/2] [Bug 22555] Keep compile errors in SE w/o LiveError on If LiveError is off compile errors are not flagged if one clicks in field "script" or any other action in SE. Bug 22555 --- .../behaviors/revseeditorbehavior.livecodescript | 9 +++++++++ 1 file changed, 9 insertions(+) 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 From c5c075a0529d0bc7f205d8d6215501e1cb203d66 Mon Sep 17 00:00:00 2001 From: BerndN Date: Fri, 31 Jan 2020 15:48:20 +0100 Subject: [PATCH 2/2] Create bugfix-22555.md --- notes/bugfix-22555.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 notes/bugfix-22555.md 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