Skip to content

Unusual variable names valid in AppStore Jellycuts are invalid in Open-Jellycore #34

@chrysaora-achlyos

Description

@chrysaora-achlyos

Describe the bug

The following code compile and runs in AppStore Jellycuts, but generates a syntax error in Open-Jellycore

import Shortcuts
var -(varA)="a"
quicklook(input: -(varA))

To Reproduce

Steps to reproduce the behavior:

  1. create a file a.jelly by copying the code above in to the file
  2. run the command jelly a.jelly --export --out u_a.shortcut
  3. observe "SYNTAX ERROR, line: 2,..."

Expected behavior

If AppStore Jellycuts is the golden standard, the code should compile and display "a" is the quick look

Information

  • Device: [macBook Pro, 14-inch, 2021]
  • OS: [Sonoma 14.5]
  • Jellycuts Version [??? jelly command does not provide version info (/opt/homebrew/bin/jelly)]
  • Jailbroken? [No]

Additional context

Variables in shortcuts can have strange names like "-(varA)". To what extent that should be supported in the jelly language is unclear, but both AppStore Jellycuts and Open-Jellycore should be consistent, so one can move code from one to the other and have them both compile or both fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions