-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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?]: Unnecessary package name truncation in upgrade-interactive
#5723
Comments
I'm not familiar with that builtin. Do you have a link? I'm a bit surprised that in the example above where the first column has been allocated a width of 41 characters, this builtin would somehow choose to render:
There seems to be no rhyme or reason to it. Are you claiming this isn't a Yarn bug? |
I somewhat suspect that the code truncating the columns when the content is larger isn't taking the ansi codes into account when computing the slice 🤔 Unfortunately it seems to come from |
The behavior at different sizes is kind of interesting to see (iTerm2 on MacOS): Screen.Recording.2023-12-03.at.12.35.09.mov
|
@arcanis: I noticed that Yarn uses What I think might be happening:
Maybe things will work better if Yarn stops using two separate libraries and just uses Tangent: There's an enhancement request on |
I can reproduce the same issue. It did work as expected until I updated from 4.1.0 -> 4.1.1. Now even a downgrade won't fix it again. |
Self-service
Describe the bug
Package names seem to be unnecessarily truncated when using
yarn upgrade-interactive
on a narrow terminal — for example, seejes
instead ofjest
,graphq
instead ofgraphql
etc:To reproduce
Run
yarn upgrade-interactive
in a narrow terminal window. Not sure if a very wide package name is needed to make this manifest (seeprettier-v2-for-jest-inline-snapshots
in the example above).Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: