https://pantsbuild.org/ logo
#general
Title
# general
h

hundreds-father-404

12/02/2020, 5:18 PM
Error message idea: thoughts on Pants starting to analyze subprocess failures and give some suggestions? For example: * If Pytest gives “ModuleNotFoundError”, append a suggestion to run
./pants dependencies path/to/file.py
to ensure everything shows up. * If Pex interpreter constraints are not satisifiable, suggest running
py-constraints
. * “DoubleRequirementError”: give the advice from https://www.pantsbuild.org/docs/troubleshooting#double-requirement-given-error-when-resolving-requirements We’d do something like
if "ModuleNotFoundError" in result.stderr
, and append the message below the process’s output Thoughts? Posted in #documentation
4 Views