{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/ecto/issues/632","labels_url":"https://api.github.com/repos/elixir-lang/ecto/issues/632/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/ecto/issues/632/comments","events_url":"https://api.github.com/repos/elixir-lang/ecto/issues/632/events","html_url":"https://github.com/elixir-lang/ecto/issues/632","id":83200921,"number":632,"title":"Editing a previously-compiled module that uses @derive generates a warning","user":{"login":"citizenparker","id":128267,"avatar_url":"https://avatars.githubusercontent.com/u/128267?v=3","gravatar_id":"","url":"https://api.github.com/users/citizenparker","html_url":"https://github.com/citizenparker","followers_url":"https://api.github.com/users/citizenparker/followers","following_url":"https://api.github.com/users/citizenparker/following{/other_user}","gists_url":"https://api.github.com/users/citizenparker/gists{/gist_id}","starred_url":"https://api.github.com/users/citizenparker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citizenparker/subscriptions","organizations_url":"https://api.github.com/users/citizenparker/orgs","repos_url":"https://api.github.com/users/citizenparker/repos","events_url":"https://api.github.com/users/citizenparker/events{/privacy}","received_events_url":"https://api.github.com/users/citizenparker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-31T21:55:35Z","updated_at":"2015-06-01T09:51:31Z","closed_at":"2015-06-01T09:51:25Z","body":"When I initially add something like `@derive {Phoenix.Param, key: :name}` to an Ecto model and compile, I get no warning and everything is fine. However, any subsequent edits to that file (regardless of whether they change the schema or protocol derivation) generate a warning like `nofile:1: warning: redefining module Phoenix.Param.TestParams.Dog`\r\n\r\nhttps://github.com/citizenparker/test_params/blob/master/web/models/dog.ex reproduces this issue with a fresh out-of-the-box Phoenix / Ecto application."},"comment":{"url":"https://api.github.com/repos/elixir-lang/ecto/issues/comments/107383954","html_url":"https://github.com/elixir-lang/ecto/issues/632#issuecomment-107383954","issue_url":"https://api.github.com/repos/elixir-lang/ecto/issues/632","id":107383954,"user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T09:51:31Z","updated_at":"2015-06-01T09:51:31Z","body":"Thank you so much for giving an application that reproduces the issue, it makes fixing the bug a thousand times easier!"}}