-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid line number while parsing YAML if comments are used #62
Comments
Depending on the purpose of the comments, a workaround (subject to another set of issues) is to use a I also confirmed that the new comment blob was added to the top of the generated JavaScript file as the |
We are using this yaml parser: https://github.com/jeremyfa/yaml.js , and this causes the issue. In the long run we have to switch to another YAML parsing library, because I also need to know every node's exact position (for better error reporting). We were talking about writing our own, which can be translated to Java AND JavaScript, so the WebIDE and the compiler would behave exactly the same ( kaitai-io/kaitai_struct#229 ). The problem is that currently we don't have enough resources to go further. |
Tamas - Yeah, and I'd love to volunteer because this seems like a cool project, but between my full-time job, my part-time job, my volunteer job, my cats and my garden, I'm thinking no ... Has this been reported to that project? I checked the issues for the project and I don't see anything about it. Getting this fixed in the upstream might be faster than making a new YAML parser ... |
I may have even found the root cause! See reference to jeremyfa/yaml.js#107 above. |
Report: #61 (comment)
Example:
Shows error at line 4, while the error is at line 7.
The text was updated successfully, but these errors were encountered: