girouette

2022-06-04T08:47:40.405529Z

๐Ÿ˜ 2
Derek 2022-06-04T15:01:56.460009Z

Running the 0.0.8 processor and seeing an exception get thrown. More details in thread

Derek 2022-06-04T15:02:02.627539Z

Execution error (NullPointerException) at girouette.processor/spit-output (processor.clj:175).
Cannot invoke "clojure.lang.IFn.invoke(Object)" because "this.f" is null

Derek 2022-06-04T15:02:40.444989Z

from deps.edn:

:girouette-processor
{:extra-deps
   {girouette/processor {:mvn/version "0.0.8"}}
   :ns-default girouette.processor
   :exec-fn    process
   :exec-args
   {:css
    {:output-file      "./public/static/css/main.css"
     :retrieval-method :annotated}
    :color? false}}

Derek 2022-06-04T15:03:32.198659Z

Seeing it in both watch mode and non

Derek 2022-06-04T17:23:29.698189Z

Full context:

$ clojure -X:girouette-processor
WARNING: abs already refers to: #'clojure.core/abs in namespace: garden.color, being replaced by: #'garden.color/abs
:gear: Settings:
{:output-file "./public/static/css/main.css",
 :watch? false,
 :verbose? true,
 :css-symb girouette.core/css,
 :retrieval-method :annotated,
 :source-paths ["src"],
 :output-format :css,
 :base-css-rules [],
 :color? false,
 :dry-run? false,
 :file-filters [".cljs" ".cljc"],
 :apply-classes nil,
 :garden-fn nil}

src/org/passen/homepage/links.cljs: :boom: parse error!
src/org/passen/homepage/app.cljs: :boom: parse error!
src/org/passen/homepage/about.cljs: :boom: parse error!
src/org/passen/homepage/external_link.cljs: :boom: parse error!
Execution error (NullPointerException) at girouette.processor/spit-output (processor.clj:175).
Cannot invoke "clojure.lang.IFn.invoke(Object)" because "this.f" is null

Full report at:
/var/folders/qp/_zw4563s7r57w1c907ts06lr0000gn/T/clojure-11121298016966490294.edn

Derek 2022-06-04T17:24:14.768699Z

For comparison, when using 0.0.7:

$ clojure -X:girouette-processor
WARNING: abs already refers to: #'clojure.core/abs in namespace: garden.color, being replaced by: #'garden.color/abs
:gear: Settings:
{:output-file "./public/static/css/main.css",
 :watch? false,
 :verbose? true,
 :css-symb girouette.core/css,
 :retrieval-method :annotated,
 :source-paths ["src"],
 :output-format :css,
 :color? false,
 :dry-run? false,
 :file-filters [".cljs" ".cljc"],
 :apply-classes nil,
 :garden-fn #'girouette.tw.default-api/class-name->garden,
 :preflight? true}

src/org/passen/homepage/links.cljs: [+ flex gap-x-3 justify-center]
src/org/passen/homepage/app.cljs: [+ dark:bg-black dark:text-white flex flex-col min-h-screen p-2 pb-4]
src/org/passen/homepage/about.cljs: [+ flex-grow]
src/org/passen/homepage/external_link.cljs: [+ hover:underline]
:tada: CSS stylesheet generated!

2022-06-05T02:08:16.055919Z

In v0.0.8, the processor as less defaults and requires more options. See for example: https://github.com/green-coder/girouette/blob/master/example/reagent-demo/deps.edn#L14-L21

2022-06-05T02:09:09.133989Z

You might add :garden-fn and :base-css-rules

Derek 2022-06-05T02:46:29.639809Z

Thank you, my misunderstanding. I will try

2022-06-05T02:46:53.567419Z

I forgot to write about it in the changelog, will update it soon.

Derek 2022-06-05T03:05:08.137429Z

Thatโ€™s what it was. Thanks, and yes, the new watcher sure does seem a lot faster. Wonderful

๐Ÿ‘ 1