Open-Jellycore
Open-Jellycore copied to clipboard
Missing parameter name: PLACEHOLDER in Ask for Input.
Describe the bug
the working Appstore Jellycuts code from routinehub.co blog https://blog.routinehub.co/creating-a-qr-code-generator-shortcut-with-jellycuts/ does not compile with Open-Jellycore jelly
To Reproduce
Steps to reproduce the behavior:
- insert the code below into a file oj_jun.jelly
import Shortcuts askForInput(prompt: "Enter the URL to generate QR code", type: URL, default:, allowDecimal: false, allowNegative: false) >> url createQR(text: url, correction: Medium) >> qrCode quicklook(input: qrCode)
- attempt to compile with the command
jelly oj_jun27.jelly --export --out u_oj_jun27.shortcut
- See error
Missing parameter name: PLACEHOLDER in Ask for Input. Jelly no longer supports unnamed parameters. You need to include the parameter name - (PLACEHOLDER:) in the function: (Ask for Input) Missing parameter default in askForInput. Make sure that you have included all of the parameters you wish in the function askForInput
Expected behavior
compile without error
Information
- Device: [macBook Pro, 14-inch, 2021]
- OS: [Sonoma 14.5]
- Jellycuts Version [??? no means to get version (/opt/homebrew/bin/jelly)]
- Jailbroken? [No]
Additional context
the cleaned up code, without "default:, allowDecimal: false, allowNegative: false" compiles and executes fine when signed and loaded in Shortuts
import Shortcuts
askForInput(prompt: "Enter the URL to generate QR code", type: URL) >> url
createQR(text: url, correction: Medium) >> qrCode
quicklook(input: qrCode)
$CMD jelly oj_jun27_2.jelly --export --out u_oj_jun27_2.shortcut
$CMD shortcuts sign --mode anyone --input u_oj_jun27_2.shortcut --output oj_jun27_2.shortcut
$CMD open -a Shortcuts oj_jun27_2.shortcut