Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestTerminalStringWidth #41

Open
Charleslvn opened this issue Mar 30, 2018 · 1 comment
Open

TestTerminalStringWidth #41

Charleslvn opened this issue Mar 30, 2018 · 1 comment

Comments

@Charleslvn
Copy link

With:
go1.10 linux/amd64

Hello,
I try to build and test your project and it fails with :

Testing: "/builddir/build/BUILD/markdownfmt-10aae0a270abfb5d929ae6ca59c4b0ac0fa8f237/_build/src/github.com/shurcooL/markdownfmt/markdown"

  • GOPATH=/builddir/build/BUILD/markdownfmt-10aae0a270abfb5d929ae6ca59c4b0ac0fa8f237/_build:/usr/share/gocode
  • go test -buildmode pie -compiler gc -ldflags '-extldflags '''-Wl,-z,relro ''''
    --- FAIL: TestTerminalStringWidth (0.00s)
    stringwidth_test.go:35: got 10, want 8
    FAIL
    exit status 1
    FAIL github.com/shurcooL/markdownfmt/markdown

Could you help me please ?

Thanks

@dmitshur
Copy link
Member

dmitshur commented Mar 30, 2018

Hello,

I can't reproduce the failure. It works okay for me:

$ go test github.com/shurcooL/markdownfmt/...
?   	github.com/shurcooL/markdownfmt	[no test files]
ok  	github.com/shurcooL/markdownfmt/markdown	0.036s

I suspect it could be failing for you for one of 2 reasons:

  1. Perhaps one of your dependencies (most notably, go-runewidth) is out of date. Try updating your dependencies with:

    go get -u github.com/shurcooL/markdownfmt/...
    

    Then try again.

  2. Perhaps your environment is different. I know that go-runewidth reads some environment variables to determine its behavior. Check if any of https://github.com/mattn/go-runewidth/search?q=getenv are set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants