mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 23:23:37 +01:00
Property name with hypen produces error #120
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 @tmanternach on GitHub (Mar 18, 2024).
What are you trying to achieve?
I am trying to use pkl to produce a json file that uses hypens in many property names.
What’s the impact of this bug/feature?
I cannot use pkl to produce this json file.
pkl --versionPkl 0.25.2 (Linux 5.15.0-1050-aws, native)Test file
Running
pkl eval -f json file.pklproduces the following error:Expected behavior
I would expect
pkl eval -f json file.pklto produce the following:Thank you.
@odenix commented on GitHub (Mar 18, 2024):
You can use backticks:
@tmanternach commented on GitHub (Mar 18, 2024):
Thank you! I swear I tried everything but backticks.
@StefMa commented on GitHub (Mar 18, 2024):
Same applies BTW for keywords.
E.g
On Mon, Mar 18, 2024, 6:25 PM Trevor Manternach @.***>
wrote: