-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Fix improper alignment of matrices with elided strings #60812
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
base: master
Are you sure you want to change the base?
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
|
Taking a quick look at CI, this PR breaks a bunch of (overly strict?) tests and doc tests. |
|
oh, yup, does touch more than just strings... julia> A = Array{Pair,0}(undef)
julia> [[A] 1;1 1] # before
2×2 Matrix{Any}:
Array{Pair, 0}(UndefInitializer()) 1
1 1
julia> [[A] 1;1 1] # after
2×2 Matrix{Any}:
Array{Pair, 0}(UndefInitializer()) 1
1 1apparently undefined arrays work the opposite of strings; using the single-argument should be an easy enough fix; just changing the method for strings instead of for everything |
|
now they both work: julia> [[A] 1;1 1]
2×2 Matrix{Any}:
Array{Pair, 0}(UndefInitializer()) 1
1 1
julia> ["xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" 0 0 0 0;0 0 0 0 0]
2×5 Matrix{Any}:
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ⋯ 98 bytes ⋯ "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" 0 0 0 0
0 0 0 0 0 |
|
it looks like the test is finding some download error? I may be reading things wrong, but idk how this could affect (or effect, lol) that; maybe network was down when it ran or something? |
|
Yeah, the CI here can be flaky. Most probably any download-related failure is not due to the changes in your PR. |
|
then is there anything else I should do to like re run it or something; or just wait for review? |
|
If I were you I might try to force CI to restart by either merging with latest master or just pushing an empty commit to the PR branch. |
94094f9 to
941ef46
Compare
matrices use this alignment function to decide how wide rows are supposed to be, but the string elision requires the 3-argument show.
before:
after: