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

NullPointerException when :output-dir not specified #50

Closed
atroche opened this issue Nov 6, 2014 · 1 comment
Closed

NullPointerException when :output-dir not specified #50

atroche opened this issue Nov 6, 2014 · 1 comment

Comments

@atroche
Copy link

atroche commented Nov 6, 2014

Hey guys, I'm getting this exception when I don't specify :output-dir in :compiler options. Might be better to have a friendly error message?

java.lang.NullPointerException: null
 at java.util.regex.Matcher.getTextLength (Matcher.java:1234)
    java.util.regex.Matcher.reset (Matcher.java:308)
    java.util.regex.Matcher.<init> (Matcher.java:228)
    java.util.regex.Pattern.matcher (Pattern.java:1088)
    clojure.core$re_matcher.invoke (core.clj:4460)
    clojure.core$re_matches.invoke (core.clj:4497)
    leiningen.figwheel$output_dir_in_resources_root_QMARK_.invoke (figwheel.clj:138)
    leiningen.figwheel$check_for_valid_options.invoke (figwheel.clj:164)
    leiningen.figwheel$figwheel.doInvoke (figwheel.clj:208)
(defproject vr "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"}
  :cljsbuild {:builds [{:source-paths ["src-cljs"]
                        :compiler {:optimizations :none
                                   :output-to "resources/public/js/main.js"
                                   }}]}
  :figwheel {
     :http-server-root "public"
     :server-port 3449
  }
  :plugins [[lein-cljsbuild "1.0.3"]
            [lein-figwheel "0.1.5-SNAPSHOT"]]
  :dependencies [[org.clojure/clojure "1.6.0"]
                 [figwheel "0.1.5-SNAPSHOT"]
                 [org.clojure/clojurescript "0.0-2371"]])
@bhauman
Copy link
Owner

bhauman commented Nov 29, 2014

Thanks for the heads up. I have this fixed in the next release.

@bhauman bhauman closed this as completed Nov 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants