My project.clj looks a bit like:
;; Pick up special frobbing
"Flib at high speed"
And I would love to use marginalia but it chokes on my project.clj! :( Sadness.
How are you running Marg?
$ lein marg
Could you perhaps update with an actual running example project.clj that fails? I can't test the frobbing without the whole frob.
We need more detail.
Well, I guess his problem is that the parse-project-file function only handles project.clj files that have defproject form at beginning. He'll have a project name of (quote mine.frob), I guess.
This happens on my project.clj as well, which starts like:
(def wombat-version "1.1.0-SNAPSHOT")
;; BUILD_NUMBER is set by Jenkins
(def build-number (or (System/getenv "BUILD_NUMBER")
(str "dev-" (.format (java.text.SimpleDateFormat. "yyyyMMddHHmmss")
(def release-version (str wombat-version \. build-number))
(defproject wombat release-version
:description "Wombat's are wicked"
I can obviously inline all of the above into defproject but I'd rather not.