{"action":"opened","issue":{"url":"https://api.github.com/repos/Anaconda-Platform/anaconda-project/issues/70","repository_url":"https://api.github.com/repos/Anaconda-Platform/anaconda-project","labels_url":"https://api.github.com/repos/Anaconda-Platform/anaconda-project/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/Anaconda-Platform/anaconda-project/issues/70/comments","events_url":"https://api.github.com/repos/Anaconda-Platform/anaconda-project/issues/70/events","html_url":"https://github.com/Anaconda-Platform/anaconda-project/issues/70","id":229608542,"number":70,"title":"[PROPOSAL] `run` in absence of yaml file should return error","user":{"login":"ijstokes","id":293525,"avatar_url":"https://avatars1.githubusercontent.com/u/293525?v=3","gravatar_id":"","url":"https://api.github.com/users/ijstokes","html_url":"https://github.com/ijstokes","followers_url":"https://api.github.com/users/ijstokes/followers","following_url":"https://api.github.com/users/ijstokes/following{/other_user}","gists_url":"https://api.github.com/users/ijstokes/gists{/gist_id}","starred_url":"https://api.github.com/users/ijstokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ijstokes/subscriptions","organizations_url":"https://api.github.com/users/ijstokes/orgs","repos_url":"https://api.github.com/users/ijstokes/repos","events_url":"https://api.github.com/users/ijstokes/events{/privacy}","received_events_url":"https://api.github.com/users/ijstokes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-18T09:30:35Z","updated_at":"2017-05-18T09:30:35Z","closed_at":null,"body":"Sometimes when I execute `anaconda-project run` it can take a minute or even several minutes to first start up: conda environment creation and all that jazz (possibly triggering downloads, possibly 100s of MB of packages, then untaring, linking, etc).\r\n\r\nAnd then there is the time when I accidentally execute `anaconda-project run` in the wrong directory.  I sit and stare.  And wait.  And think \"huh, the environment should already have been created, I wonder why it is doing it again?\" (because I'm incorrectly assuming that is what I'm waiting for).  And then it is taking too long, and so I CTRL-C, and it is only then that I realize I've executed the command in the wrong directory and Anaconda Project was doing exactly nothing.\r\n\r\nSo I'd like to suggest that if there isn't a YAML file for `anaconda-project run` to consume (either from a CLI argument or implicitly from an `anaconda-project.yml` file in the current directory) then it should return an error message and exit.\r\n\r\nAnd I don't think it should create an `anaconda-project.yml` file.  That seems to just be a weird side-effect of running the command when a YAML file isn't available."}}
{"actor":{"display_login":"ijstokes"}}