marginalia icon indicating copy to clipboard operation
marginalia copied to clipboard

chokes on my project.clj

Open cvillecsteele opened this issue 13 years ago • 6 comments

My project.clj looks a bit like:

;; Pick up special frobbing
(require 'mine.frob)

(defproject flib
  (frob/twiggle)
  "Flib at high speed"
  ...)

And I would love to use marginalia but it chokes on my project.clj! :( Sadness.

cvillecsteele avatar Mar 07 '11 11:03 cvillecsteele

How are you running Marg?

fogus avatar Mar 08 '11 15:03 fogus

$ lein marg

cvillecsteele avatar Mar 08 '11 15:03 cvillecsteele

Could you perhaps update with an actual running example project.clj that fails? I can't test the frobbing without the whole frob.

Raynes avatar Nov 24 '11 10:11 Raynes

We need more detail.

fogus avatar Mar 06 '12 14:03 fogus

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.

gfrey avatar May 11 '12 09:05 gfrey

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")
                                           (java.util.Date.)))))
(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.

TreeRex avatar Apr 18 '15 18:04 TreeRex