mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 23:23:37 +01:00
Wrong source location when spreading amended object #242
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @odenix on GitHub (Nov 3, 2024).
The error message correctly complains about "bar" but shows the source location of "foo":
This issue is caused by a fundamental flaw in how
VmObject.iterateMemberValues()works. The same issue likely exists in other places.I'm working towards a fix that offers better ways to iterate over
VmObject. (It's how I discovered this problem.)PS: The blue colored line numbers
7 |and1 |are difficult to read on black background.@bioball commented on GitHub (Nov 4, 2024):
Hm, it doesn't look too bad for me. But, hard to predict how every terminal renders this. Can you send a screenshot?
@odenix commented on GitHub (Nov 4, 2024):
I can barely read them.
@odenix commented on GitHub (Nov 11, 2024):
I have a PR ready. I'll send it once fewer PRs are in flight.