{"action":"opened","issue":{"url":"https://api.github.com/repos/mulesoft/api-workbench/issues/57","labels_url":"https://api.github.com/repos/mulesoft/api-workbench/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/mulesoft/api-workbench/issues/57/comments","events_url":"https://api.github.com/repos/mulesoft/api-workbench/issues/57/events","html_url":"https://github.com/mulesoft/api-workbench/issues/57","id":116821690,"number":57,"title":"Opening a file causes an exception in a certain case","user":{"login":"ddenisenko","id":14824966,"avatar_url":"https://avatars.githubusercontent.com/u/14824966?v=3","gravatar_id":"","url":"https://api.github.com/users/ddenisenko","html_url":"https://github.com/ddenisenko","followers_url":"https://api.github.com/users/ddenisenko/followers","following_url":"https://api.github.com/users/ddenisenko/following{/other_user}","gists_url":"https://api.github.com/users/ddenisenko/gists{/gist_id}","starred_url":"https://api.github.com/users/ddenisenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddenisenko/subscriptions","organizations_url":"https://api.github.com/users/ddenisenko/orgs","repos_url":"https://api.github.com/users/ddenisenko/repos","events_url":"https://api.github.com/users/ddenisenko/events{/privacy}","received_events_url":"https://api.github.com/users/ddenisenko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mulesoft/api-workbench/labels/atom","name":"atom","color":"5319e7"},{"url":"https://api.github.com/repos/mulesoft/api-workbench/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mulesoft/api-workbench/labels/priority:high","name":"priority:high","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-13T18:22:14Z","updated_at":"2015-11-13T18:22:14Z","closed_at":null,"body":"Steps:\r\n\r\n1) Download API.zip here: https://drive.google.com/file/d/0B-UtJTP_d_VBNmhpeXJpaXVjckk/view?usp=sharing , unzip it.\r\n\r\n2) Start new Atom Window.\r\n\r\n3) Use `File->Open...` menu to open APIs/GitHub/api.raml\r\n\r\nResult: exception:\r\n```RAML\r\nTypeError: this.definition(...).name is not a function\r\nTypeError: this.definition(...).name is not a function\r\n  at ASTNodeImpl.validate (/Users/munch/work/apiworkbench/api-workbench/src/raml1/highLevelImpl.js:1040:53)\r\n  at gatherValidationErrors (/Users/munch/work/apiworkbench/api-workbench/src/atom/raml1/linterUI.js:129:17)\r\n  at Object.lint (/Users/munch/work/apiworkbench/api-workbench/src/atom/raml1/linterUI.js:40:5)\r\n  at Promise.then._this.emitter.emit.linter (/Users/munch/.atom/packages/linter/lib/linter-registry.coffee:59:22)\r\n  at LinterRegistry.triggerLinter (/Users/munch/.atom/packages/linter/lib/linter-registry.coffee:58:16)\r\n  at /Users/munch/.atom/packages/linter/lib/linter-registry.coffee:52:17\r\n  at Array.map (native)\r\n  at /Users/munch/.atom/packages/linter/lib/linter-registry.coffee:50:27\r\n```"}}