{"action":"closed","issue":{"url":"https://api.github.com/repos/phated/gulp-jade/issues/88","labels_url":"https://api.github.com/repos/phated/gulp-jade/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/phated/gulp-jade/issues/88/comments","events_url":"https://api.github.com/repos/phated/gulp-jade/issues/88/events","html_url":"https://github.com/phated/gulp-jade/issues/88","id":83364337,"number":88,"title":"SyntaxError is thrown too late and hard/not to understand","user":{"login":"timaschew","id":110870,"avatar_url":"https://avatars.githubusercontent.com/u/110870?v=3","gravatar_id":"","url":"https://api.github.com/users/timaschew","html_url":"https://github.com/timaschew","followers_url":"https://api.github.com/users/timaschew/followers","following_url":"https://api.github.com/users/timaschew/following{/other_user}","gists_url":"https://api.github.com/users/timaschew/gists{/gist_id}","starred_url":"https://api.github.com/users/timaschew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timaschew/subscriptions","organizations_url":"https://api.github.com/users/timaschew/orgs","repos_url":"https://api.github.com/users/timaschew/repos","events_url":"https://api.github.com/users/timaschew/events{/privacy}","received_events_url":"https://api.github.com/users/timaschew/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-01T07:39:06Z","updated_at":"2015-06-01T18:24:23Z","closed_at":"2015-06-01T18:24:23Z","body":"I have some gulp tasks, first I compiling the jade templates, then some static copy tasks are executed.\r\n\r\nMy output is this:\r\n\r\n```\r\n[09:30:58] Finished 'collection-templates' after 1.07 s\r\n[09:30:58] Starting 'styles'...\r\n[09:30:59] Starting 'static'...\r\n```\r\n\r\nBut immediately after this line I get this error below. If I disable the __colleciton-templates__ task the error disappears. And the error disappears also if I remove the line `pipe(jadeGulp())` \r\n\r\nThe other issue is that I don't understand what's the problem. I have no reference which line is influencing it, the part could be solved if the error would thrown synchronous or a file and line number would be provided.\r\n\r\n```\r\nevents.js:141\r\n      throw er; // Unhandled 'error' event\r\n            ^\r\nSyntaxError: Assigning to rvalue (5:0)\r\n  at Parser.pp.raise (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:1745:13)\r\n  at Parser.pp.checkLVal (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:1971:12)\r\n  at Parser.pp.parseMaybeUnary (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:999:22)\r\n  at Parser.pp.parseExprOps (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:948:19)\r\n  at Parser.pp.parseMaybeConditional (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:930:19)\r\n  at Parser.pp.parseMaybeAssign (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:908:19)\r\n  at Parser.pp.parseExpression (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:882:19)\r\n  at Parser.pp.parseStatement (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:2461:23)\r\n  at Parser.pp.parseTopLevel (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:2379:21)\r\n  at Object.parse (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:101:12)\r\n  at reallyParse (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/jade/node_modules/with/node_modules/acorn-globals/index.js:46:20)\r\n  at findGlobals (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/jade/node_modules/with/node_modules/acorn-globals/index.js:58:11)\r\n  at addWith (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/jade/node_modules/with/index.js:45:14)\r\n  at parse (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/jade/lib/index.js:149:9)\r\n  at Object.exports.compile (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/jade/lib/index.js:205:16)\r\n  at DestroyableTransform.CompileJade [as _transform] (/Users/awilhelm/website/node_modules/gulp-jade/index.js:34:27)\r\n  at DestroyableTransform.Transform._read (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)\r\n  at DestroyableTransform.Transform._write (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)\r\n  at doWrite (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)\r\n  at writeOrBuffer (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)\r\n  at DestroyableTransform.Writable.write (/Users/awilhelm/website/node_modules/gulp-jade/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)\r\n  at write (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)\r\n  at flow (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)\r\n  at DestroyableTransform.pipeOnReadable (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:664:5)\r\n  at emitNone (events.js:67:13)\r\n  at DestroyableTransform.emit (events.js:163:7)\r\n  at emitReadable_ (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:448:10)\r\n  at emitReadable (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:444:5)\r\n  at readableAddChunk (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:187:9)\r\n  at DestroyableTransform.Readable.push (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:149:10)\r\n  at DestroyableTransform.Transform.push (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:145:32)\r\n  at afterTransform (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:101:12)\r\n  at TransformState.afterTransform (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:79:12)\r\n  at DestroyableTransform.noop [as _transform] (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/through2.js:26:3)\r\n  at DestroyableTransform.Transform._read (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)\r\n  at DestroyableTransform.Transform._write (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)\r\n  at doWrite (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)\r\n  at writeOrBuffer (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:227:5)\r\n  at DestroyableTransform.Writable.write (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:194:11)\r\n  at write (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:623:24)\r\n  at flow (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:632:7)\r\n  at DestroyableTransform.pipeOnReadable (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:664:5)\r\n  at emitNone (events.js:67:13)\r\n  at DestroyableTransform.emit (events.js:163:7)\r\n  at emitReadable_ (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:448:10)\r\n  at emitReadable (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:444:5)\r\n  at readableAddChunk (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:187:9)\r\n  at DestroyableTransform.Readable.push (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_readable.js:149:10)\r\n  at DestroyableTransform.Transform.push (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:145:32)\r\n  at afterTransform (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:101:12)\r\n  at TransformState.afterTransform (/Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:79:12)\r\n  at /Users/awilhelm/website/node_modules/gulp/node_modules/vinyl-fs/lib/src/getContents/bufferFile.js:12:5\r\n  at FSReqWrap.readFileAfterClose [as oncomplete] (evalmachine.<anonymous>:382:3)\r\n```"}}