emezeske / lein-cljsbuild

Leiningen plugin to make ClojureScript development easy.
Other
1.1k stars 151 forks source link

Incorrect path syntax on Windows #364

Closed lenaschoenburg closed 9 years ago

lenaschoenburg commented 9 years ago

I get this error when I try to run lein cljsbuild once on windows. My project.clj is slightly modified from the chestnut template and looks as follows:

(defproject exp "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}

  :source-paths ["src/clj"]
  :test-paths ["spec/clj"]

  :dependencies [[org.clojure/clojure "1.6.0"]
                 [org.clojure/clojurescript "0.0-2727"]
                 [com.taoensso/sente "1.3.0"]
                 [compojure "1.3.1"]
                 [enlive "1.1.5"]
                 [environ "1.0.0"]
                 [http-kit "2.1.19"]
                 [org.omcljs/om "0.8.4"]
                 [prismatic/om-tools "0.3.10" :exclusions [potemkin]]
                 [racehub/om-bootstrap "0.3.3" :exclusions [om]]
                 [ring "1.3.2"]
                 [ring/ring-defaults "0.1.3"]]
  :plugins [[lein-cljsbuild "1.0.4"]
            [lein-environ "1.0.0"]]

  :min-lein-version "2.5.0"

  :hooks [leiningen.cljsbuild]

  :uberjar-name "exp.jar"
  :cljsbuild {:builds {:app {:source-paths ["src/cljs"]
                             :compiler {:output-to     "\\resources\\public\\js\\app.js"
                                        ;;:output-dir    "resources/public/js/out"
                                        ;;:source-map    "resources/public/js/out.js.map"
                                        :optimizations :none
                                        :pretty-print  true}}}}

  :profiles {:dev {:source-paths ["env/dev/clj"]

                   :dependencies [[figwheel "0.2.2-SNAPSHOT"]
                                  [com.cemerick/piggieback "0.1.5"]
                                  [weasel "0.5.0"]
                                  [leiningen "2.5.0"]]

                   :repl-options {:init-ns exp.server
                                  :nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}

                   :plugins [[lein-figwheel "0.2.2-SNAPSHOT"]]

                   :figwheel {:http-server-root "public"
                              :server-port 3449
                              :css-dirs ["resources/public/css"]}

                   :env {:is-dev true}

                   :cljsbuild {:builds
                               {:app
                                {:source-paths ["env/dev/cljs"]}}}}

             :uberjar {:source-paths ["env/prod/clj"]
                       :env {:production true}
                       :omit-source true
                       :aot :all
                       :cljsbuild {:builds {:app
                                            {:source-paths ["env/prod/cljs"]
                                             :compiler
                                             {:optimizations :advanced
                                              :pretty-print false
                                              :source-map false}}}}}})
swannodette commented 9 years ago

@dignati this is a known Windows bug in ClojureScript 0.0-2727. Will be fixed when we cut the next ClojureScript release which will be very soon.

lenaschoenburg commented 9 years ago

@swannodette Great, thank you! I'm closing this now.