From 19d52cd57a722038e63f1783504b8a4284750919 Mon Sep 17 00:00:00 2001 From: Aofei Sheng Date: Fri, 24 Jan 2025 10:11:27 +0800 Subject: [PATCH] fix(InPlaceRunner): filter out igop Wasm PATH error in console output (#1272) Updates #1235 Signed-off-by: Aofei Sheng --- spx-gui/src/components/editor/preview/InPlaceRunner.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spx-gui/src/components/editor/preview/InPlaceRunner.vue b/spx-gui/src/components/editor/preview/InPlaceRunner.vue index eabb8134a..e62beaff6 100644 --- a/spx-gui/src/components/editor/preview/InPlaceRunner.vue +++ b/spx-gui/src/components/editor/preview/InPlaceRunner.vue @@ -15,6 +15,12 @@ const projectRunnerRef = ref>() function handleConsole(type: 'log' | 'warn', args: unknown[]) { if (type === 'log' && args.length === 1 && typeof args[0] === 'string') { + // TODO: Temporarily filter out "go executable not found" error from igop. + // Needs upstream fix for PATH resolution in Wasm environment. + if (args[0] === 'exec: "go": executable file not found in $PATH') { + return + } + try { // Log format is determined by `github.com/goplus/builder/tools/ispx/main.go:logWithCallerInfo`. //