{"action":"opened","issue":{"url":"https://api.github.com/repos/nathanmarz/specter/issues/160","repository_url":"https://api.github.com/repos/nathanmarz/specter","labels_url":"https://api.github.com/repos/nathanmarz/specter/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/nathanmarz/specter/issues/160/comments","events_url":"https://api.github.com/repos/nathanmarz/specter/issues/160/events","html_url":"https://github.com/nathanmarz/specter/issues/160","id":191567908,"number":160,"title":"Exception on `providepath` during aot compiling","user":{"login":"caioaao","id":1395990,"avatar_url":"https://avatars.githubusercontent.com/u/1395990?v=3","gravatar_id":"","url":"https://api.github.com/users/caioaao","html_url":"https://github.com/caioaao","followers_url":"https://api.github.com/users/caioaao/followers","following_url":"https://api.github.com/users/caioaao/following{/other_user}","gists_url":"https://api.github.com/users/caioaao/gists{/gist_id}","starred_url":"https://api.github.com/users/caioaao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caioaao/subscriptions","organizations_url":"https://api.github.com/users/caioaao/orgs","repos_url":"https://api.github.com/users/caioaao/repos","events_url":"https://api.github.com/users/caioaao/events{/privacy}","received_events_url":"https://api.github.com/users/caioaao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-24T17:20:25Z","updated_at":"2016-11-24T17:20:25Z","closed_at":null,"body":"Declaring a path on two different namespaces makes the project throw `java.lang.ClassCastException: com.rpl.specter.impl.CachedPathInfo cannot be cast to com.rpl.specter.impl.CachedPathInfo` when calling `lein uberjar`.\r\n\r\nI've created a repository to reproduce the error: https://github.com/caioaao/specter-reproduce\r\nThere are two step declarations:\r\n\r\nIn `specter-reproduce.core-path`:\r\n```clojure\r\n(sp/declarepath map-walker)\r\n(sp/providepath map-walker\r\n                 [(sp/walker map?)\r\n                  (sp/continue-then-stay sp/MAP-VALS map-walker)])\r\n```\r\n\r\nIn `specter-reproduce.other-ns`:\r\n```clojure\r\n(sp/declarepath nested-vector-walker)\r\n(sp/providepath nested-vector-walker\r\n                (sp/if-path vector? (sp/stay-then-continue (sp/view rest) ALL nested-vector-walker)))\r\n```\r\n\r\nThe exception only happens if I require at least one of the namespaces with a path definition in `core.clj`.\r\n\r\nThe complete output when running `lein uberjar` is [here](https://gist.github.com/caioaao/2aef8e893bf1e3b7b5b099abc3798028).\r\n\r\nSpecter version: `0.13.1`. Couldn't reproduce it on `0.12.0`."}}
{"actor":{"display_login":"caioaao"}}