[GH-ISSUE #80] Presentation demo, error in grid.go and table.go #58

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

Originally created by @nicolascb on GitHub (Mar 14, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/80

I'm having this problem when I try to run presentation:

➜  presentation git:(master) go run *.go
# command-line-arguments
./grid.go:16: tview.NewTextView().SetTextAlign(tview.AlignCenter).SetText undefined (type *tview.TextView has no field or method SetText)
./grid.go:32: undefined: tview.NewGrid
./table.go:273: tableCell.SetExpansion undefined (type *tview.TableCell has no field or method SetExpansion)
Originally created by @nicolascb on GitHub (Mar 14, 2018). Original GitHub issue: https://github.com/rivo/tview/issues/80 I'm having this problem when I try to run presentation: ``` ➜ presentation git:(master) go run *.go # command-line-arguments ./grid.go:16: tview.NewTextView().SetTextAlign(tview.AlignCenter).SetText undefined (type *tview.TextView has no field or method SetText) ./grid.go:32: undefined: tview.NewGrid ./table.go:273: tableCell.SetExpansion undefined (type *tview.TableCell has no field or method SetExpansion) ```
kerem closed this issue 2026-03-04 01:01:32 +03:00
Author
Owner

@rivo commented on GitHub (Mar 14, 2018):

Looks like you're referencing an old version of tview. You'll want to check your $GOPATH and the tview code that's located there. If it's the latest commit, you should not see these messages.

<!-- gh-comment-id:373159056 --> @rivo commented on GitHub (Mar 14, 2018): Looks like you're referencing an old version of `tview`. You'll want to check your $GOPATH and the `tview` code that's located there. If it's the latest commit, you should not see these messages.
Author
Owner

@nicolascb commented on GitHub (Mar 14, 2018):

Oh yeah man! Sorry!

<!-- gh-comment-id:373166619 --> @nicolascb commented on GitHub (Mar 14, 2018): Oh yeah man! Sorry!
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#58
No description provided.