magomimmo / modern-cljs

A series of tutorials on ClojureScript
2.92k stars 289 forks source link

Another problem with boot #345

Open BernhardBln opened 8 years ago

BernhardBln commented 8 years ago

I'm having a similar problem like #244, but only when I edit the index.html file (using boot dev).

When I edit JS files, everything works (and reloads) like a charm.

But when changing index.html, I get

Compiling ClojureScript...
• main.js
Writing target dir(s)...
java.util.concurrent.ExecutionException: java.nio.file.NoSuchFileException: target/index.html___jb_tmp___
      java.nio.file.NoSuchFileException: target/index.html___jb_tmp___
    file: "target/index.html___jb_tmp___"
sun.nio.fs.UnixException.translateToIOException               UnixException.java:   86
  sun.nio.fs.UnixException.rethrowAsIOException               UnixException.java:  102
  sun.nio.fs.UnixException.rethrowAsIOException               UnixException.java:  107
   sun.nio.fs.UnixFileSystemProvider.implDelete      UnixFileSystemProvider.java:  244
   sun.nio.fs.AbstractFileSystemProvider.delete  AbstractFileSystemProvider.java:  103
                                            ...                                       
                        boot.filesystem/delete!                   filesystem.clj:   65
                         boot.filesystem/patch!                   filesystem.clj:   81
                                            ...                                       
      boot.core/fileset-syncer/fn/iter/fn/fn/fn                         core.clj:  782
            clojure.core/binding-conveyor-fn/fn                         core.clj: 1916
                                            ...                                       
Elapsed time: 0,346 sec

This, however, does not happen when starting for the first time (everything compiles, and I can watch the page in the browser; only when I edit index.html and save, I get the error above).

I'm using boot 2.5.0 - with 2.4.2, I'm getting a different error:

> boot dev
Downloading https://github.com/boot-clj/boot/releases/download/2.4.2/boot.jar...
clojure.lang.ExceptionInfo: Unable to resolve symbol: target in this context
    data: {:file "/tmp/boot.user2241554893199461149.clj", :line 17}
java.lang.RuntimeException: Unable to resolve symbol: target in this context
               ...                
boot.main/-main/fn   main.clj: 169
   boot.main/-main   main.clj: 169
               ...                
  boot.App.runBoot   App.java: 361
     boot.App.main   App.java: 441
               ...                
         Boot.main  Boot.java: 258
BernhardBln commented 8 years ago

PS: when changing index.html, I'm getting that error. But when editing a JS file after and saving that, there is no error, and I also see the changes in the index.html in the browser.