cljsjs / boot-cljsjs

Helper tasks to aid the packaging of JS dependencies for Clojurescript projects
66 stars 22 forks source link

The minify task doesn't seem to work on Windows #42

Open pupeno opened 7 years ago

pupeno commented 7 years ago

When I specify a minify task, such as:

           (minify :in "cljsjs/react-toolbox/development/react-toolbox.inc.js"
                   :out "cljsjs/react-toolbox/production/react-toolbox.min.inc.js"
                   :lang :ecmascript5)

it crashes with this error:

                              java.lang.Thread.run                       Thread.java:  745
java.util.concurrent.ThreadPoolExecutor$Worker.run           ThreadPoolExecutor.java:  617
 java.util.concurrent.ThreadPoolExecutor.runWorker           ThreadPoolExecutor.java: 1142
               java.util.concurrent.FutureTask.run                   FutureTask.java:  266
                                               ...
               clojure.core/binding-conveyor-fn/fn                          core.clj: 1916
                                 boot.core/boot/fn                          core.clj: 1029
                               boot.core/run-tasks                          core.clj: 1019
      cljsjs.boot-cljsjs.packaging/eval216/fn/G/fn                     packaging.clj:   86
      cljsjs.boot-cljsjs.packaging/eval53/fn/fn/fn                     packaging.clj:   25
     cljsjs.boot-cljsjs.packaging/eval104/fn/fn/fn                     packaging.clj:   40
                        boot.user/eval429/fn/fn/fn  boot.user5499082694657809200.clj:   23
                    boot.task.built-in/fn/fn/fn/fn                      built_in.clj:  577 (repeats 2 times)
     cljsjs.boot-cljsjs.packaging/eval305/fn/fn/fn                     packaging.clj:  148
                                boot.core/tmp-file                          core.clj:  393
                                  boot.tmpdir/fn/G                        tmpdir.clj:   25
                   clojure.core/-cache-protocol-fn                  core_deftype.clj:  554
java.lang.IllegalArgumentException: No implementation of method: :file of protocol: #'boot.tmpdir/ITmpFile found for class: nil
        clojure.lang.ExceptionInfo: No implementation of method: :file of protocol: #'boot.tmpdir/ITmpFile found for class: nil
    file: "C:\\Users\\pupeno\\AppData\\Local\\Temp\\boot.user5499082694657809200.clj"
    line: 29
martinklepsch commented 7 years ago

This error could potentially occur when the file specified as :in doesn't exist. Try putting (show :fileset true) before the minify task and verify that the file exists in the right place.