Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing parameter name: PLACEHOLDER in Ask for Input. #25

Open
chrysaora-achlyos opened this issue Jul 26, 2024 · 0 comments
Open

Missing parameter name: PLACEHOLDER in Ask for Input. #25

chrysaora-achlyos opened this issue Jul 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@chrysaora-achlyos
Copy link

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:

  1. 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) 2. attempt to compile with the command jelly oj_jun27.jelly --export --out u_oj_jun27.shortcut 3. 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
@chrysaora-achlyos chrysaora-achlyos added the bug Something isn't working label Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant