perun

Discuss perun static site generator
2019-01-06T03:34:38.008900Z

I'm trying to follow the getting-started guide and am getting this error when I run boot --help. Does anyone know what I'm doing wrong?

java.lang.IllegalStateException: trace already refers to: #'boot.util/trace in namespace: boot.user
     clojure.lang.ExceptionInfo: trace already refers to: #'boot.util/trace in namespace: boot.user

Pipo 2019-01-06T18:41:31.010Z

I'm not a perun dev at all so I don't know if my solution is alright, but instead of (require) I used (use) to import perun's namespace. You can pass an :exclude argument like so : (use '[io.perun :exclude [trace]])

Pipo 2019-01-06T18:43:31.010200Z

That way you won't have to type the namespace everytime like when you use :refer

2019-01-06T19:53:40.010400Z

Ah, I didn't even notice that in there. Thanks.

👍 2
2019-01-12T19:00:20.011100Z

I reported this issue in the docs repo, interestingly when I tried to submit a PR to fix it, I noticed it was updated to:

(set-env!
 :source-paths #{"content"}
 :dependencies '[[perun "0.4.2-SNAPSHOT" :scope "test"]])

(require '[io.perun :as perun])
and run boot perrun/markdown https://github.com/hashobject/perun.io/blob/master/resources/guides/getting-started.md So a fix may not have been published yet.

👍 1
2019-01-06T03:35:37.009700Z

boot --help works in other directories.