{"action":"closed","issue":{"url":"https://api.github.com/repos/sourcegraph/srclib-javascript/issues/11","labels_url":"https://api.github.com/repos/sourcegraph/srclib-javascript/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/sourcegraph/srclib-javascript/issues/11/comments","events_url":"https://api.github.com/repos/sourcegraph/srclib-javascript/issues/11/events","html_url":"https://github.com/sourcegraph/srclib-javascript/issues/11","id":60599850,"number":11,"title":"`srclib-javascript` processes coffeescript file and crashes","user":{"login":"MaikuMori","id":28470,"avatar_url":"https://avatars.githubusercontent.com/u/28470?v=3","gravatar_id":"","url":"https://api.github.com/users/MaikuMori","html_url":"https://github.com/MaikuMori","followers_url":"https://api.github.com/users/MaikuMori/followers","following_url":"https://api.github.com/users/MaikuMori/following{/other_user}","gists_url":"https://api.github.com/users/MaikuMori/gists{/gist_id}","starred_url":"https://api.github.com/users/MaikuMori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaikuMori/subscriptions","organizations_url":"https://api.github.com/users/MaikuMori/orgs","repos_url":"https://api.github.com/users/MaikuMori/repos","events_url":"https://api.github.com/users/MaikuMori/events{/privacy}","received_events_url":"https://api.github.com/users/MaikuMori/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"samertm","id":969377,"avatar_url":"https://avatars.githubusercontent.com/u/969377?v=3","gravatar_id":"","url":"https://api.github.com/users/samertm","html_url":"https://github.com/samertm","followers_url":"https://api.github.com/users/samertm/followers","following_url":"https://api.github.com/users/samertm/following{/other_user}","gists_url":"https://api.github.com/users/samertm/gists{/gist_id}","starred_url":"https://api.github.com/users/samertm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samertm/subscriptions","organizations_url":"https://api.github.com/users/samertm/orgs","repos_url":"https://api.github.com/users/samertm/repos","events_url":"https://api.github.com/users/samertm/events{/privacy}","received_events_url":"https://api.github.com/users/samertm/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-03-11T02:13:49Z","updated_at":"2015-03-11T17:51:36Z","closed_at":"2015-03-11T17:51:36Z","body":"If I recall the file which caused the crash is [this one](https://github.com/MaikuMori/sourcegraph-atom/blob/get-it-running/lib/sourcegraph-atom.coffee). I'll add more details tomorrow if needed.\r\n\r\nCommand run + output:\r\n\r\n```\r\nsrc api list --file \"/home/maiku/Projects/sourcegraph-atom/lib/sourcegraph-atom.coffee\": Running: [/home/maiku/.srclib/sourcegraph.com/sourcegraph/srclib-go/.bin/srclib-go scan --repo github.com/MaikuMori/sourcegraph-atom --subdir .] --> with input {} warning: \"./...\" matched no packages Running: [/home/maiku/.srclib/sourcegraph.com/sourcegraph/srclib-javascript/.bin/srclib-javascript scan-commonjs --repo github.com/MaikuMori/sourcegraph-atom --subdir .] --> with input {} Running: [/home/maiku/.srclib/sourcegraph.com/sourcegraph/srclib-python/.bin/srclib-python scan --repo github.com/MaikuMori/sourcegraph-atom --subdir .] --> with input {} File \"/usr/bin/pydep-run.py\", line 54 print json.dumps(setup_infos) ^ SyntaxError: invalid syntax EOF Running: [/home/maiku/.srclib/sourcegraph.com/sourcegraph/srclib-ruby/.bin/srclib-ruby scan --repo github.com/MaikuMori/sourcegraph-atom --subdir .] --> with input {} SCANNERS (4) - sourcegraph.com/sourcegraph/srclib-go scan - sourcegraph.com/sourcegraph/srclib-javascript scan-commonjs - sourcegraph.com/sourcegraph/srclib-python scan - sourcegraph.com/sourcegraph/srclib-ruby scan SOURCE UNITS (1) - CommonJSPackage: sourcegraph-atom CONFIG PROPERTIES (0) /home/maiku/.srclib/sourcegraph.com/sourcegraph/srclib-javascript/.bin/srclib-javascript:206 if (commonJSPackage.Files.length == 0) { ^ TypeError: Cannot read property 'length' of undefined at graph (/home/maiku/.srclib/sourcegraph.com/sourcegraph/srclib-javascript/.bin/srclib-javascript:206:34) at ReadStream.<anonymous> (/home/maiku/.srclib/sourcegraph.com/sourcegraph/srclib-javascript/.bin/srclib-javascript:264:9) at ReadStream.emit (events.js:129:20) at _stream_readable.js:908:16 at process._tickCallback (node.js:355:11) exit status 1 EOF .srclib-cache/7b351445a87feb9862e8980e3775a495e7f9aebd/sourcegraph-atom/CommonJSPackage.graph.json: command failed: src tool --methods program \"sourcegraph.com/sourcegraph/srclib-javascript\" \"graph\" < .srclib-cache/7b351445a87feb9862e8980e3775a495e7f9aebd/sourcegraph-atom/CommonJSPackage.unit.json | src internal normalize-graph-data --unit-type \"CommonJSPackage\" --dir . 1> .srclib-cache/7b351445a87feb9862e8980e3775a495e7f9aebd/sourcegraph-atom/CommonJSPackage.graph.json (exit status 1) command failed: src tool --methods program \"sourcegraph.com/sourcegraph/srclib-javascript\" \"graph\" < .srclib-cache/7b351445a87feb9862e8980e3775a495e7f9aebd/sourcegraph-atom/CommonJSPackage.unit.json | src internal normalize-graph-data --unit-type \"CommonJSPackage\" --dir . 1> .srclib-cache/7b351445a87feb9862e8980e3775a495e7f9aebd/sourcegraph-atom/CommonJSPackage.graph.json (exit status 1)\r\n```\r\n\r\nAnd if we extract just the error:\r\n```\r\nsourcegraph-atom CONFIG PROPERTIES (0) /home/maiku/.srclib/sourcegraph.com/sourcegraph/srclib-javascript/.bin/srclib-javascript:206 if (commonJSPackage.Files.length == 0) { ^ TypeError: Cannot read property 'length' of undefined at graph (/home/maiku/.srclib/sourcegraph.com/sourcegraph/srclib-javascript/.bin/srclib-javascript:206:34) at ReadStream.<anonymous> (/home/maiku/.srclib/sourcegraph.com/sourcegraph/srclib-javascript/.bin/srclib-javascript:264:9) at ReadStream.emit (events.js:129:20) at _stream_readable.js:908:16 at process._tickCallback (node.js:355:11) exit status 1 EOF\r\n```\r\n\r\n\r\nIt points to this file: https://github.com/sourcegraph/srclib-javascript/blob/master/.bin/srclib-javascript#L206"}}