[GH-ISSUE #1063] exit status 1 when run from IDE GoLand 2024.3.1 #769

Closed
opened 2026-03-04 01:07:36 +03:00 by kerem · 2 comments
Owner

Originally created by @jkpark on GitHub (Dec 18, 2024).
Original GitHub issue: https://github.com/rivo/tview/issues/1063

in my Mac PC, I am facing an error when executing tview application from GoLand 2024.3.1.

To prove, I have created hello world project and ran it.

package main

import (
	"github.com/rivo/tview"
)

func main() {
	box := tview.NewBox().SetBorder(true).SetTitle("Hello, world!")
	if err := tview.NewApplication().SetRoot(box, true).Run(); err != nil {
		panic(err)
	}
}

got error

GOROOT=/opt/homebrew/opt/go/libexec #gosetup
GOPATH=/Users/jkpark/go #gosetup
/opt/homebrew/opt/go/libexec/bin/go build -o /Users/jkpark/Library/Caches/JetBrains/GoLand2024.3/tmp/GoLand/___go_build_test_tview test-tview #gosetup
/Users/jkpark/Library/Caches/JetBrains/GoLand2024.3/tmp/GoLand/___go_build_test_tview #gosetup
panic: exit status 1

goroutine 1 [running]:
main.main()
	/Users/jkpark/work/test/test-tview/main.go:10 +0x29c

Process finished with the exit code 2

Do you have any idea to solve it?

Thank you

Originally created by @jkpark on GitHub (Dec 18, 2024). Original GitHub issue: https://github.com/rivo/tview/issues/1063 in my Mac PC, I am facing an error when executing tview application from `GoLand 2024.3.1`. To prove, I have created hello world project and ran it. ``` package main import ( "github.com/rivo/tview" ) func main() { box := tview.NewBox().SetBorder(true).SetTitle("Hello, world!") if err := tview.NewApplication().SetRoot(box, true).Run(); err != nil { panic(err) } } ``` got error ``` GOROOT=/opt/homebrew/opt/go/libexec #gosetup GOPATH=/Users/jkpark/go #gosetup /opt/homebrew/opt/go/libexec/bin/go build -o /Users/jkpark/Library/Caches/JetBrains/GoLand2024.3/tmp/GoLand/___go_build_test_tview test-tview #gosetup /Users/jkpark/Library/Caches/JetBrains/GoLand2024.3/tmp/GoLand/___go_build_test_tview #gosetup panic: exit status 1 goroutine 1 [running]: main.main() /Users/jkpark/work/test/test-tview/main.go:10 +0x29c Process finished with the exit code 2 ``` Do you have any idea to solve it? Thank you
kerem closed this issue 2026-03-04 01:07:37 +03:00
Author
Owner

@vlanse commented on GitHub (Dec 21, 2024):

@jkpark
IMO that's JB problem. I've set check box "Emulate terminal in output console" in corresponding Run Configuration (was unset after recent IDE update) and everything started working

The problem in fact was because call to infocmp -1 (invoked internally by tview) failed with exit code 1 (looks like w/o that "emulation" it's impossible to obtain required info about terminal)

Screenshot 2024-12-21 at 17 48 38
<!-- gh-comment-id:2558142697 --> @vlanse commented on GitHub (Dec 21, 2024): @jkpark IMO that's JB problem. I've set check box "Emulate terminal in output console" in corresponding Run Configuration (was unset after recent IDE update) and everything started working The problem in fact was because call to `infocmp -1` (invoked internally by `tview`) failed with exit code 1 (looks like w/o that "emulation" it's impossible to obtain required info about terminal) <img width="551" alt="Screenshot 2024-12-21 at 17 48 38" src="https://github.com/user-attachments/assets/caddb1f9-830c-47ca-b4ce-5b8d8047016a" />
Author
Owner

@jkpark commented on GitHub (Jan 17, 2025):

@vlanse
It works for me.
Thank you a lot 👍

<!-- gh-comment-id:2597428894 --> @jkpark commented on GitHub (Jan 17, 2025): @vlanse It works for me. Thank you a lot 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#769
No description provided.