{"action":"created","issue":{"url":"https://api.github.com/repos/pnpm/pnpm/issues/1578","repository_url":"https://api.github.com/repos/pnpm/pnpm","labels_url":"https://api.github.com/repos/pnpm/pnpm/issues/1578/labels{/name}","comments_url":"https://api.github.com/repos/pnpm/pnpm/issues/1578/comments","events_url":"https://api.github.com/repos/pnpm/pnpm/issues/1578/events","html_url":"https://github.com/pnpm/pnpm/issues/1578","id":394203339,"node_id":"MDU6SXNzdWUzOTQyMDMzMzk=","number":1578,"title":"pnpm recursive run: second and later subprocesses hang without output","user":{"login":"aquark","id":6504934,"node_id":"MDQ6VXNlcjY1MDQ5MzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/6504934?v=4","gravatar_id":"","url":"https://api.github.com/users/aquark","html_url":"https://github.com/aquark","followers_url":"https://api.github.com/users/aquark/followers","following_url":"https://api.github.com/users/aquark/following{/other_user}","gists_url":"https://api.github.com/users/aquark/gists{/gist_id}","starred_url":"https://api.github.com/users/aquark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aquark/subscriptions","organizations_url":"https://api.github.com/users/aquark/orgs","repos_url":"https://api.github.com/users/aquark/repos","events_url":"https://api.github.com/users/aquark/events{/privacy}","received_events_url":"https://api.github.com/users/aquark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-26T16:50:12Z","updated_at":"2018-12-26T19:52:52Z","closed_at":null,"author_association":"NONE","body":"### pnpm version: `2.23.0`\r\n\r\n### Code to reproduce the issue:\r\n\r\nHere is a minimal example:\r\n\r\n```\r\nmkdir -p workspace\r\ncd workspace\r\n\r\nfor package in foo1 foo2; do\r\n    mkdir -p $package\r\n    cd $package\r\n    pnpm init -y\r\n    sed -i -e 's/\"test\": .*/\"test\": \"while true; do echo beep; sleep 1; done\"/' package.json\r\n    cd ..\r\ndone\r\n\r\npnpm recursive test\r\n```\r\n\r\n### Expected behavior:\r\n\r\nBoth packages should output beeps concurrently, like this:\r\n\r\n```\r\nScope: all 2 packages\r\ntmp/workspace/foo1 test$ while true; do echo beep; sleep 1; done\r\n│ beep\r\n│ beep\r\n│ beep\r\n└─ Running...\r\ntmp/workspace/foo2 test$ while true; do echo beep; sleep 1; done\r\n│ beep\r\n│ beep\r\n│ beep\r\n└─ Running...\r\n```\r\n\r\n### Actual behavior:\r\n\r\nOnly the first package outputs beeps:\r\n\r\n```\r\nScope: all 2 packages\r\ntmp/workspace/foo1 test$ while true; do echo beep; sleep 1; done\r\n│ beep\r\n│ beep\r\n│ beep\r\n└─ Running...\r\ntmp/workspace/foo2 test$ while true; do echo beep; sleep 1; done\r\n└─ Running...\r\n```\r\n\r\nI originally ran into this problem in a more complex project with subpackages using angular and jest. The way it manifested in that case is that e.g. `pnpm recursive run --no-sort watch` would start the watch process only the first subpackage\r\n\r\n### Additional information:\r\n\r\n - `node -v` prints: `v10.13.0`\r\n - Windows, OS X, or Linux?: macOS sierra\r\n"},"comment":{"url":"https://api.github.com/repos/pnpm/pnpm/issues/comments/450016499","html_url":"https://github.com/pnpm/pnpm/issues/1578#issuecomment-450016499","issue_url":"https://api.github.com/repos/pnpm/pnpm/issues/1578","id":450016499,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDAxNjQ5OQ==","user":{"login":"zkochan","id":1927579,"node_id":"MDQ6VXNlcjE5Mjc1Nzk=","avatar_url":"https://avatars0.githubusercontent.com/u/1927579?v=4","gravatar_id":"","url":"https://api.github.com/users/zkochan","html_url":"https://github.com/zkochan","followers_url":"https://api.github.com/users/zkochan/followers","following_url":"https://api.github.com/users/zkochan/following{/other_user}","gists_url":"https://api.github.com/users/zkochan/gists{/gist_id}","starred_url":"https://api.github.com/users/zkochan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zkochan/subscriptions","organizations_url":"https://api.github.com/users/zkochan/orgs","repos_url":"https://api.github.com/users/zkochan/repos","events_url":"https://api.github.com/users/zkochan/events{/privacy}","received_events_url":"https://api.github.com/users/zkochan/received_events","type":"User","site_admin":false},"created_at":"2018-12-26T19:52:52Z","updated_at":"2018-12-26T19:52:52Z","author_association":"MEMBER","body":"It is great that you've found the reason. I thought it was just a reporting\nissue\n\nOn Wed, Dec 26, 2018, 19:23 Adrian Barkus <notifications@github.com wrote:\n\n> It looks like the problem is that npm-lifecycle only allows one command\n> to run at a time\n> <https://github.com/npm/npm-lifecycle/blob/latest/index.js#L216>. How did\n> this ever work?\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/pnpm/pnpm/issues/1578#issuecomment-449996933>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AB1pm_xWFyXZ5ug0rf7tm1lRc88rAYENks5u87B6gaJpZM4Zh6S_>\n> .\n>\n"}}
{"actor":{"display_login":"zkochan"}}