-
Notifications
You must be signed in to change notification settings - Fork 23
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
[BUG] TestTabWithColorBox
test fails on macos terminal
#29
Comments
This is quite an interesting issue. |
hi @nedpals can provide the |
here are the values (i'll just paste them as []rune as turning them to strings might lose info) topBar := string([]rune{9484, 32, 66, 111, 120, 32, 32, 32, 32, 32, 67, 76, 73, 32, 32, 32, 32, 32, 77, 97, 107, 101, 114, 32, 32, 32, 128230, 32, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9472, 9488})
title := string([]rune{66, 111, 120, 32, 32, 32, 67, 76, 73, 32, 32, 32, 32, 32, 77, 97, 107, 101, 114, 32, 32, 32, 128230}) |
there are |
There are the
|
@inhere Can you work on solving this? |
@Delta456 see: |
This seems to work on |
hi @Delta456 I am running the test directly in MacOS GoLand |
I see. I really wonder why it fails on |
I don't think you can even run |
Describe the bug
When running the test especially on
TestTabWithColorBox
, it crashes (specifically an out-of-bounds crash)To Reproduce
Steps to reproduce the behavior:
go test -v .
Expected behavior
Successful test
Screenshots / Logs
Versions (please complete the following information, if relevant):
Additional context
Debugging the text and the separator in runes shows the following results:
the title text in the topbar in
[]runes
(thecolor.clearCode(topBar)
) is66 111 120 32 32 32 32 32 67 76 73 32 32 32 32 32 77 97 107 101 114 32 32 32 128230
while the separator (the
color.clearCode(title)
) is66 111 120 32 32 32 67 76 73 32 32 32 32 32 77 97 107 101 114 32 32 32 128230
if you look at it closely on the first set of
32
s the text has 532
s while the separator has only 332
sprobably an issue with the
ClearCode
methodThe text was updated successfully, but these errors were encountered: