{"action":"created","issue":{"url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/355","repository_url":"https://api.github.com/repos/aws-amplify/amplify-cli","labels_url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/355/comments","events_url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/355/events","html_url":"https://github.com/aws-amplify/amplify-cli/issues/355","id":374164321,"node_id":"MDU6SXNzdWUzNzQxNjQzMjE=","number":355,"title":"amplify init stuck after choosing editor","user":{"login":"aldarund","id":571159,"node_id":"MDQ6VXNlcjU3MTE1OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/571159?v=4","gravatar_id":"","url":"https://api.github.com/users/aldarund","html_url":"https://github.com/aldarund","followers_url":"https://api.github.com/users/aldarund/followers","following_url":"https://api.github.com/users/aldarund/following{/other_user}","gists_url":"https://api.github.com/users/aldarund/gists{/gist_id}","starred_url":"https://api.github.com/users/aldarund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldarund/subscriptions","organizations_url":"https://api.github.com/users/aldarund/orgs","repos_url":"https://api.github.com/users/aldarund/repos","events_url":"https://api.github.com/users/aldarund/events{/privacy}","received_events_url":"https://api.github.com/users/aldarund/received_events","type":"User","site_admin":false},"labels":[{"id":1034699839,"node_id":"MDU6TGFiZWwxMDM0Njk5ODM5","url":"https://api.github.com/repos/aws-amplify/amplify-cli/labels/windows","name":"windows","color":"fcb088","default":false}],"state":"open","locked":false,"assignee":{"login":"kaustavghosh06","id":7247658,"node_id":"MDQ6VXNlcjcyNDc2NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/7247658?v=4","gravatar_id":"","url":"https://api.github.com/users/kaustavghosh06","html_url":"https://github.com/kaustavghosh06","followers_url":"https://api.github.com/users/kaustavghosh06/followers","following_url":"https://api.github.com/users/kaustavghosh06/following{/other_user}","gists_url":"https://api.github.com/users/kaustavghosh06/gists{/gist_id}","starred_url":"https://api.github.com/users/kaustavghosh06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaustavghosh06/subscriptions","organizations_url":"https://api.github.com/users/kaustavghosh06/orgs","repos_url":"https://api.github.com/users/kaustavghosh06/repos","events_url":"https://api.github.com/users/kaustavghosh06/events{/privacy}","received_events_url":"https://api.github.com/users/kaustavghosh06/received_events","type":"User","site_admin":false},"assignees":[{"login":"kaustavghosh06","id":7247658,"node_id":"MDQ6VXNlcjcyNDc2NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/7247658?v=4","gravatar_id":"","url":"https://api.github.com/users/kaustavghosh06","html_url":"https://github.com/kaustavghosh06","followers_url":"https://api.github.com/users/kaustavghosh06/followers","following_url":"https://api.github.com/users/kaustavghosh06/following{/other_user}","gists_url":"https://api.github.com/users/kaustavghosh06/gists{/gist_id}","starred_url":"https://api.github.com/users/kaustavghosh06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaustavghosh06/subscriptions","organizations_url":"https://api.github.com/users/kaustavghosh06/orgs","repos_url":"https://api.github.com/users/kaustavghosh06/repos","events_url":"https://api.github.com/users/kaustavghosh06/events{/privacy}","received_events_url":"https://api.github.com/users/kaustavghosh06/received_events","type":"User","site_admin":false}],"milestone":null,"comments":11,"created_at":"2018-10-25T22:55:38Z","updated_at":"2018-11-03T17:15:12Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\nA clear and concise description of what the bug is.\r\n\r\n**To Reproduce**\r\namplify init  and then choose any editor ( doesnt matter which, result is same)\r\n\r\n**Expected behavior**\r\nobv init project, continue with other questions etc\r\n\r\n**Screenshots**\r\nhttps://i.imgur.com/wXyfkeO.png\r\n\r\n\r\n**Desktop (please complete the following information):**\r\n - OS:  Windows 10 x64\r\nNode 11\r\n```\r\namplify -v\r\n0.1.29\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/comments/435604913","html_url":"https://github.com/aws-amplify/amplify-cli/issues/355#issuecomment-435604913","issue_url":"https://api.github.com/repos/aws-amplify/amplify-cli/issues/355","id":435604913,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTYwNDkxMw==","user":{"login":"attilah","id":230432,"node_id":"MDQ6VXNlcjIzMDQzMg==","avatar_url":"https://avatars2.githubusercontent.com/u/230432?v=4","gravatar_id":"","url":"https://api.github.com/users/attilah","html_url":"https://github.com/attilah","followers_url":"https://api.github.com/users/attilah/followers","following_url":"https://api.github.com/users/attilah/following{/other_user}","gists_url":"https://api.github.com/users/attilah/gists{/gist_id}","starred_url":"https://api.github.com/users/attilah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attilah/subscriptions","organizations_url":"https://api.github.com/users/attilah/orgs","repos_url":"https://api.github.com/users/attilah/repos","events_url":"https://api.github.com/users/attilah/events{/privacy}","received_events_url":"https://api.github.com/users/attilah/received_events","type":"User","site_admin":false},"created_at":"2018-11-03T17:15:12Z","updated_at":"2018-11-03T17:15:12Z","author_association":"NONE","body":"I was pretty frustrating and I spent some time to look into it. This issue is caused by inquerier component.\r\n\r\nUnfortunately amplify-cli is not using the same version of all the dependencies. CLI itself using 3.2.1 and it has this issue, from 5.0.0 it is fixed.\r\n\r\nI tried the inquerier versions 1 by 1 and 5.0.0 is the first one which runs their pizza example well, all the others are stuck after printing the json.\r\n\r\nInternally the main reason is the setRawMode call to stdio's handle in readline module, my guess is that some pieces were not closed properly and TTY got into an invalid state.\r\n\r\nIf someone could create a PR, all you've to do is to move all the packages.json from ^3.2.1 to ^6.0.0 for the inquerier component so that would be the same for all modules ;-)"}}
{"actor":{"display_login":"attilah"}}