kestra-io / kestra

:zap: Workflow Automation Platform. Orchestrate & Schedule code in any language, run anywhere, 500+ plugins. Alternative to Zapier, Rundeck, Camunda, Airflow...
https://kestra.io
Apache License 2.0
10.78k stars 933 forks source link

Autocompletion for the "error" property is aware of taskId but not aware of message and stackTrace properties #5641

Open anna-geller opened 4 hours ago

anna-geller commented 4 hours ago

Describe the issue

image

We should extend the autocompletion if possible so that users don't have to look up those error properties

To reproduce:

id: errors
namespace: company.team

tasks:
  - id: hello
    type: io.kestra.plugin.core.log.Log
    message: Starting the workflow
  - id: fail
    type: io.kestra.plugin.core.execution.Fail

errors:
  - id: error-log
    type: io.kestra.plugin.core.log.Log
    message:
      - "It's the fault of '{{ error.taskId }}'"
      - "See the message: {{ error.message }}"
      - "{{ error.stackTrace }}"

Environment

loicmathieu commented 4 hours ago

Oh yes! Sorry, I forgot them. We'll have them tomorrow