{"action":"created","issue":{"url":"https://api.github.com/repos/milessabin/shapeless/issues/380","labels_url":"https://api.github.com/repos/milessabin/shapeless/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/milessabin/shapeless/issues/380/comments","events_url":"https://api.github.com/repos/milessabin/shapeless/issues/380/events","html_url":"https://github.com/milessabin/shapeless/issues/380","id":73261569,"number":380,"title":"cachedImplicit \"in the same compilation unit\"","user":{"login":"fommil","id":1914041,"avatar_url":"https://avatars.githubusercontent.com/u/1914041?v=3","gravatar_id":"","url":"https://api.github.com/users/fommil","html_url":"https://github.com/fommil","followers_url":"https://api.github.com/users/fommil/followers","following_url":"https://api.github.com/users/fommil/following{/other_user}","gists_url":"https://api.github.com/users/fommil/gists{/gist_id}","starred_url":"https://api.github.com/users/fommil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fommil/subscriptions","organizations_url":"https://api.github.com/users/fommil/orgs","repos_url":"https://api.github.com/users/fommil/repos","events_url":"https://api.github.com/users/fommil/events{/privacy}","received_events_url":"https://api.github.com/users/fommil/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/milessabin/shapeless/labels/Bug","name":"Bug","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"milessabin","id":131183,"avatar_url":"https://avatars.githubusercontent.com/u/131183?v=3","gravatar_id":"","url":"https://api.github.com/users/milessabin","html_url":"https://github.com/milessabin","followers_url":"https://api.github.com/users/milessabin/followers","following_url":"https://api.github.com/users/milessabin/following{/other_user}","gists_url":"https://api.github.com/users/milessabin/gists{/gist_id}","starred_url":"https://api.github.com/users/milessabin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milessabin/subscriptions","organizations_url":"https://api.github.com/users/milessabin/orgs","repos_url":"https://api.github.com/users/milessabin/repos","events_url":"https://api.github.com/users/milessabin/events{/privacy}","received_events_url":"https://api.github.com/users/milessabin/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/milessabin/shapeless/milestones/4","html_url":"https://github.com/milessabin/shapeless/milestones/shapeless-2.2.0","labels_url":"https://api.github.com/repos/milessabin/shapeless/milestones/4/labels","id":812289,"number":4,"title":"shapeless-2.2.0","description":"","creator":{"login":"milessabin","id":131183,"avatar_url":"https://avatars.githubusercontent.com/u/131183?v=3","gravatar_id":"","url":"https://api.github.com/users/milessabin","html_url":"https://github.com/milessabin","followers_url":"https://api.github.com/users/milessabin/followers","following_url":"https://api.github.com/users/milessabin/following{/other_user}","gists_url":"https://api.github.com/users/milessabin/gists{/gist_id}","starred_url":"https://api.github.com/users/milessabin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milessabin/subscriptions","organizations_url":"https://api.github.com/users/milessabin/orgs","repos_url":"https://api.github.com/users/milessabin/repos","events_url":"https://api.github.com/users/milessabin/events{/privacy}","received_events_url":"https://api.github.com/users/milessabin/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":16,"state":"open","created_at":"2014-10-03T07:03:27Z","updated_at":"2015-05-05T15:29:03Z","due_on":"2015-03-27T00:00:00Z","closed_at":null},"comments":12,"created_at":"2015-05-05T09:34:52Z","updated_at":"2015-05-06T09:01:44Z","closed_at":"2015-05-05T15:29:03Z","body":"when I try to use `cachedImplicit` I am getting this error\r\n\r\n```\r\nFamilyFormatsSpec.scala:70: macro implementation not found: cachedImplicit\r\n[error] (the most common reason for that is that you cannot use macro implementations in the same compilation run that defines them)\r\n[error]   implicit val SimpleTraitFormat: RootJsonFormat[SimpleTrait] = cachedImplicit\r\n```\r\n\r\ne.g. in this file\r\n\r\nhttps://github.com/fommil/ensime-server/blob/jerk/spray-json-shapeless/src/test/scala/org/ensime/json/FamilyFormatsSpec.scala#L69\r\n\r\nI've tried it in a few different places and get the same error each time. Is there some rule I must obey?"},"comment":{"url":"https://api.github.com/repos/milessabin/shapeless/issues/comments/99389612","html_url":"https://github.com/milessabin/shapeless/issues/380#issuecomment-99389612","issue_url":"https://api.github.com/repos/milessabin/shapeless/issues/380","id":99389612,"user":{"login":"milessabin","id":131183,"avatar_url":"https://avatars.githubusercontent.com/u/131183?v=3","gravatar_id":"","url":"https://api.github.com/users/milessabin","html_url":"https://github.com/milessabin","followers_url":"https://api.github.com/users/milessabin/followers","following_url":"https://api.github.com/users/milessabin/following{/other_user}","gists_url":"https://api.github.com/users/milessabin/gists{/gist_id}","starred_url":"https://api.github.com/users/milessabin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milessabin/subscriptions","organizations_url":"https://api.github.com/users/milessabin/orgs","repos_url":"https://api.github.com/users/milessabin/repos","events_url":"https://api.github.com/users/milessabin/events{/privacy}","received_events_url":"https://api.github.com/users/milessabin/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T09:01:44Z","updated_at":"2015-05-06T09:01:44Z","body":"So I'm not clear ... is that code problematic or not?"}}