markdownfmt icon indicating copy to clipboard operation
markdownfmt copied to clipboard

TestTerminalStringWidth

Open Charleslvn opened this issue 6 years ago • 1 comments

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

Charleslvn avatar Mar 30 '18 11:03 Charleslvn

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.

dmitshur avatar Mar 30 '18 16:03 dmitshur