Jellycuts / Jellycuts-Issues

A public issue tracker for the Jellycuts iOS app.
25 stars 0 forks source link

Notification/Alert content not found #105

Closed MrPlayerYork closed 2 years ago

MrPlayerYork commented 2 years ago

Describe the bug

I'm trying to use the notifications for debugging, but when I go to compile the script I get 'Compilation Warning: Could not find any content for the parameter cancel in alert'. When I export it anyway, it looks like it combines the title and cancel/sound parameters into the title space.

To Reproduce

Steps to reproduce the behavior:

  1. Make a new Jelly.
  2. Make an alert or notification.
  3. Fill them out as you would normally.
  4. Export to shortcuts.
  5. In shortcuts, look at the title in the drop down off the action.

Expected behavior

The title to have just what's in the quotations and the boolean to work as expected.

Information

ActuallyTaylor commented 2 years ago

Can you please send the Jelly code that is causing this issue?

MrPlayerYork commented 2 years ago
import Shortcuts
#Color: red, #Icon: shortcuts

//check if shortcut input has a value.
var input = Shortcut Input
if(input != nil){
    text(text: "true")
} else {
    text(text: "false")
} >> TestInput

alert(alert: TestInput, title: "debug", cancel: false)
ActuallyTaylor commented 2 years ago

Thank you! I will get this fixed up for the next version

MrPlayerYork commented 2 years ago

I have done multiple different variations of what I'm putting in the parameters, i found that putting no special characters makes it work semi correctly. Semi meaning, i made the magic variable for the if statement and the alert is not linking up.

When I import a shortcut with the expected output, it shows exactly what I typed in here. But when i don't touch it and export right back to shortcuts, its very broken.

So I don't know if I'm doing something wrong.

ActuallyTaylor commented 2 years ago

Alright I fixed this up for the next version! You were not doing anything wrong, it was a parser issue on my end. If you would like I can add you to the TestFlight beta for the version. Just fill out this form to get registered for the beta.

https://forms.gle/ejR1AgGVCnANoBbo6