NixCon 2022

Nix error traces improvements #6204
10-20, 11:10–11:15 (Europe/Paris), Main track (Gym)

Based on simple examples, this will showcase error reporting improvements implemented in the open PR.

For some errors, nix reports an odd, seemingly unrelated position. Or no position at all.
Usually, the same location is used for several potential errors inside a given scope. This PR makes the relation between the error and the location more explicit. For example using "in the second argument of the function call" when the only available location is the function call itself. In some occasion, it adds error messages with no location, and an intermediate "context" trace for the closest known location.

What level of experience in Nix is the talk addressed to?


Do you allow your talk to be recorded? – yes

Guillaume uses nix a lot, and sometimes inadvertently dives into its source code.

He has a background in computer science, engineering and applied mathematics. He is passionate about understanding complex systems and untangling intricate issues.