{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/rsconnect/issues/35","labels_url":"https://api.github.com/repos/rstudio/rsconnect/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/rsconnect/issues/35/comments","events_url":"https://api.github.com/repos/rstudio/rsconnect/issues/35/events","html_url":"https://github.com/rstudio/rsconnect/issues/35","id":82105392,"number":35,"title":"failing deployments still open app url and output error in an arbitrary location","user":{"login":"aronatkins","id":362187,"avatar_url":"https://avatars.githubusercontent.com/u/362187?v=3","gravatar_id":"","url":"https://api.github.com/users/aronatkins","html_url":"https://github.com/aronatkins","followers_url":"https://api.github.com/users/aronatkins/followers","following_url":"https://api.github.com/users/aronatkins/following{/other_user}","gists_url":"https://api.github.com/users/aronatkins/gists{/gist_id}","starred_url":"https://api.github.com/users/aronatkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aronatkins/subscriptions","organizations_url":"https://api.github.com/users/aronatkins/orgs","repos_url":"https://api.github.com/users/aronatkins/repos","events_url":"https://api.github.com/users/aronatkins/events{/privacy}","received_events_url":"https://api.github.com/users/aronatkins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-28T20:13:50Z","updated_at":"2015-06-03T14:50:32Z","closed_at":null,"body":"This is probably a mixed rsconnect/IDE issue...\r\n\r\nI have a deployment that is failing for good reason - the target system is missing some OS dependencies.\r\n\r\nThe `Deploy` window has the message (in red):\r\n\r\n```\r\nApplication deployment failed with error: exit status 1\r\n```\r\n\r\nThat message does not appear at the end of the `Deploy` window but in an arbitrary earlier location (probably due to some stream buffering).\r\n\r\nFurther, I get a success message from the RStudio IDE and am sent to the application URL (this is at the very end of the `Deploy` window):\r\n\r\n```\r\nDeployment completed: http://HOST:PORT/USER/APPNAME/\r\n```\r\n\r\nThe application URL justifiably 404s because the deployment failed.\r\n\r\nI am surprised that:\r\n\r\n1. The \"deployment failed\" message is not at the end of the `Deploy` buffer.\r\n1. We open a browser and navigate to the application URL.\r\n1. The `Deploy` buffer does not stay in focus (due to the error)."},"comment":{"url":"https://api.github.com/repos/rstudio/rsconnect/issues/comments/108466869","html_url":"https://github.com/rstudio/rsconnect/issues/35#issuecomment-108466869","issue_url":"https://api.github.com/repos/rstudio/rsconnect/issues/35","id":108466869,"user":{"login":"aronatkins","id":362187,"avatar_url":"https://avatars.githubusercontent.com/u/362187?v=3","gravatar_id":"","url":"https://api.github.com/users/aronatkins","html_url":"https://github.com/aronatkins","followers_url":"https://api.github.com/users/aronatkins/followers","following_url":"https://api.github.com/users/aronatkins/following{/other_user}","gists_url":"https://api.github.com/users/aronatkins/gists{/gist_id}","starred_url":"https://api.github.com/users/aronatkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aronatkins/subscriptions","organizations_url":"https://api.github.com/users/aronatkins/orgs","repos_url":"https://api.github.com/users/aronatkins/repos","events_url":"https://api.github.com/users/aronatkins/events{/privacy}","received_events_url":"https://api.github.com/users/aronatkins/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T14:50:32Z","updated_at":"2015-06-03T14:50:32Z","body":"The IDE no longer views erred deploys as successful. The output interleaving still occurs.\r\n\r\nThe `rsconnect`-inserted \"Application deployment failed with error: XXX\" message still appears interleaved with output (`stderr`) from the server in the \"Deploy\" window. The `rsconnect` message is on `stdout`.\r\n\r\nWhen run from the Console IDE window, the `rsconnect` message is the last line of the failing `deployApp` output.\r\n\r\nInteresting side-note. The red/black colors for deploy output are reversed in the Console window vs. the Deploy window."}}