From 7b74efa0c4c60d9051ebaa9c4179681359bcb903 Mon Sep 17 00:00:00 2001 From: Bruce Hauman Date: Sun, 6 May 2018 17:34:57 -0400 Subject: [PATCH] don't automatically trampoline on windows #682 and #687 --- plugin/src/leiningen/figwheel.clj | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugin/src/leiningen/figwheel.clj b/plugin/src/leiningen/figwheel.clj index df7bd9f0..1df0f4d7 100644 --- a/plugin/src/leiningen/figwheel.clj +++ b/plugin/src/leiningen/figwheel.clj @@ -8,6 +8,7 @@ [leiningen.trampoline :as tramp] [clojure.java.io :as io] [clojure.set :refer [intersection]] + [clojure.string :as string] [leiningen.figwheel.fuzzy :as fuz] [simple-lein-profile-merge.core :as lm])) @@ -538,6 +539,15 @@ Configuration: (if (and (or (= nil command) (= ":reactor" command)) + ;; no auto-trampoline on windows + ;; users can call lein trampoline figwheel if they wish + ;; see + ;; https://github.com/technomancy/leiningen/issues/982 + ;; and + ;; https://github.com/bhauman/lein-figwheel/issues/682 + (not (-> (System/getProperty "os.name") + (string/lower-case) + (.contains "windows"))) (get-in project [:figwheel :repl] true) (get-in project [:figwheel :readline] true)) (if tramp/*trampoline?*