[GH-ISSUE #548] Update github.com/mattn/go-runewidth to v0.0.10 #400

Closed
opened 2026-03-04 01:04:39 +03:00 by kerem · 6 comments
Owner

Originally created by @zemzale on GitHub (Jan 12, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/548

In glab we use both tview and go-runewidth

We can't update go-runewidth since this package requires v0.0.9. And there is a breaking change from v0.0.9 to v0.0.10 that removes runewidth.ZeroWidthJoiner which is used in https://github.com/rivo/tview/blob/master/util.go#L56

I locally did an update and nothing seemed to break, so I am ready to open an PR for this, if you are fine with this.

Originally created by @zemzale on GitHub (Jan 12, 2021). Original GitHub issue: https://github.com/rivo/tview/issues/548 In [glab](https://github.com/profclems/glab/pull/561) we use both `tview` and `go-runewidth` We can't update `go-runewidth` since this package requires v0.0.9. And there is a breaking change from v0.0.9 to v0.0.10 that removes `runewidth.ZeroWidthJoiner` which is used in `https://github.com/rivo/tview/blob/master/util.go#L56` I locally did an update and nothing seemed to break, so I am ready to open an PR for this, if you are fine with this.
kerem closed this issue 2026-03-04 01:04:39 +03:00
Author
Owner

@rivo commented on GitHub (Jan 12, 2021):

go-runewidth is imported indirectly by tcell and I opened an issue there (gdamore/tcell#423) to upgrade to the latest version so tview also gets the new version.

All of this happened yesterday (i.e. the change in go-runewidth) so I'm assuming (slash hoping) that it will be resolved these days. It shouldn't be a big effort.

<!-- gh-comment-id:758566675 --> @rivo commented on GitHub (Jan 12, 2021): `go-runewidth` is imported indirectly by [`tcell`](https://github.com/gdamore/tcell) and I opened an issue there (gdamore/tcell#423) to upgrade to the latest version so `tview` also gets the new version. All of this happened yesterday (i.e. the change in `go-runewidth`) so I'm assuming (slash hoping) that it will be resolved these days. It shouldn't be a big effort.
Author
Owner

@zemzale commented on GitHub (Jan 12, 2021):

Okay that's nice. Will wait for that then

<!-- gh-comment-id:758567569 --> @zemzale commented on GitHub (Jan 12, 2021): Okay that's nice. Will wait for that then
Author
Owner

@vainkop commented on GitHub (Jan 14, 2021):

go get github.com/orisano/dlayer
# github.com/rivo/tview
go/src/github.com/rivo/tview/util.go:56:2: undefined: runewidth.ZeroWidthJoiner
<!-- gh-comment-id:760086333 --> @vainkop commented on GitHub (Jan 14, 2021): ``` go get github.com/orisano/dlayer # github.com/rivo/tview go/src/github.com/rivo/tview/util.go:56:2: undefined: runewidth.ZeroWidthJoiner ```
Author
Owner

@rivo commented on GitHub (Jan 14, 2021):

I don't know why you're getting this. tview still uses v0.0.9 of go-runewidth, see here, which shouldn't result in this error. Make sure to use modules when importing tview.

<!-- gh-comment-id:760114495 --> @rivo commented on GitHub (Jan 14, 2021): I don't know why you're getting this. `tview` still uses v0.0.9 of `go-runewidth`, see [here](https://github.com/rivo/tview/blob/c818a0c789ee6b8327cf55de5415109181f63bcb/go.mod#L8), which shouldn't result in this error. Make sure to use modules when importing `tview`.
Author
Owner

@rivo commented on GitHub (Jan 17, 2021):

tcell was updated and this should be resolved with the latest commit now, too.

<!-- gh-comment-id:761838695 --> @rivo commented on GitHub (Jan 17, 2021): `tcell` was updated and this should be resolved with the latest commit now, too.
Author
Owner

@zemzale commented on GitHub (Jan 18, 2021):

Thanks!

<!-- gh-comment-id:762158236 --> @zemzale commented on GitHub (Jan 18, 2021): Thanks!
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#400
No description provided.