{"action":"created","issue":{"url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/38","labels_url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/38/comments","events_url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/38/events","html_url":"https://github.com/raml-org/raml-js-parser-2/issues/38","id":118477298,"number":38,"title":"Parser error interpretation","user":{"login":"juancoen","id":1169708,"avatar_url":"https://avatars.githubusercontent.com/u/1169708?v=3","gravatar_id":"","url":"https://api.github.com/users/juancoen","html_url":"https://github.com/juancoen","followers_url":"https://api.github.com/users/juancoen/followers","following_url":"https://api.github.com/users/juancoen/following{/other_user}","gists_url":"https://api.github.com/users/juancoen/gists{/gist_id}","starred_url":"https://api.github.com/users/juancoen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juancoen/subscriptions","organizations_url":"https://api.github.com/users/juancoen/orgs","repos_url":"https://api.github.com/users/juancoen/repos","events_url":"https://api.github.com/users/juancoen/events{/privacy}","received_events_url":"https://api.github.com/users/juancoen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/raml-org/raml-js-parser-2/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/raml-org/raml-js-parser-2/labels/priority:high","name":"priority:high","color":"eb6420"},{"url":"https://api.github.com/repos/raml-org/raml-js-parser-2/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"KonstantinSviridov","id":6206034,"avatar_url":"https://avatars.githubusercontent.com/u/6206034?v=3","gravatar_id":"","url":"https://api.github.com/users/KonstantinSviridov","html_url":"https://github.com/KonstantinSviridov","followers_url":"https://api.github.com/users/KonstantinSviridov/followers","following_url":"https://api.github.com/users/KonstantinSviridov/following{/other_user}","gists_url":"https://api.github.com/users/KonstantinSviridov/gists{/gist_id}","starred_url":"https://api.github.com/users/KonstantinSviridov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KonstantinSviridov/subscriptions","organizations_url":"https://api.github.com/users/KonstantinSviridov/orgs","repos_url":"https://api.github.com/users/KonstantinSviridov/repos","events_url":"https://api.github.com/users/KonstantinSviridov/events{/privacy}","received_events_url":"https://api.github.com/users/KonstantinSviridov/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-11-23T21:32:18Z","updated_at":"2015-11-30T18:46:05Z","closed_at":null,"body":"This RAML:\r\n```\r\n#%RAML 0.8\r\n---\r\ntitle: API 1\r\n...\r\ntitle: API 2\r\n```\r\nProduces 3 errors in the Workbench:\r\n<img width=\"532\" alt=\"screen shot 2015-11-23 at 6 29 27 pm\" src=\"https://cloud.githubusercontent.com/assets/1169708/11350419/3a7cb672-9210-11e5-9c9f-3e86d43a899d.png\">\r\n\r\nbut the parser returns only one:\r\n```\r\n{\r\n  \"code\": 1,\r\n  \"message\": \"JS-YAML: can not read an implicit mapping pair; a colon is missed at line 3, column 1\",\r\n  \"path\": null,\r\n  \"start\": 28,\r\n  \"end\": 29,\r\n  \"isWarning\": false\r\n}\r\n```\r\n\r\nWhy are the two other errors not returned?\r\nHow should `start` and `end` be interpreted?"},"comment":{"url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/comments/160720462","html_url":"https://github.com/raml-org/raml-js-parser-2/issues/38#issuecomment-160720462","issue_url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/38","id":160720462,"user":{"login":"blakeembrey","id":1088987,"avatar_url":"https://avatars.githubusercontent.com/u/1088987?v=3","gravatar_id":"","url":"https://api.github.com/users/blakeembrey","html_url":"https://github.com/blakeembrey","followers_url":"https://api.github.com/users/blakeembrey/followers","following_url":"https://api.github.com/users/blakeembrey/following{/other_user}","gists_url":"https://api.github.com/users/blakeembrey/gists{/gist_id}","starred_url":"https://api.github.com/users/blakeembrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakeembrey/subscriptions","organizations_url":"https://api.github.com/users/blakeembrey/orgs","repos_url":"https://api.github.com/users/blakeembrey/repos","events_url":"https://api.github.com/users/blakeembrey/events{/privacy}","received_events_url":"https://api.github.com/users/blakeembrey/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T18:46:05Z","updated_at":"2015-11-30T18:46:05Z","body":"Just note that `start` and `end` is a range, whereas `line` and `column` is not. The same implementation using line and column should probably be `[[line, column], [line, column]]`. Or provide a high level utility for converting `start` and `end` to the column. I don't think the words \"line\" or \"column\" should be part of the message since they are visual details left to the implementer to display correctly (either inline, with a link, etc.) "}}