Zum Hauptinhalt gehen

[5.45] Additional syntax check in workflow designer

Abgeschlossen

Kommentare

11 Kommentare

  • Sean McClurkan

    Whenever a colleague and I are working side-by-side and I finish typing the name of a variable, we both chant out loud "DOT RESULT". We don't even think about it anymore. It's a ritual.

    2
  • Ken Lyon

    Berend Veldkamp I think we can make this work after all. There are a few parts to this:

    1. Identifying potential mistakes in expressions. As mentioned in a few places some common ones are:
      1. Missing “.result”. Or more generally, an expression like “=$foo” which does not refer to an output. (Admittedly “.result” is the most common case.)
      2. Forgetting the equals sign: “$form1.result”
      3. Forgetting the dollar sign: “=form1.result”
    2. Communicating this to the user.
      1. I like the idea of a warning saying “Did you mean…” with our guess of what was intended.
    3. Act on the suggestion
      1. I'd like to be able to apply the suggestion. Maybe this would be a new icon in the “Problems” panel for “apply suggestion”.
      2. I'd also like to be able to suppress a suggestion. It would be annoying to have a false positive that persists and cannot be hidden. This could lead to alert blindness and you'd end up potentially missing new warnings.

    I don't have a timeline for this as a whole, but I think I can get a few of the warning cases done initially.

    0
  • Ken Lyon

    Sean McClurkan Berend Veldkamp 

    Better late than never?

    2
  • Berend Veldkamp

    🥳

    1
  • Sean McClurkan

    I like it.  I'd suggest the following:

    The activity reference ‘$form1’ at position 2 is not followed by an output (e.g., ‘.result’). Is this intended?

    0
  • Ken Lyon

    Sean McClurkan Thanks for the suggestion.

    I could also just make the message “DOT RESULT!” if you'd prefer. 😊

    1
  • Sean McClurkan

    Only if it can be an audio file of me shouting it.

    1
  • Ken Lyon

    Ha ha, nice. That's a whole new realm of feedback we could explore.

    1
  • Ken Lyon

    Coming soon…

    (It only shows the warning if there is a $form1 in the workflow.)

    1
  • Gareth Evans

    Ken Lyon this better not be an April Fools thing!

    1
  • Ken Lyon

    @... Haha, no. Just happened to be April 1st. If I was more motivated, I could maybe have posted something with this in it:

    2

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.