You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the underlying command is not found, the error given is not great.
❯ phylum parse
Generating lockfile for manifest "/Users/maxrake/dev/delme/manifest_test/./pip/requirements.txt" using Pip…
❗ Error: failed to run command "cd \"/Users/maxrake/dev/delme/manifest_test/pip\" && \"pip-compile\" \"-o\" \"requirements-locked.txt\" \"/Users/maxrake/dev/delme/manifest_test/./pip/requirements.txt\"": No such file or directory (os error 2)
This has a few issues:
The cd <dir> && is just noise that hides the actual issue
All of the escaped quotes in the string are distracting
A better message could look something like this:
❯ phylum parse
Generating lockfile for manifest "/Users/maxrake/dev/delme/manifest_test/./pip/requirements.txt" using Pip…
❗ Error: failed to run command: "pip-compile" "-o" "requirements-locked.txt" "/Users/maxrake/dev/delme/manifest_test/./pip/requirements.txt"
Caused by:
No such file or directory (os error 2)
The text was updated successfully, but these errors were encountered:
This patch changes the error generated during lockfile generation when
the ecosystem's package manager subprocess could not be spawned
successfully.
Instead of printing the full debug formatting of the command, just the
program and its argument are printed.
Closes#1084.
This patch changes the error generated during lockfile generation when
the ecosystem's package manager subprocess could not be spawned
successfully.
Instead of printing the full debug formatting of the command, just the
program is printed. This should prevent users from being confused by
irrelevant details in the error message.
Closes#1084.
When the underlying command is not found, the error given is not great.
This has a few issues:
cd <dir> &&
is just noise that hides the actual issueA better message could look something like this:
The text was updated successfully, but these errors were encountered: