-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Show addErrorContext traces by default #7553
Copy link
Copy link
Closed
Labels
error-messagesConfusing messages and better diagnosticsConfusing messages and better diagnosticsfeatureFeature request or proposalFeature request or proposalidea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.The given proposal has been discussed and approved by the Nix team. An implementation is welcome.languageThe Nix expression language; parser, interpreter, primops, evaluation, etcThe Nix expression language; parser, interpreter, primops, evaluation, etc
Metadata
Metadata
Assignees
Labels
error-messagesConfusing messages and better diagnosticsConfusing messages and better diagnosticsfeatureFeature request or proposalFeature request or proposalidea approvedThe given proposal has been discussed and approved by the Nix team. An implementation is welcome.The given proposal has been discussed and approved by the Nix team. An implementation is welcome.languageThe Nix expression language; parser, interpreter, primops, evaluation, etcThe Nix expression language; parser, interpreter, primops, evaluation, etc
Fields
Give feedbackNo fields configured for issues without a type.
Is your feature request related to a problem? Please describe.
Module system stack traces are too long. The low information density makes users believe that they won't learn anything from reading through it, but essential information is in the stack trace, thanks to builtins.addErrorContext.
Describe the solution you'd like
addErrorContexttraces are sufficiently valuable and terse that the should always be shown.Optionally, add
--no-trace, to disable that, but I don't think we even want that.Describe alternatives you've considered
See the following and its alternatives
Additional context
Example
This would have been a 700 line stack trace with
--show-trace(or--full-traceif you're confused by the other issue).See the full example in #7552
Priorities
Add 👍 to issues you find important.