[GH-ISSUE #492] failing installation #360

Closed
opened 2026-03-04 01:04:18 +03:00 by kerem · 4 comments
Owner

Originally created by @Roderick-Jonsson on GitHub (Aug 29, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/492

When doing a go get github.com/rivo/tview I get the following message and cant use tview for development.
I am doing this on a mac os x Mojave 10.14.3

What do I have to do to resolve this issue? I assume it must be something basic I missed

rmb:github-repo Rod$ go get github.com/rivo/tview
# github.com/rivo/tview
../../go/src/github.com/rivo/tview/box.go:343:63: cannot convert b.borderAttributes (type tcell.AttrMask) to type tcell.Style
../../go/src/github.com/rivo/tview/table.go:318:108: cannot convert attributes (type tcell.AttrMask) to type tcell.Style
../../go/src/github.com/rivo/tview/table.go:875:150: cannot convert cell.Attributes (type tcell.AttrMask) to type tcell.Style
../../go/src/github.com/rivo/tview/table.go:944:63: cannot convert a (type tcell.AttrMask) to type tcell.Style
../../go/src/github.com/rivo/tview/table.go:1007:24: invalid operation: t.selectedStyle != 0 (mismatched types tcell.Style and int)
Originally created by @Roderick-Jonsson on GitHub (Aug 29, 2020). Original GitHub issue: https://github.com/rivo/tview/issues/492 When doing a `go get github.com/rivo/tview` I get the following message and cant use tview for development. I am doing this on a mac os x Mojave 10.14.3 What do I have to do to resolve this issue? I assume it must be something basic I missed ``` rmb:github-repo Rod$ go get github.com/rivo/tview # github.com/rivo/tview ../../go/src/github.com/rivo/tview/box.go:343:63: cannot convert b.borderAttributes (type tcell.AttrMask) to type tcell.Style ../../go/src/github.com/rivo/tview/table.go:318:108: cannot convert attributes (type tcell.AttrMask) to type tcell.Style ../../go/src/github.com/rivo/tview/table.go:875:150: cannot convert cell.Attributes (type tcell.AttrMask) to type tcell.Style ../../go/src/github.com/rivo/tview/table.go:944:63: cannot convert a (type tcell.AttrMask) to type tcell.Style ../../go/src/github.com/rivo/tview/table.go:1007:24: invalid operation: t.selectedStyle != 0 (mismatched types tcell.Style and int) ```
kerem closed this issue 2026-03-04 01:04:18 +03:00
Author
Owner

@Roderick-Jonsson commented on GitHub (Aug 29, 2020):

Seems same is happening on a freshly installed ubuntu box

<!-- gh-comment-id:683287337 --> @Roderick-Jonsson commented on GitHub (Aug 29, 2020): Seems same is happening on a freshly installed ubuntu box
Author
Owner

@drawm commented on GitHub (Aug 29, 2020):

👀 Same on my Manjaro laptop

go get github.com/rivo/tview
# github.com/rivo/tview
../../../go/src/github.com/rivo/tview/box.go:343:63: cannot convert b.borderAttributes (type tcell.AttrMask) to type tcell.Style
../../../go/src/github.com/rivo/tview/table.go:318:108: cannot convert attributes (type tcell.AttrMask) to type tcell.Style
../../../go/src/github.com/rivo/tview/table.go:875:150: cannot convert cell.Attributes (type tcell.AttrMask) to type tcell.Style
../../../go/src/github.com/rivo/tview/table.go:944:63: cannot convert a (type tcell.AttrMask) to type tcell.Style
../../../go/src/github.com/rivo/tview/table.go:1007:24: invalid operation: t.selectedStyle != 0 (mismatched types tcell.Style and int)
<!-- gh-comment-id:683350286 --> @drawm commented on GitHub (Aug 29, 2020): :eyes: Same on my Manjaro laptop ``` go get github.com/rivo/tview # github.com/rivo/tview ../../../go/src/github.com/rivo/tview/box.go:343:63: cannot convert b.borderAttributes (type tcell.AttrMask) to type tcell.Style ../../../go/src/github.com/rivo/tview/table.go:318:108: cannot convert attributes (type tcell.AttrMask) to type tcell.Style ../../../go/src/github.com/rivo/tview/table.go:875:150: cannot convert cell.Attributes (type tcell.AttrMask) to type tcell.Style ../../../go/src/github.com/rivo/tview/table.go:944:63: cannot convert a (type tcell.AttrMask) to type tcell.Style ../../../go/src/github.com/rivo/tview/table.go:1007:24: invalid operation: t.selectedStyle != 0 (mismatched types tcell.Style and int) ```
Author
Owner

@drawm commented on GitHub (Aug 29, 2020):

Did you init your go module? After I ran into a similar problem with another library I went back and read https://golang.org/doc/code.html and figured I forgot to run go mod init my/module/path.

go get github.com/rivo/tview now works without issues 🤷

<!-- gh-comment-id:683353193 --> @drawm commented on GitHub (Aug 29, 2020): Did you init your go module? After I ran into a similar problem with another library I went back and read https://golang.org/doc/code.html and figured I forgot to run `go mod init my/module/path`. `go get github.com/rivo/tview` now works without issues :shrug:
Author
Owner

@Roderick-Jonsson commented on GitHub (Aug 30, 2020):

@drawm Yes that solved it for me. Thanks for helping out so fast 🏆

<!-- gh-comment-id:683422114 --> @Roderick-Jonsson commented on GitHub (Aug 30, 2020): @drawm Yes that solved it for me. Thanks for helping out so fast 🏆
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#360
No description provided.