{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/5137","labels_url":"https://api.github.com/repos/meteor/meteor/issues/5137/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/5137/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/5137/events","html_url":"https://github.com/meteor/meteor/issues/5137","id":106111153,"number":5137,"title":"Error compiling {{#each a in (b)}}","user":{"login":"wh0","id":382796,"avatar_url":"https://avatars.githubusercontent.com/u/382796?v=3","gravatar_id":"","url":"https://api.github.com/users/wh0","html_url":"https://github.com/wh0","followers_url":"https://api.github.com/users/wh0/followers","following_url":"https://api.github.com/users/wh0/following{/other_user}","gists_url":"https://api.github.com/users/wh0/gists{/gist_id}","starred_url":"https://api.github.com/users/wh0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wh0/subscriptions","organizations_url":"https://api.github.com/users/wh0/orgs","repos_url":"https://api.github.com/users/wh0/repos","events_url":"https://api.github.com/users/wh0/events{/privacy}","received_events_url":"https://api.github.com/users/wh0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/meteor/meteor/milestones/5","html_url":"https://github.com/meteor/meteor/milestones/Release%201.2","labels_url":"https://api.github.com/repos/meteor/meteor/milestones/5/labels","id":1275125,"number":5,"title":"Release 1.2","description":"","creator":{"login":"stubailo","id":448783,"avatar_url":"https://avatars.githubusercontent.com/u/448783?v=3","gravatar_id":"","url":"https://api.github.com/users/stubailo","html_url":"https://github.com/stubailo","followers_url":"https://api.github.com/users/stubailo/followers","following_url":"https://api.github.com/users/stubailo/following{/other_user}","gists_url":"https://api.github.com/users/stubailo/gists{/gist_id}","starred_url":"https://api.github.com/users/stubailo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stubailo/subscriptions","organizations_url":"https://api.github.com/users/stubailo/orgs","repos_url":"https://api.github.com/users/stubailo/repos","events_url":"https://api.github.com/users/stubailo/events{/privacy}","received_events_url":"https://api.github.com/users/stubailo/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":23,"state":"open","created_at":"2015-08-26T23:54:07Z","updated_at":"2015-09-15T00:59:11Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-09-11T23:17:53Z","updated_at":"2015-09-15T02:06:06Z","closed_at":"2015-09-14T22:54:53Z","body":"In Meteor release 1.2-rc.12, when compiling `{{#each a in (b)}}`, I get the following error:\r\n\r\n```\r\n=> Errors prevented startup:                  \r\n   \r\n   While processing files with templating (for target web.browser):\r\n\r\n   /home/wh0/.meteor/packages/meteor-tool/.1.1.7-rc.12.dvasa3++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:395:16:\r\n   Cannot call method 'replace' of undefined\r\n   at Object.Future.wait\r\n   (/home/wh0/.meteor/packages/meteor-tool/.1.1.7-rc.12.dvasa3++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:395:16)\r\n   at CachingHtmlCompiler.processFilesForTarget (caching-compiler.js:312:12)\r\n   at CachingHtmlCompiler.processFilesForTarget (caching-html-compiler.js:40:32)\r\n```\r\n\r\n[caching-compiler.js:312](https://github.com/meteor/meteor/blob/8754e3626f866173bf9a89693f3ecc1e3c72cd07/packages/caching-compiler/caching-compiler.js#L312)\r\n[caching-html-compiler.js:40](https://github.com/meteor/meteor/blob/8754e3626f866173bf9a89693f3ecc1e3c72cd07/packages/caching-html-compiler/caching-html-compiler.js#L40)\r\n(can't find `replace` on either of these lines)\r\n\r\n`{{#each a in b}}` don't `{{#each (b)}}` cause the crash.\r\n\r\n---\r\n\r\nsteps to reproduce:\r\n\r\n```sh\r\nmeteor create --release 1.2-rc.12 asdf\r\ncd asdf\r\nrm asdf.css\r\nrm asdf.js\r\ncat <<EOF >asdf.html\r\n<body>\r\n  {{#each a in (b)}}\r\n    Hello\r\n  {{/each}}\r\n</body>\r\nEOF\r\nmeteor\r\n```"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/140253448","html_url":"https://github.com/meteor/meteor/issues/5137#issuecomment-140253448","issue_url":"https://api.github.com/repos/meteor/meteor/issues/5137","id":140253448,"user":{"login":"wh0","id":382796,"avatar_url":"https://avatars.githubusercontent.com/u/382796?v=3","gravatar_id":"","url":"https://api.github.com/users/wh0","html_url":"https://github.com/wh0","followers_url":"https://api.github.com/users/wh0/followers","following_url":"https://api.github.com/users/wh0/following{/other_user}","gists_url":"https://api.github.com/users/wh0/gists{/gist_id}","starred_url":"https://api.github.com/users/wh0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wh0/subscriptions","organizations_url":"https://api.github.com/users/wh0/orgs","repos_url":"https://api.github.com/users/wh0/repos","events_url":"https://api.github.com/users/wh0/events{/privacy}","received_events_url":"https://api.github.com/users/wh0/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T02:06:06Z","updated_at":"2015-09-15T02:06:06Z","body":"I've opened a pull request with a more permissive fix, which additionally allows `{{#each a in b c}}`, without need for parentheses."}}