Fork me on GitHub
#perun
<
2019-01-06
>
bmaddy03:01:38

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

Pipo18:01:31

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]])

Pipo18:01:31

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

bmaddy19:01:40

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

👍 10
jaide19:01:20

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.

👍 5
bmaddy03:01:37

boot --help works in other directories.