aboutsummaryrefslogtreecommitdiff
path: root/doc/manual
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-04 09:14:11 +0100
committereldritch horrors <pennae@lix.systems>2024-03-04 09:25:17 +0100
commit5bda6d9dc897bf60be4025cac418dcbdd835bf3c (patch)
tree0eb440262f0ba850e4e73a6d7cb16f8c02a4fcdd /doc/manual
parent4551dd0f2c6f3050c2434b413da173e7826cf3cf (diff)
Merge pull request #9915 from 9999years/evaluating-attribute-position
Add position information to `while evaluating the attribute` errors in the debugger (cherry picked from commit ffe67c86a8ef3695e5c8b9c9800c192ac633dded) Change-Id: I177ea5ec60898abe09fb9d80d9602b2a32ff8f44
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/rl-next/source-location-in-while-evaluating-attribute.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/manual/rl-next/source-location-in-while-evaluating-attribute.md b/doc/manual/rl-next/source-location-in-while-evaluating-attribute.md
new file mode 100644
index 000000000..0e0b74c5a
--- /dev/null
+++ b/doc/manual/rl-next/source-location-in-while-evaluating-attribute.md
@@ -0,0 +1,23 @@
+---
+synopsis: "In the debugger, `while evaluating the attribute` errors now include position information"
+prs: 9915
+---
+
+Before:
+
+```
+0: while evaluating the attribute 'python311.pythonForBuild.pkgs'
+0x600001522598
+```
+
+After:
+
+```
+0: while evaluating the attribute 'python311.pythonForBuild.pkgs'
+/nix/store/hg65h51xnp74ikahns9hyf3py5mlbbqq-source/overrides/default.nix:132:27
+
+ 131|
+ 132| bootstrappingBase = pkgs.${self.python.pythonAttr}.pythonForBuild.pkgs;
+ | ^
+ 133| in
+```