[GH-ISSUE #234] tcell test cannot run with TERM="" #129

Closed
opened 2026-03-03 16:22:37 +03:00 by kerem · 0 comments
Owner

Originally created by @yaseenhamdulay on GitHub (Apr 29, 2020).
Original GitHub issue: https://github.com/mum4k/termdash/issues/234

Originally assigned to: @mum4k on GitHub.

➜ termdash/tcell/tcell git:(5430f4d) TERM= go test
--- FAIL: TestNewTerminalColorMode (0.01s)
--- FAIL: TestNewTerminalColorMode/default_options (0.01s)
tcell_test.go:52: newTerminal => unexpected error:
exit status 1
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x5bf350]

goroutine 157 [running]:
testing.tRunner.func1.1(0x5f3180, 0x83b370)
/usr/lib/google-golang/src/testing/testing.go:941 +0x3d0
testing.tRunner.func1(0xc0001e6ea0)
/usr/lib/google-golang/src/testing/testing.go:944 +0x3f9
panic(0x5f3180, 0x83b370)
/usr/lib/google-golang/src/runtime/panic.go:967 +0x15d
github.com/mum4k/termdash/terminal/tcell.TestNewTerminalColorMode.func1(0xc0001e6ea0)
/usr/local/google/home/yaseenh/go/src/github.com/mum4k/termdash/terminal/tcell/tcell_test.go:56 +0xc0
testing.tRunner(0xc0001e6ea0, 0xc0001d2f30)
/usr/lib/google-golang/src/testing/testing.go:992 +0xdc
created by testing.(*T).Run
/usr/lib/google-golang/src/testing/testing.go:1043 +0x357
exit status 2
FAIL github.com/mum4k/termdash/terminal/tcell 0.040s

Originally created by @yaseenhamdulay on GitHub (Apr 29, 2020). Original GitHub issue: https://github.com/mum4k/termdash/issues/234 Originally assigned to: @mum4k on GitHub. ➜ termdash/tcell/tcell git:(5430f4d) TERM= go test --- FAIL: TestNewTerminalColorMode (0.01s) --- FAIL: TestNewTerminalColorMode/default_options (0.01s) tcell_test.go:52: newTerminal => unexpected error: exit status 1 panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x5bf350] goroutine 157 [running]: testing.tRunner.func1.1(0x5f3180, 0x83b370) /usr/lib/google-golang/src/testing/testing.go:941 +0x3d0 testing.tRunner.func1(0xc0001e6ea0) /usr/lib/google-golang/src/testing/testing.go:944 +0x3f9 panic(0x5f3180, 0x83b370) /usr/lib/google-golang/src/runtime/panic.go:967 +0x15d github.com/mum4k/termdash/terminal/tcell.TestNewTerminalColorMode.func1(0xc0001e6ea0) /usr/local/google/home/yaseenh/go/src/github.com/mum4k/termdash/terminal/tcell/tcell_test.go:56 +0xc0 testing.tRunner(0xc0001e6ea0, 0xc0001d2f30) /usr/lib/google-golang/src/testing/testing.go:992 +0xdc created by testing.(*T).Run /usr/lib/google-golang/src/testing/testing.go:1043 +0x357 exit status 2 FAIL github.com/mum4k/termdash/terminal/tcell 0.040s
kerem 2026-03-03 16:22:37 +03:00
  • closed this issue
  • added the
    bug
    label
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/termdash#129
No description provided.