lein-figwheel

worrelsik 2019-11-22T09:57:39.005100Z

When I run

lein new figwheel cljs-weather -- --reagent
on MS Windows 10, I'm getting this empty require form in the ns macro:
(ns cljs-weather.core
    (:require ))
Is this to be expected or am I missing something?

worrelsik 2019-11-22T12:45:05.006600Z

On an old linux machine, I get the expected

(ns cljs-weather.core
    (:require [reagent.core :as reagent :refer [atom]]))
so there's something not OK on my windows machine.

worrelsik 2019-11-22T12:47:44.007700Z

It seems to be a powershell-related issue: when running the command in a CMD-window, I also get the expected output.

worrelsik 2019-11-22T14:33:33.010200Z

Luckily I found @juergenhoetzels' post on issue 2526 https://github.com/technomancy/leiningen/issues/2526#issuecomment-468951181 In Powershell, one needs to quote the double dashes:`lein new figwheel cljs-weather '--' --reagent`