Error message for syntax errors reports a misleading line
Describe the bug
When a syntax error is present, and there are comments in the file, the line reported in the error message as having the syntax error requires manually counting and removing the lines that are only comment lines.
To Reproduce
Steps to reproduce the behavior:
-
Go to https://app.gitstream.cm/playground
-
Use any PR url, doesn't matter
-
Add some syntax error like
a: {{ ~ }}at the end of the file -
Error message will be like
Error: 60: (unknown path) [Line 49, Column 7] unexpected token: ~ -
where the
Linenumber is what the line number would be without comment lines
Expected behavior
The error message for a syntax error is the line in the file, not the line number after comments have been processed out.
Screenshots
Additional context
Add any other context about the problem here.
Hi @CloutKhan, thanks for raising this issue! We plan to improve our playground soon and will work on this as part of the effort