tview: Install error - cannot convert b.borderAttributes
go get fails with following error
go get github.com/rivo/tview
# github.com/rivo/tview
Workspace/go/src/github.com/rivo/tview/box.go:343:63: cannot convert b.borderAttributes (type tcell.AttrMask) to type tcell.Style
Workspace/go/src/github.com/rivo/tview/table.go:331:108: cannot convert attributes (type tcell.AttrMask) to type tcell.Style
Workspace/go/src/github.com/rivo/tview/table.go:888:150: cannot convert cell.Attributes (type tcell.AttrMask) to type tcell.Style
Workspace/go/src/github.com/rivo/tview/table.go:957:63: cannot convert a (type tcell.AttrMask) to type tcell.Style
Workspace/go/src/github.com/rivo/tview/table.go:1020:24: invalid operation: t.selectedStyle != 0 (mismatched types tcell.Style and int)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (9 by maintainers)
Everybody, I’ve upgraded
tview
to the latesttcell
version. Due to the changes intcell
, theTableCell.SetStyle()
function has changed. I hope this doesn’t break too many systems.I believe this should make
tview
work without modules again.Btw v2 is now released.
@afroewis yes, please install it in folder that has go.mod currently.