{"action":"created","issue":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1018","labels_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1018/labels{/name}","comments_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1018/comments","events_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1018/events","html_url":"https://github.com/phoenixframework/phoenix/issues/1018","id":94561683,"number":1018,"title":"mix phoenix.gen.json foo is erroring with 0.14","user":{"login":"bcardarella","id":18524,"avatar_url":"https://avatars.githubusercontent.com/u/18524?v=3","gravatar_id":"","url":"https://api.github.com/users/bcardarella","html_url":"https://github.com/bcardarella","followers_url":"https://api.github.com/users/bcardarella/followers","following_url":"https://api.github.com/users/bcardarella/following{/other_user}","gists_url":"https://api.github.com/users/bcardarella/gists{/gist_id}","starred_url":"https://api.github.com/users/bcardarella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcardarella/subscriptions","organizations_url":"https://api.github.com/users/bcardarella/orgs","repos_url":"https://api.github.com/users/bcardarella/repos","events_url":"https://api.github.com/users/bcardarella/events{/privacy}","received_events_url":"https://api.github.com/users/bcardarella/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-12T12:26:21Z","updated_at":"2015-07-12T13:50:51Z","closed_at":null,"body":"With a brand new project I ran `mix phoenix.gen.json foo` and got the following error:\r\n\r\n```\r\nGenerated ecto app\r\n==> phoenix_ecto\r\nCompiled lib/phoenix_ecto.ex\r\nCompiled lib/phoenix_ecto/plug.ex\r\nCompiled lib/phoenix_ecto/json.ex\r\nCompiled lib/phoenix_ecto/html.ex\r\nGenerated phoenix_ecto app\r\n==> my_app\r\nUnchecked dependencies for environment dev:\r\n* postgrex (Hex package)\r\n  the dependency postgrex defined\r\n\r\n  > In mix.exs:\r\n    {:postgrex, \">= 0.0.0\", [hex: :postgrex]}\r\n\r\n  does not match the requirement specified\r\n\r\n  > In deps/ecto/mix.exs:\r\n    {:postgrex, \"~> 0.8.3\", [optional: true, hex: :postgrex]}\r\n\r\n  Ensure they match or specify one of the above in your MyApp.Mixfile deps and set `override: true`\r\n** (Mix) Can't continue due to errors on dependencies\r\n```"},"comment":{"url":"https://api.github.com/repos/phoenixframework/phoenix/issues/comments/120721795","html_url":"https://github.com/phoenixframework/phoenix/issues/1018#issuecomment-120721795","issue_url":"https://api.github.com/repos/phoenixframework/phoenix/issues/1018","id":120721795,"user":{"login":"bcardarella","id":18524,"avatar_url":"https://avatars.githubusercontent.com/u/18524?v=3","gravatar_id":"","url":"https://api.github.com/users/bcardarella","html_url":"https://github.com/bcardarella","followers_url":"https://api.github.com/users/bcardarella/followers","following_url":"https://api.github.com/users/bcardarella/following{/other_user}","gists_url":"https://api.github.com/users/bcardarella/gists{/gist_id}","starred_url":"https://api.github.com/users/bcardarella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcardarella/subscriptions","organizations_url":"https://api.github.com/users/bcardarella/orgs","repos_url":"https://api.github.com/users/bcardarella/repos","events_url":"https://api.github.com/users/bcardarella/events{/privacy}","received_events_url":"https://api.github.com/users/bcardarella/received_events","type":"User","site_admin":false},"created_at":"2015-07-12T13:50:51Z","updated_at":"2015-07-12T13:50:51Z","body":"@chrismccord my research shows that `postgrex` `0.9.0` was being installed when I ran `mix deps.get`. I suspect that mix was somehow ignoring the version bounds of Ecto and downloaded what Phoneix's deps said to get. When it attempts to compile at that point the version mismatch is seen by Mix and the error is raised. (pure guess)"}}