Show addErrorContext
traces by default
#7553
Labels
error-messages
Confusing messages and better diagnostics
feature
Feature request or proposal
idea approved
The given proposal has been discussed and approved by the Nix team. An implementation is welcome.
language
The Nix expression language; parser, interpreter, primops, evaluation, etc
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
addErrorContext
traces 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-trace
if you're confused by the other issue).See the full example in #7552
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: