Skip to content

Instantly share code, notes, and snippets.

@MagicMagnate
Created February 16, 2018 12:19
Show Gist options
  • Save MagicMagnate/7cb1086f91e3a0e74acd8810430adf55 to your computer and use it in GitHub Desktop.
Save MagicMagnate/7cb1086f91e3a0e74acd8810430adf55 to your computer and use it in GitHub Desktop.
mix phx.new test
** (KeyError) key :Phoenix not found in: %Phx.New.Project{app: "test", app_mod: Test, app_path: "/Users/ardhi/Documents/Projects/Programming/Elixir:Phoenix/test", base_path: "/Users/ardhi/Documents/Projects/Programming/Elixir:Phoenix/test", binding: [app_name: "test", app_module: "Test", root_app_name: "test", root_app_module: "Test", lib_web_name: "test_web", web_app_name: "test", endpoint_module: "TestWeb.Endpoint", web_namespace: "TestWeb", phoenix_dep: "{:phoenix, \"~> 1.3.0\"}", phoenix_path: "deps/phoenix", phoenix_brunch_path: "../deps/phoenix", phoenix_html_brunch_path: "../deps/phoenix_html", phoenix_static_path: "deps/phoenix", pubsub_server: Test.PubSub, secret_key_base: "dTon8pyMynhRDQoTF/+vGCm4xgk5M8QXkvKmFVPA9U2hH7cVRY1AWj9zYTJwAVaU", prod_secret_key_base: "Od00p0NH2kD7tm1VPfqcR1BU4W9ObpxD1nzddr3rGhJuDIRMpjFACec8Y2KOzpo7", signing_salt: "jsvfIPNZ", in_umbrella: false, brunch: true, ecto: true, html: true, adapter_app: :postgrex, adapter_module: Ecto.Adapters.Postgres, adapter_config: [dev: [username: "postgres", password: "postgres", database: "test_dev", hostname: "localhost"], test: [username: "postgres", password: "postgres", database: "test_test", hostname: "localhost", pool: Ecto.Adapters.SQL.Sandbox], prod: [username: "postgres", password: "postgres", database: "test_prod"], test_setup_all: "Ecto.Adapters.SQL.Sandbox.mode(Test.Repo, :manual)", test_setup: ":ok = Ecto.Adapters.SQL.Sandbox.checkout(Test.Repo)", test_async: "Ecto.Adapters.SQL.Sandbox.mode(Test.Repo, {:shared, self()})"], generators: nil, namespaced?: false], in_umbrella?: false, lib_web_name: "test_web", opts: [], project_path: "/Users/ardhi/Documents/Projects/Programming/Elixir:Phoenix/test", root_app: "test", root_mod: Test, web_app: "test", web_applications: [], web_namespace: TestWeb, web_path: "/Users/ardhi/Documents/Projects/Programming/Elixir:Phoenix/test"}
(stdlib) :maps.get(:Phoenix, %Phx.New.Project{app: "test", app_mod: Test, app_path: "/Users/ardhi/Documents/Projects/Programming/Elixir:Phoenix/test", base_path: "/Users/ardhi/Documents/Projects/Programming/Elixir:Phoenix/test", binding: [app_name: "test", app_module: "Test", root_app_name: "test", root_app_module: "Test", lib_web_name: "test_web", web_app_name: "test", endpoint_module: "TestWeb.Endpoint", web_namespace: "TestWeb", phoenix_dep: "{:phoenix, \"~> 1.3.0\"}", phoenix_path: "deps/phoenix", phoenix_brunch_path: "../deps/phoenix", phoenix_html_brunch_path: "../deps/phoenix_html", phoenix_static_path: "deps/phoenix", pubsub_server: Test.PubSub, secret_key_base: "dTon8pyMynhRDQoTF/+vGCm4xgk5M8QXkvKmFVPA9U2hH7cVRY1AWj9zYTJwAVaU", prod_secret_key_base: "Od00p0NH2kD7tm1VPfqcR1BU4W9ObpxD1nzddr3rGhJuDIRMpjFACec8Y2KOzpo7", signing_salt: "jsvfIPNZ", in_umbrella: false, brunch: true, ecto: true, html: true, adapter_app: :postgrex, adapter_module: Ecto.Adapters.Postgres, adapter_config: [dev: [username: "postgres", password: "postgres", database: "test_dev", hostname: "localhost"], test: [username: "postgres", password: "postgres", database: "test_test", hostname: "localhost", pool: Ecto.Adapters.SQL.Sandbox], prod: [username: "postgres", password: "postgres", database: "test_prod"], test_setup_all: "Ecto.Adapters.SQL.Sandbox.mode(Test.Repo, :manual)", test_setup: ":ok = Ecto.Adapters.SQL.Sandbox.checkout(Test.Repo)", test_async: "Ecto.Adapters.SQL.Sandbox.mode(Test.Repo, {:shared, self()})"], generators: nil, namespaced?: false], in_umbrella?: false, lib_web_name: "test_web", opts: [], project_path: "/Users/ardhi/Documents/Projects/Programming/Elixir:Phoenix/test", root_app: "test", root_mod: Test, web_app: "test", web_applications: [], web_namespace: TestWeb, web_path: "/Users/ardhi/Documents/Projects/Programming/Elixir:Phoenix/test"})
(elixir) lib/map.ex:256: Map.fetch!/2
lib/phx_new/project.ex:56: anonymous fn/3 in Phx.New.Project.expand_path_with_bindings/2
(elixir) lib/regex.ex:666: Regex.apply_list/5
(elixir) lib/regex.ex:661: Regex.apply_list/5
(elixir) lib/regex.ex:603: Regex.do_replace/4
lib/phx_new/generator.ex:52: anonymous fn/5 in Phx.New.Generator.copy_from/3
(elixir) lib/enum.ex:1899: Enum."-reduce/3-lists^foldl/2-0-"/3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment