{"action":"created","issue":{"url":"https://api.github.com/repos/lihaoyi/upickle/issues/31","labels_url":"https://api.github.com/repos/lihaoyi/upickle/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/lihaoyi/upickle/issues/31/comments","events_url":"https://api.github.com/repos/lihaoyi/upickle/issues/31/events","html_url":"https://github.com/lihaoyi/upickle/issues/31","id":44259391,"number":31,"title":"Macro implicits don't work outside package","user":{"login":"japgolly","id":202935,"avatar_url":"https://avatars.githubusercontent.com/u/202935?v=3","gravatar_id":"","url":"https://api.github.com/users/japgolly","html_url":"https://github.com/japgolly","followers_url":"https://api.github.com/users/japgolly/followers","following_url":"https://api.github.com/users/japgolly/following{/other_user}","gists_url":"https://api.github.com/users/japgolly/gists{/gist_id}","starred_url":"https://api.github.com/users/japgolly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/japgolly/subscriptions","organizations_url":"https://api.github.com/users/japgolly/orgs","repos_url":"https://api.github.com/users/japgolly/repos","events_url":"https://api.github.com/users/japgolly/events{/privacy}","received_events_url":"https://api.github.com/users/japgolly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2014-09-29T05:46:04Z","updated_at":"2015-01-13T12:56:00Z","closed_at":null,"body":"Hey. Check this out:\r\nhttps://github.com/japgolly/upickle/commit/9a976af73ed46eeb7364829e457a973719ed9a7b\r\n\r\n`Eg2` compiles but `Eg1` doesn't.\r\n```\r\n[error] upickle/jvm/shared/test/scala/upickle/blah/blah.scala:7: uPickle does not know how to read [upickle.elsewhere.YYY]s; define an implicit Reader[upickle.elsewhere.YYY] to teach it how\r\n[error]   def blah(j: String): YYY = read[YYY](j)\r\n[error]                                       ^\r\n[warn] one warning found\r\n[error] one error found\r\n[error] upickle/js/shared/test/scala/upickle/blah/blah.scala:7: uPickle does not know how to read [upickle.elsewhere.YYY]s; define an implicit Reader[upickle.elsewhere.YYY] to teach it how\r\n[error]   def blah(j: String): YYY = read[YYY](j)\r\n[error]                                       ^\r\n[warn] one warning found\r\n[error] one error found\r\n```"},"comment":{"url":"https://api.github.com/repos/lihaoyi/upickle/issues/comments/69740094","html_url":"https://github.com/lihaoyi/upickle/issues/31#issuecomment-69740094","issue_url":"https://api.github.com/repos/lihaoyi/upickle/issues/31","id":69740094,"user":{"login":"tindzk","id":196819,"avatar_url":"https://avatars.githubusercontent.com/u/196819?v=3","gravatar_id":"","url":"https://api.github.com/users/tindzk","html_url":"https://github.com/tindzk","followers_url":"https://api.github.com/users/tindzk/followers","following_url":"https://api.github.com/users/tindzk/following{/other_user}","gists_url":"https://api.github.com/users/tindzk/gists{/gist_id}","starred_url":"https://api.github.com/users/tindzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tindzk/subscriptions","organizations_url":"https://api.github.com/users/tindzk/orgs","repos_url":"https://api.github.com/users/tindzk/repos","events_url":"https://api.github.com/users/tindzk/events{/privacy}","received_events_url":"https://api.github.com/users/tindzk/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T12:56:00Z","updated_at":"2015-01-13T12:56:00Z","body":"There must be something in Widok that collides with upickle. When I comment out ``import org.widok._``, the errors vanish. My first idea was that this is related to the implicits that I define [here](https://github.com/widok/widok/blob/master/src/main/scala/org/widok.scala), but even if I import these manually, I cannot reproduce this issue. I wish scalac would provide a bit more guidance. So a temporary solution for now is to encapsulate any upickle-related code in a separate file and ensure that no conflicting imports are made."}}