Skip to content

Commit

Permalink
fix(InPlaceRunner): filter out igop Wasm PATH error in console output (
Browse files Browse the repository at this point in the history
…#1272)

Updates #1235

Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
  • Loading branch information
aofei authored Jan 24, 2025
1 parent 0575660 commit 19d52cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spx-gui/src/components/editor/preview/InPlaceRunner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ const projectRunnerRef = ref<InstanceType<typeof ProjectRunner>>()
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`.
//
Expand Down

0 comments on commit 19d52cd

Please sign in to comment.