Open-Jellycore icon indicating copy to clipboard operation
Open-Jellycore copied to clipboard

empty dictionary `dictionary(json: {})` generated syntax error

Open chrysaora-achlyos opened this issue 7 months ago • 2 comments

Describe the bug

import Shortcuts

dictionary(json: {})

generates a syntax error SYNTAX ERROR, line: 3, "ERROR (identifier content: (identifier_content)) (identifier content: (identifier_content)) (string_chars)" Check your syntax in the surrounding area.

To Reproduce

Steps to reproduce the behavior:

  1. create a file ed.jelly with the above code
  2. on the commnd line run the command jelly ed0.jelly --export --out ./ed0.shortcut
  3. see the above error

Expected behavior

expect the code to compile and generate an empy dictionary. The above code compiles in AppStore version of Jellycuts

Information

  • Device: [MacBook Pro 14-inch, 2021]

  • OS: [Sonoma 14.5]

  • Jellycuts Version [???] (Can be found in Settings -> About)

  • Jailbroken? [No]

  • Device: [iPhone SE]

  • OS: [iOS 17.5.1]

  • Jellycuts Version [not shown in setting-> About] (Can be found in Settings -> About)

  • Jailbroken? [No]

Additional context

https://discord.com/channels/503976650439131183/1234300822976729108/threads/1257212448168087603

even if correct, it may generate incorrect plist as does the current version of AppStore-Jellycuts

chrysaora-achlyos avatar Jul 21 '24 00:07 chrysaora-achlyos