[GH-ISSUE #205] undefined: runewidth.ZeroWidthJoiner #160

Closed
opened 2026-03-04 01:02:30 +03:00 by kerem · 7 comments
Owner

Originally created by @prologic on GitHub (Dec 15, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/205

I belive something you are depending on has changed and broken compat somehow

$ go build .
# github.com/rivo/tview
../go/pkg/mod/github.com/rivo/tview@v0.0.0-20181214165719-f93fbad8f897/util.go:55:2: undefined: runewidth.ZeroWidthJoiner

#189 did seem similar at first but I'm not sure it's the same issue?

Originally created by @prologic on GitHub (Dec 15, 2018). Original GitHub issue: https://github.com/rivo/tview/issues/205 I belive something you are depending on has changed and broken compat somehow ``` $ go build . # github.com/rivo/tview ../go/pkg/mod/github.com/rivo/tview@v0.0.0-20181214165719-f93fbad8f897/util.go:55:2: undefined: runewidth.ZeroWidthJoiner ``` #189 did seem similar at first but I'm not sure it's the same issue?
kerem closed this issue 2026-03-04 01:02:30 +03:00
Author
Owner

@prologic commented on GitHub (Dec 15, 2018):

$ cat go.mod
module github.com/prologic/chat

require (
	github.com/gdamore/encoding v0.0.0-20151215212835-b23993cbb635 // indirect
	github.com/gdamore/tcell v1.1.0
	github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e // indirect
	github.com/jtolds/gls v4.2.1+incompatible // indirect
	github.com/lucasb-eyer/go-colorful v0.0.0-20181028223441-12d3b2882a08 // indirect
	github.com/mattn/go-runewidth v0.0.3 // indirect
	github.com/rivo/tview v0.0.0-20181214165719-f93fbad8f897
	github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d // indirect
	github.com/smartystreets/goconvey v0.0.0-20181108003508-044398e4856c // indirect
	golang.org/x/text v0.3.0 // indirect
	gopkg.in/DATA-DOG/go-sqlmock.v1 v1.3.0 // indirect
)
<!-- gh-comment-id:447572044 --> @prologic commented on GitHub (Dec 15, 2018): ``` $ cat go.mod module github.com/prologic/chat require ( github.com/gdamore/encoding v0.0.0-20151215212835-b23993cbb635 // indirect github.com/gdamore/tcell v1.1.0 github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e // indirect github.com/jtolds/gls v4.2.1+incompatible // indirect github.com/lucasb-eyer/go-colorful v0.0.0-20181028223441-12d3b2882a08 // indirect github.com/mattn/go-runewidth v0.0.3 // indirect github.com/rivo/tview v0.0.0-20181214165719-f93fbad8f897 github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d // indirect github.com/smartystreets/goconvey v0.0.0-20181108003508-044398e4856c // indirect golang.org/x/text v0.3.0 // indirect gopkg.in/DATA-DOG/go-sqlmock.v1 v1.3.0 // indirect ) ```
Author
Owner

@rivo commented on GitHub (Dec 16, 2018):

It certainly looks like the same issue as #189. The latest version of mattn/runewidth has ZeroWidthJoiner defined, see here. Looks like it's not in v0.0.3 yet, though.

If you upgrade runewidth to the latest commit, it should work.

On another note, as mentioned elsewhere already, I will introduce modules and versioning when Go v1.12 is out. But in this case, since @mattn hasn't tagged the latest version yet, if I wanted to use tags instead of commit hashes, I'd have to wait quite long to incorporate his change into my package. People have asked for version numbers quite often here but what it likely comes down to is that many users will have outdated versions of the package.

Anyway, my comment is not related to this issue so you can ignore it. ;-)

Let me know if you could get it to work.

<!-- gh-comment-id:447637556 --> @rivo commented on GitHub (Dec 16, 2018): It certainly looks like the same issue as #189. The latest version of [`mattn/runewidth`](https://github.com/mattn/go-runewidth/) has `ZeroWidthJoiner` defined, see [here](https://github.com/mattn/go-runewidth/blob/3ee7d812e62a0804a7d0a324e0249ca2db3476d3/runewidth.go#L12). Looks like it's not in v0.0.3 yet, though. If you upgrade `runewidth` to the latest commit, it should work. On another note, as mentioned elsewhere already, I will introduce modules and versioning when Go v1.12 is out. But in this case, since @mattn hasn't tagged the latest version yet, if I wanted to use tags instead of commit hashes, I'd have to wait quite long to incorporate his change into my package. People have asked for version numbers quite often here but what it likely comes down to is that many users will have outdated versions of the package. Anyway, my comment is not related to this issue so you can ignore it. ;-) Let me know if you could get it to work.
Author
Owner

@prologic commented on GitHub (Dec 16, 2018):

Yeah I'm actually using go mod here myself and have already "tried"
upgrading the mentioned dep to no avail. I haven't dug any further atm.

James Mills / prologic

E: prologic@shortcircuit.net.au
W: prologic.shortcircuit.net.au

On Sun, Dec 16, 2018 at 10:03 PM rivo notifications@github.com wrote:

It certainly looks like the same issue as #189
https://github.com/rivo/tview/issues/189. The latest version of
mattn/runewidth https://github.com/mattn/go-runewidth/ has
ZeroWidthJoiner defined, see here
https://github.com/mattn/go-runewidth/blob/3ee7d812e62a0804a7d0a324e0249ca2db3476d3/runewidth.go#L12.
Looks like it's not in v0.0.3 yet, though.

If you upgrade runewidth to the latest commit, it should work.

On another note, as mentioned elsewhere already, I will introduce modules
and versioning when Go v1.12 is out. But in this case, since @mattn
https://github.com/mattn hasn't tagged the latest version yet, if I
wanted to use tags instead of commit hashes, I'd have to wait quite long to
incorporate his change into my package. People have asked for version
numbers quite often here but what it likely comes down to is that many
users will have outdated versions of the package.

Anyway, my comment is not related to this issue so you can ignore it. ;-)

Let me know if you could get it to work.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rivo/tview/issues/205#issuecomment-447637556, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABOv-mMi1u1JtiXiEXHD21IChgMtmvovks5u5jaugaJpZM4ZUwWa
.

<!-- gh-comment-id:447638262 --> @prologic commented on GitHub (Dec 16, 2018): Yeah I'm actually using `go mod` here myself and have already "tried" upgrading the mentioned dep to no avail. I haven't dug any further atm. James Mills / prologic E: prologic@shortcircuit.net.au W: prologic.shortcircuit.net.au On Sun, Dec 16, 2018 at 10:03 PM rivo <notifications@github.com> wrote: > It certainly looks like the same issue as #189 > <https://github.com/rivo/tview/issues/189>. The latest version of > mattn/runewidth <https://github.com/mattn/go-runewidth/> has > ZeroWidthJoiner defined, see here > <https://github.com/mattn/go-runewidth/blob/3ee7d812e62a0804a7d0a324e0249ca2db3476d3/runewidth.go#L12>. > Looks like it's not in v0.0.3 yet, though. > > If you upgrade runewidth to the latest commit, it should work. > > On another note, as mentioned elsewhere already, I will introduce modules > and versioning when Go v1.12 is out. But in this case, since @mattn > <https://github.com/mattn> hasn't tagged the latest version yet, if I > wanted to use tags instead of commit hashes, I'd have to wait quite long to > incorporate his change into my package. People have asked for version > numbers quite often here but what it likely comes down to is that many > users will have outdated versions of the package. > > Anyway, my comment is not related to this issue so you can ignore it. ;-) > > Let me know if you could get it to work. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/rivo/tview/issues/205#issuecomment-447637556>, or mute > the thread > <https://github.com/notifications/unsubscribe-auth/ABOv-mMi1u1JtiXiEXHD21IChgMtmvovks5u5jaugaJpZM4ZUwWa> > . >
Author
Owner

@mattn commented on GitHub (Dec 16, 2018):

I tagged v0.0.4 just now.

<!-- gh-comment-id:447644661 --> @mattn commented on GitHub (Dec 16, 2018): I tagged v0.0.4 just now.
Author
Owner

@prologic commented on GitHub (Dec 16, 2018):

Thanks I'll give it a whirl soon!

James Mills / prologic

E: prologic@shortcircuit.net.au
W: prologic.shortcircuit.net.au

On Sun, Dec 16, 2018 at 11:46 PM mattn notifications@github.com wrote:

I tagged v0.0.4 just now.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rivo/tview/issues/205#issuecomment-447644661, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABOv-jd1GvYmra_BydnPzilYPnJBKMyTks5u5k6vgaJpZM4ZUwWa
.

<!-- gh-comment-id:447648527 --> @prologic commented on GitHub (Dec 16, 2018): Thanks I'll give it a whirl soon! James Mills / prologic E: prologic@shortcircuit.net.au W: prologic.shortcircuit.net.au On Sun, Dec 16, 2018 at 11:46 PM mattn <notifications@github.com> wrote: > I tagged v0.0.4 just now. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/rivo/tview/issues/205#issuecomment-447644661>, or mute > the thread > <https://github.com/notifications/unsubscribe-auth/ABOv-jd1GvYmra_BydnPzilYPnJBKMyTks5u5k6vgaJpZM4ZUwWa> > . >
Author
Owner

@uchobby commented on GitHub (Jul 8, 2019):

Just tried to "go get" and got the error. looks like it's not fixed. What can I do?

C:\Users<username>\go\src\github.com\gdamore\tcell_demos>go get github.com/rivo/tview

github.com/rivo/tview

......\rivo\tview\util.go:56:2: undefined: runewidth.ZeroWidthJoiner

<!-- gh-comment-id:509333553 --> @uchobby commented on GitHub (Jul 8, 2019): Just tried to "go get" and got the error. looks like it's not fixed. What can I do? C:\Users\<username>\go\src\github.com\gdamore\tcell\_demos>go get github.com/rivo/tview # github.com/rivo/tview ..\..\..\rivo\tview\util.go:56:2: undefined: runewidth.ZeroWidthJoiner
Author
Owner

@rivo commented on GitHub (Jul 10, 2019):

@uchobby, are you using go modules? tview's go.mod file specifies 0.0.4 for mattn/go-runewidth which should include the ZeroWidthJoiner variable. Make sure that you're using that version.

<!-- gh-comment-id:510026157 --> @rivo commented on GitHub (Jul 10, 2019): @uchobby, are you using go modules? `tview`'s `go.mod` file specifies `0.0.4` for `mattn/go-runewidth` which should include the `ZeroWidthJoiner` variable. Make sure that you're using that version.
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#160
No description provided.