Skip to content

Commit 7b74efa

Browse files
author
Bruce Hauman
committed
don't automatically trampoline on windows
#682 and #687
1 parent 5fca4f2 commit 7b74efa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

plugin/src/leiningen/figwheel.clj

+10
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
[leiningen.trampoline :as tramp]
99
[clojure.java.io :as io]
1010
[clojure.set :refer [intersection]]
11+
[clojure.string :as string]
1112
[leiningen.figwheel.fuzzy :as fuz]
1213
[simple-lein-profile-merge.core :as lm]))
1314

@@ -538,6 +539,15 @@ Configuration:
538539
(if (and
539540
(or (= nil command)
540541
(= ":reactor" command))
542+
;; no auto-trampoline on windows
543+
;; users can call lein trampoline figwheel if they wish
544+
;; see
545+
;; https://github.com/technomancy/leiningen/issues/982
546+
;; and
547+
;; https://github.com/bhauman/lein-figwheel/issues/682
548+
(not (-> (System/getProperty "os.name")
549+
(string/lower-case)
550+
(.contains "windows")))
541551
(get-in project [:figwheel :repl] true)
542552
(get-in project [:figwheel :readline] true))
543553
(if tramp/*trampoline?*

0 commit comments

Comments
 (0)