{"action":"created","issue":{"url":"https://api.github.com/repos/lihaoyi/upickle/issues/110","repository_url":"https://api.github.com/repos/lihaoyi/upickle","labels_url":"https://api.github.com/repos/lihaoyi/upickle/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/lihaoyi/upickle/issues/110/comments","events_url":"https://api.github.com/repos/lihaoyi/upickle/issues/110/events","html_url":"https://github.com/lihaoyi/upickle/issues/110","id":103727137,"number":110,"title":"Compilation time takes long to discover missing implicit for unknown type","user":{"login":"LubomirVarga","id":13468627,"avatar_url":"https://avatars2.githubusercontent.com/u/13468627?v=4","gravatar_id":"","url":"https://api.github.com/users/LubomirVarga","html_url":"https://github.com/LubomirVarga","followers_url":"https://api.github.com/users/LubomirVarga/followers","following_url":"https://api.github.com/users/LubomirVarga/following{/other_user}","gists_url":"https://api.github.com/users/LubomirVarga/gists{/gist_id}","starred_url":"https://api.github.com/users/LubomirVarga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LubomirVarga/subscriptions","organizations_url":"https://api.github.com/users/LubomirVarga/orgs","repos_url":"https://api.github.com/users/LubomirVarga/repos","events_url":"https://api.github.com/users/LubomirVarga/events{/privacy}","received_events_url":"https://api.github.com/users/LubomirVarga/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2015-08-28T14:21:30Z","updated_at":"2017-12-19T02:30:16Z","closed_at":"2017-12-19T02:30:16Z","author_association":"NONE","body":"When I have missing import for Date type pickler, I can get error\n\n```\nError:(41, 27) Couldn't derive type Seq[A$A133.this.MainStruct]\n    read[Seq[MainStruct]](jsonString)\n                         ^\n```\n\nIt is nice, but when I have nontrivial code, it takes long to get this error (really long). Try this example and after compilation error try to uncomment line with timeKiller and try it again. Than try uncomment timeKiller2 and try again. And so on. It takes about minute to see compilation error on my PC with timeKiller uncommented. With all time killers active, my compilation did not finished after 40 minutes. It was a lot frustrating to find out that actual problem was in missing implicit.\n\n``` scala\nimport java.util.Date\nimport upickle.default._\nimport upickle.Js\n\nprivate case class SubStruct(val from: Date) {\n  def asAnotherType() = {\n    (from, None)\n  }\n}\n\nprivate case class MainStruct(id: Option[Int],\n                               //timeKiller: Option[Double],\n                               //timeKiller2: Option[Double],\n                               //timeKiller3: Option[Double],\n                               //timeKiller4: Option[Double],\n                               //timeKiller5: Option[Double],\n                               //timeKiller6: Option[Double],\n                               consumption: Seq[SubStruct]\n                             ) {\n  def asAnotherStruct() = {\n    (id, consumption.map(c => c.asAnotherType()))\n  }\n}\n\nprivate def convertData(jsonString: String) = {\n  val componentsRaw =\n    read[Seq[MainStruct]](jsonString)\n  val components = componentsRaw.map(x => x.asAnotherStruct())\n  components\n}\n```\n"},"comment":{"url":"https://api.github.com/repos/lihaoyi/upickle/issues/comments/352621117","html_url":"https://github.com/lihaoyi/upickle/issues/110#issuecomment-352621117","issue_url":"https://api.github.com/repos/lihaoyi/upickle/issues/110","id":352621117,"user":{"login":"lihaoyi","id":934140,"avatar_url":"https://avatars0.githubusercontent.com/u/934140?v=4","gravatar_id":"","url":"https://api.github.com/users/lihaoyi","html_url":"https://github.com/lihaoyi","followers_url":"https://api.github.com/users/lihaoyi/followers","following_url":"https://api.github.com/users/lihaoyi/following{/other_user}","gists_url":"https://api.github.com/users/lihaoyi/gists{/gist_id}","starred_url":"https://api.github.com/users/lihaoyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lihaoyi/subscriptions","organizations_url":"https://api.github.com/users/lihaoyi/orgs","repos_url":"https://api.github.com/users/lihaoyi/repos","events_url":"https://api.github.com/users/lihaoyi/events{/privacy}","received_events_url":"https://api.github.com/users/lihaoyi/received_events","type":"User","site_admin":false},"created_at":"2017-12-19T02:30:16Z","updated_at":"2017-12-19T02:30:16Z","author_association":"OWNER","body":"Bug bankruptcy"}}
{"actor":{"display_login":"lihaoyi"}}