{"action":"created","issue":{"url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/439","repository_url":"https://api.github.com/repos/bhauman/lein-figwheel","labels_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/439/labels{/name}","comments_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/439/comments","events_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/439/events","html_url":"https://github.com/bhauman/lein-figwheel/issues/439","id":161938953,"number":439,"title":"`lein do clean, figwheel` does not serve resources from target/","user":{"login":"tonsky","id":285292,"avatar_url":"https://avatars.githubusercontent.com/u/285292?v=3","gravatar_id":"","url":"https://api.github.com/users/tonsky","html_url":"https://github.com/tonsky","followers_url":"https://api.github.com/users/tonsky/followers","following_url":"https://api.github.com/users/tonsky/following{/other_user}","gists_url":"https://api.github.com/users/tonsky/gists{/gist_id}","starred_url":"https://api.github.com/users/tonsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonsky/subscriptions","organizations_url":"https://api.github.com/users/tonsky/orgs","repos_url":"https://api.github.com/users/tonsky/repos","events_url":"https://api.github.com/users/tonsky/events{/privacy}","received_events_url":"https://api.github.com/users/tonsky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-23T14:37:12Z","updated_at":"2016-06-23T20:09:11Z","closed_at":null,"body":"Might be related to #428, might be not. I still see this behaviour in 0.5.4-4, although 0.5.3 is fine. Here’s what happens:\r\n\r\n```clj\r\n:resource-paths [\"target/js\"]\r\n:cljsbuild {\r\n...\r\n          :output-to            \"target/js/main.js\"\r\n          :output-dir           \"target/js/none\"\r\n... }\r\n:figwheel {\r\n    :http-server-root \".\"\r\n    ...\r\n}\r\n```\r\n\r\nNow, if I do `lein do clean, figwheel`, it won’t serve `/main.js`\r\nIf I stop that and run `lein figwheel` (no cleaning this time), it suddenly starts to work.\r\nStrangely, `lein clean && mkdir target && mkdir target/js && touch target/js/main.js && lein figwheel` doesn’t work though.\r\n\r\nSeems to be broken in 0.5.4 (all `0.5.4-*` are affected). 0.5.3 works fine.\r\n\r\nMy guess there’s a check somewhere that checks if folder exists and excludes it from resource path. Do you remember adding something like that between 0.5.3 and 0.5.4?"},"comment":{"url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/comments/228168547","html_url":"https://github.com/bhauman/lein-figwheel/issues/439#issuecomment-228168547","issue_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/439","id":228168547,"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":"2016-06-23T20:09:11Z","updated_at":"2016-06-23T20:09:11Z","body":"Actually this is a bad test\r\n\r\n````\r\n(let [cl (.getContextClassLoader (Thread/currentThread))]\r\n  (doseq [url (java.util.Collections/list (.getResources cl \"\"))]\r\n    (println (str url))))\r\n```\r\n\r\nThis will only respond if the directories exist. You would need to add a file to the directory and then call this.\r\n\r\nAre you by chance using the `:open-urls` thing?"}}
{"actor":{"display_login":"bhauman"}}