Open mikenerone opened 4 years ago
It turns out the cause of this is poetry
attempting some dynamic formatting, wherein the full_pretty_version
of any locked package (which includes that long URL in the above case) makes the output line too long for the terminal width. In this case, poetry
drops all of the version information for all packages along with it. IMO, this is very surprising, and is throwing out the baby with the bathwater, as the user is specifically calling for version details. I would suggest at least including the "not-full" pretty_version
of the locked dep, which would leave out the URL, along with the latest pretty_version
.
I hit this recently and would add that not only is it surprising it makes the output unpredictable for scripting. I hit it without the -l or -o flags just poetry show --without dev
for example
Posting here as #8907 was closed as probable duplicate.
My issue where resolved by running stty cols 200
. (In my case the cuttoff seem to be at 143)
[x] I am on the latest Poetry version.
[x] I have searched the issues of this repo and believe that this is not a duplicate.
[x] If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: MacOS 10.15.6
Poetry version: 1.1.0b2
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/mikenerone/ca037adbb105239cc4c82043a7bdf09c
Issue
Adding a URL dependency breaks the functionality of
poetry show -l
andpoetry show -o
, causing them both to have name-only output similar to barepoetry show
.