{"action":"created","issue":{"url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/68","labels_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/68/comments","events_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/68/events","html_url":"https://github.com/bhauman/lein-figwheel/issues/68","id":54468214,"number":68,"title":"run-compiler seems to ignore \"java-sources\"","user":{"login":"tolitius","id":136575,"avatar_url":"https://avatars.githubusercontent.com/u/136575?v=3","gravatar_id":"","url":"https://api.github.com/users/tolitius","html_url":"https://github.com/tolitius","followers_url":"https://api.github.com/users/tolitius/followers","following_url":"https://api.github.com/users/tolitius/following{/other_user}","gists_url":"https://api.github.com/users/tolitius/gists{/gist_id}","starred_url":"https://api.github.com/users/tolitius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolitius/subscriptions","organizations_url":"https://api.github.com/users/tolitius/orgs","repos_url":"https://api.github.com/users/tolitius/repos","events_url":"https://api.github.com/users/tolitius/events{/privacy}","received_events_url":"https://api.github.com/users/tolitius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-15T16:15:56Z","updated_at":"2015-01-15T21:17:30Z","closed_at":null,"body":"There is a single Java file used (it has observable state and transient things that are not easily translated to Clojure), that lives under `src/java`.\r\n\r\nThe normal flow: lein, compile, repl, cljsbuild, uberjar, ring server, etc.. works fine. But figwheel does not seem to find it (even if the namespace that uses it is AOTed).\r\n\r\nHere is an example:\r\n\r\n## checking out\r\n\r\n```bash\r\n$ g clone https://github.com/tolitius/hface\r\n$ cd hface\r\n$ g co figwheel-issue      # checkout to a figwheel-issue branch                                                                                                   \r\n```\r\n\r\n## normal things work (including repl, uberjar and friends)\r\n\r\n```bash\r\n$ lein do compile, cljsbuild once                                                                                           \r\nCompiling ClojureScript.\r\nCompiling \"resources/public/js/app.js\" from (\"src/cljs\" \"env/dev/cljs\")...\r\nSuccessfully compiled \"resources/public/js/app.js\" in 13.565 seconds.\r\n```\r\n## figwheel does not seem to be able to compile sources\r\n```java\r\n$ lein figwheel\r\nFigwheel: focusing on build-ids (app)\r\nCompiling ClojureScript.\r\njava.lang.ClassNotFoundException: org.hface.InstanceStatsTask, compiling:(hface/stats.clj:1:1)\r\n    ...\r\n\tat figwheel_sidecar.core$resolve_ring_handler.invoke(core.clj:368)\r\n\tat figwheel_sidecar.core$start_server.invoke(core.clj:376)\r\n\tat user$eval12493.invoke(form-init2945378863219041657.clj:1)\r\n    ...\r\n\tat clojure.main.main(main.java:37)\r\nCaused by: java.lang.ClassNotFoundException: org.hface.InstanceStatsTask\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:366)\r\n    ...\r\n\tat hface.stats$eval12506$loading__4958__auto____12507.invoke(stats.clj:1)\r\n\tat hface.stats$eval12506.invoke(stats.clj:1)\r\n\t... 56 more\r\n```\r\n`hface.stats` is the namespace that uses that Java class ([InstanceStatsTask](https://github.com/tolitius/hface/blob/master/src/java/org/hface/InstanceStatsTask.java))\r\n\r\n---\r\nThe Java file is in target/classes, all the standard pathing, nothing fancy. Almost feels like figwheel just needs to care for `:java-source-paths [\"src/java\"]`"},"comment":{"url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/comments/70163386","html_url":"https://github.com/bhauman/lein-figwheel/issues/68#issuecomment-70163386","issue_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/68","id":70163386,"user":{"login":"bhauman","id":2624,"avatar_url":"https://avatars.githubusercontent.com/u/2624?v=3","gravatar_id":"","url":"https://api.github.com/users/bhauman","html_url":"https://github.com/bhauman","followers_url":"https://api.github.com/users/bhauman/followers","following_url":"https://api.github.com/users/bhauman/following{/other_user}","gists_url":"https://api.github.com/users/bhauman/gists{/gist_id}","starred_url":"https://api.github.com/users/bhauman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhauman/subscriptions","organizations_url":"https://api.github.com/users/bhauman/orgs","repos_url":"https://api.github.com/users/bhauman/repos","events_url":"https://api.github.com/users/bhauman/events{/privacy}","received_events_url":"https://api.github.com/users/bhauman/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T21:17:30Z","updated_at":"2015-01-15T21:17:30Z","body":"Also thanks for brining this to my attention.  It gave me an excuse to put more time into understanding these things."}}