Line numbers in workflow file syntax errors are off by one

Check out this build:

image

As described in another issue, the error is not actually in line 65, it’s in 66.

Forgot to add one from the zero-based array? Whoops.

Hi @reitzig,

Thank you for reaching this out!

I raised an internal ticket about this incorrect error line.

Besides, if i add another syntax error to the if expression, i notice the error line is correct in this case. Screenshot as below:
errorline

Anyway there should be an improvement of the github error parser. :thinking:

1 Like