Skip to content

Commit

Permalink
don't automatically trampoline on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Hauman committed May 6, 2018
1 parent 5fca4f2 commit 7b74efa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugin/src/leiningen/figwheel.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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]))

Expand Down Expand Up @@ -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?*
Expand Down

0 comments on commit 7b74efa

Please sign in to comment.