Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pupeno opened this issue Jan 29, 2017 · 1 comment
Open

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

pupeno opened this issue Jan 29, 2017 · 1 comment
Labels

Comments

@pupeno
Copy link

pupeno commented Jan 29, 2017

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
Copy link
Member

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.

@Deraen Deraen added the windows label Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants