{"action":"created","issue":{"url":"https://api.github.com/repos/docpad/docpad/issues/988","labels_url":"https://api.github.com/repos/docpad/docpad/issues/988/labels{/name}","comments_url":"https://api.github.com/repos/docpad/docpad/issues/988/comments","events_url":"https://api.github.com/repos/docpad/docpad/issues/988/events","html_url":"https://github.com/docpad/docpad/issues/988","id":95921485,"number":988,"title":"Docpad generate hangs since v6.76.0 when run from Grunt","user":{"login":"damirarh","id":1292060,"avatar_url":"https://avatars.githubusercontent.com/u/1292060?v=3","gravatar_id":"","url":"https://api.github.com/users/damirarh","html_url":"https://github.com/damirarh","followers_url":"https://api.github.com/users/damirarh/followers","following_url":"https://api.github.com/users/damirarh/following{/other_user}","gists_url":"https://api.github.com/users/damirarh/gists{/gist_id}","starred_url":"https://api.github.com/users/damirarh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damirarh/subscriptions","organizations_url":"https://api.github.com/users/damirarh/orgs","repos_url":"https://api.github.com/users/damirarh/repos","events_url":"https://api.github.com/users/damirarh/events{/privacy}","received_events_url":"https://api.github.com/users/damirarh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docpad/docpad/labels/type%20support%20/%20question","name":"type support / question","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-19T14:49:10Z","updated_at":"2015-12-20T17:18:13Z","closed_at":null,"body":"After updating DocPad to version 6.76.0 or more recent, running `docpad generate --env static` from Grunt never exits after outputting `info: Shutting down... cya next time!`.\r\n\r\nHere's how to reproduce it:\r\n\r\n* Inside an empty directory call `docpad run`, select skeleton 1 (because it uses DocPad v6.75.2). `Ctrl+C` after it's done, to break back into command line.\r\n* Save `Gruntfile.coffee` with the following contents to the same directory:\r\n``` coffeescript\r\nmodule.exports = (grunt) ->\r\n  grunt.initConfig(\r\n    {\r\n      shell:\r\n        docpad:\r\n          options:\r\n            stdout: true\r\n          command: \"docpad generate --env static\"\r\n    }\r\n  )\r\n\r\n  grunt.loadNpmTasks('grunt-shell')\r\n\r\n  grunt.registerTask('default', ['shell:docpad'])\r\n```\r\n* Install `grunt` and `grunt-shell`:\r\n``` dos\r\nnpm install --save-dev grunt\r\nnpm install --save-dev grunt-shell\r\n```\r\n* Call `grunt` to execute default target - it will behave as expected: **DocPad will quit.**\r\n* Update DocPad to v6.76.0: `npm install docpad@6.76.0`\r\n* Call `grunt` again - this time **DocPad will hang indefinitely** after it's done."},"comment":{"url":"https://api.github.com/repos/docpad/docpad/issues/comments/166136091","html_url":"https://github.com/docpad/docpad/issues/988#issuecomment-166136091","issue_url":"https://api.github.com/repos/docpad/docpad/issues/988","id":166136091,"user":{"login":"MattKotsenas","id":51421,"avatar_url":"https://avatars.githubusercontent.com/u/51421?v=3","gravatar_id":"","url":"https://api.github.com/users/MattKotsenas","html_url":"https://github.com/MattKotsenas","followers_url":"https://api.github.com/users/MattKotsenas/followers","following_url":"https://api.github.com/users/MattKotsenas/following{/other_user}","gists_url":"https://api.github.com/users/MattKotsenas/gists{/gist_id}","starred_url":"https://api.github.com/users/MattKotsenas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattKotsenas/subscriptions","organizations_url":"https://api.github.com/users/MattKotsenas/orgs","repos_url":"https://api.github.com/users/MattKotsenas/repos","events_url":"https://api.github.com/users/MattKotsenas/events{/privacy}","received_events_url":"https://api.github.com/users/MattKotsenas/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T17:18:13Z","updated_at":"2015-12-20T17:18:13Z","body":"I'm seeing the same behavior"}}