{"action":"opened","issue":{"url":"https://api.github.com/repos/syberia/stagerunner/issues/58","repository_url":"https://api.github.com/repos/syberia/stagerunner","labels_url":"https://api.github.com/repos/syberia/stagerunner/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/syberia/stagerunner/issues/58/comments","events_url":"https://api.github.com/repos/syberia/stagerunner/issues/58/events","html_url":"https://github.com/syberia/stagerunner/issues/58","id":157964061,"number":58,"title":"Unhelpful crash on trying to re-run a never before defined stage","user":{"login":"robertzk","id":1638492,"avatar_url":"https://avatars.githubusercontent.com/u/1638492?v=3","gravatar_id":"","url":"https://api.github.com/users/robertzk","html_url":"https://github.com/robertzk","followers_url":"https://api.github.com/users/robertzk/followers","following_url":"https://api.github.com/users/robertzk/following{/other_user}","gists_url":"https://api.github.com/users/robertzk/gists{/gist_id}","starred_url":"https://api.github.com/users/robertzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertzk/subscriptions","organizations_url":"https://api.github.com/users/robertzk/orgs","repos_url":"https://api.github.com/users/robertzk/repos","events_url":"https://api.github.com/users/robertzk/events{/privacy}","received_events_url":"https://api.github.com/users/robertzk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/syberia/stagerunner/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-01T17:32:33Z","updated_at":"2016-06-01T17:32:33Z","closed_at":null,"body":"If you (a) run the entire model and then (b) define a new stage and then (c) try to run that stage, you get this very unhelpful error:\r\n\r\n```R\r\n> run(\"imsurvey\", \"analyze/involved_local_EA x donate\")\r\nLoading model: models/dev/imsurvey\r\nCopying cached environments...\r\nBeginning 3. analyze stage...\r\n  Running 10. involved_local_EA x donate...\r\nError: is.environment(to) && is.environment(from) is not TRUE\r\nIn environment imports:Ramd: run(\"imsurvey\", \"analyze/involved_local_EA x donate\")\r\nIn /Users/peterhurford/.R/.syberia/engines/github/robertzk/modeling.sy/master/config/global/modeling/run_model.R:27: invisible(director$cache_set(\"last_run\",\r\n    director$resource(keys[1])$run(..., verbose = verbose))[[1L]])\r\nIn package director: self$cache$set(k, v)\r\nIn package base: structure(list(value), .Names = key)\r\nIn package stagerunner: director$resource(keys[1])$run(..., verbose = verbose)\r\nIn package stagerunner: run_stage(..., remember_flag = TRUE)\r\nIn package stagerunner: stages[[stage_index]]$run(stage_key[[stage_index]], normalized = TRUE,      verbose = verbose, .depth = .depth + 1, ...)\r\nIn package stagerunner: self$.before_env(stage_index)\r\nIn package objectdiff: package_function(\"objectdiff\", \"force_push\")(self$.context, current_commit)\r\nIn package objectdiff: replay(env, commit, silent = TRUE)\r\nIn package objectdiff: copy_env(env %$% env, (env %$% reference)[[reference_index]])\r\nIn package base: stopifnot(is.environment(to) && is.environment(from))\r\nIn package base: stop(sprintf(ngettext(length(r), \"%s is not TRUE\", \"%s are not all TRUE\"),      ch), call. = FALSE, domain = NA)\r\n\r\nError: is.environment(to) && is.environment(from) is not TRUE\r\n```\r\n\r\n"}}
{"actor":{"display_login":"robertzk"}}