-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Errors not shown following clean-up of big stacks #5846
Comments
@Bobronium I guess it must be python-poetry/cleo#132 that did this |
I see your point and I agree. Can you post the output of From the description, my guess is that you're hitting plain To address your point: I think it really belongs to cleo. As well as my following thoughts: It might be worth checking if exception has any args (e.g. message) and if not, fallback to printing traceback). The more fine and "right" solution would be introducing expected exception class/set and hide traceback only for that exceptions. |
More verbose versions are more verbose, but I think would just clog this up - indeed we have hit an assertion with no message |
This seems like a good short term solution indeed, pending, as you suggest, some changes to properly raise errors with actionable error messages for the end user (as even if we do bring back tracebacks for errors without message, the user would still have to guess what the error is about). |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
recent work has cleaned up the big horrible stacks that poetry used to show whenever the smallest thing went wrong, which is great. But it has overshot slightly.
Example: create a project called
requests
, and thenpoetry add requests
.In an ideal world we'd get a nice clean error message saying that a project can't be a dependency of itself. But:
huh, that looks fine.
In fact poetry has hit an assertion, which you will see if you
poetry add requests -vvv
, and fallen over: but it has almost completely hidden this from the user.('almost' because the exit-code is non-zero, so that's good).
This particular assertion isn't the point, the point is that when poetry does bug out it now does too good a job of disguising that.
The text was updated successfully, but these errors were encountered: