boot-clj / boot

Build tooling for Clojure.
https://boot-clj.github.io/
Eclipse Public License 1.0
1.75k stars 182 forks source link

watch & cljc files incompatible on windows. #397

Closed laforge49 closed 8 years ago

laforge49 commented 8 years ago

If you use any .cljc files in a project, or even a library containing .cljc files, running watch on windows results in a whole lotta errors.

Here's a partial sample:

Starting reload server on ws://localhost:52732 Writing boot_reload.cljs... Writing boot_cljs_repl.cljs...

Starting file watcher (CTRL-C to quit)...

Compiling Hoplon pages... ò index.cljs.hl Adding :require adzerk.boot-reload to index.html.cljs.edn... nREPL server started on port 52734 on host 127.0.0.1 - nrepl://127.0.0.1:52734 Adding :require adzerk.boot-cljs-repl to index.html.cljs.edn... Compiling ClojureScript... ò index.html.js Starting Jetty on port 8000... 2016-01-26 12:14:45.394:INFO::clojure-agent-send-off-pool-0: Logging initialized @24737ms 2016-01-26 12:14:45.452:INFO:oejs.Server:clojure-agent-send-off-pool-0: jetty-9.3.1.v20150714 2016-01-26 12:14:45.550:INFO:oejw.StandardDescriptorProcessor:clojure-agent-send-off-pool-0: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet 2016-01-26 12:14:45.582:INFO:oejsh.ContextHandler:clojure-agent-send-off-pool-0: Started o.e.j.w.WebAppContext@73afd2ff{/,file:///C:/Users/Bill/.boot/cache/tmp/Users/Bill/Documents/aatree/aademos/lens/a80/lsi4n7/,AVAILABLE} 2016-01-26 12:14:45.604:INFO:oejs.ServerConnector:clojure-agent-send-off-pool-0: Started ServerConnector@7f034228{HTTP/1.1,[http/1.1]}{0.0.0.0:8000} 2016-01-26 12:14:45.611:INFO:oejs.Server:clojure-agent-send-off-pool-0: Started @24953ms Elapsed time: 19.959 sec

java.io.IOException: Couldn't delete C:\Users\Bill.boot\cache\tmp\Users\Bill\Documents\aatree\aademos\lens\a80\mm3x96\index.html.out\clojure\browser\repl.js.map clojure.java.io/delete-file/invokeStatic io.clj: 434 clojure.java.io/delete-file

laforge49 commented 8 years ago

Also, it looks like you need to have the page open to create this error.

laforge49 commented 8 years ago

Fixed in boot 2.6.0-SNAPSHOT