Open-Jellycore
Open-Jellycore copied to clipboard
the _jelly_ command-line tool does not appear to understand "[Images]" in _selectPhoto(types: [Images], multiple: false)_
Describe the bug
The line of code selectPhoto(types: [Images], multiple: false) >> selectedImage
compiling with the command-line tool jelly, "Successfully Compiled Shortcut" is output, but it is also proceeded by an internal compiler error message. Signing and using the output shortcut, does NOT bring up a picker of camera images. There generated shortcut operates not differently than one using the code selectPhoto(types: [], multiple: false) >> selectedImage
To Reproduce
Steps to reproduce the behavior:
- create a file called 2024_07Jul_15_blog_routinehub_co.jelly
- in a terminal widow type jelly 2024_07Jul_15_blog_routinehub_co.jelly --export --out 2024_07Jul_15_blog_routinehub_co.shortcut
- See output
SelectPhotoParameter(WFPhotoPickerTypes: Optional(Open_Jellycore.JellyArray<Open_Jellycore.Jelly_WFPhotoPickerTypes>(items: [Open_Jellycore.QuantumValue(value: Open_Jellycore.Jelly_WFPhotoPickerTypes.Images)])), WFSelectMultiplePhotos: Optional(Open_Jellycore.JellyBoolean(value: false, variable: nil))) invalidValue(Open_Jellycore.Jelly_WFPhotoPickerTypes.Images, Swift.EncodingError.Context(codingPath: [CodingKeys(stringValue: "WFPhotoPickerTypes", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "(Quantum Value Encoding) The value is not encodable", underlyingError: nil)) Successfully Compiled Shortcut
Expected behavior
The code should not include and internal error message re: invalidValue.
Screenshots
If applicable, add screenshots to help explain your problem.
Information
- Device: [MacBook Pro, 14-inch, 2021]
- OS: [macOS Sonoma 14.5]
- Jellycuts Version [??? command jelly does not output version info] (Can be found in Settings -> About)
- Jailbroken? [No]
Additional context
The signing the output shortcut and opening in Shortcuts seems to behave as expected. The presence of what looks like a error message is likely to create confusion and apprehension.