clj-commons / potemkin

some ideas which are almost good
572 stars 53 forks source link

Update 0.3.7 breaks Vertigo's `def-typed-struct` #29

Closed luxbock closed 10 years ago

luxbock commented 10 years ago

The newer versions of Potemkin break something with Vertigo. On a project with the following dependencies:

[potemkin "0.3.8"] ;; also 0.3.7
[vertigo "0.1.3"]

the following code:

(ns potemkin-vertigo.core
  (:require [vertigo.core :as v]
            [vertigo.structs :as s :refer [def-typed-struct]]))

(def-typed-struct Foobar :type s/int32)

results in:

CompilerException java.lang.ClassFormatError: Duplicate interface name in class file compile__stub/potemkin_vertigo/core$eval9546$reify$reify__9549, compiling:(/private/var/folders/j2/zvt92c1s39d_0kdmhrhbgtkm0000gn/T/form-init6935275163352736010.clj:1:1) 
ztellman commented 10 years ago

Have you tried running 'lein clean' first? This may well be an issue with the two of them, but just want to make sure. On Aug 24, 2014 2:04 PM, "luxbock" notifications@github.com wrote:

The newer versions of Potemkin break something with Vertigo. On a project with the following dependencies:

[potemkin "0.3.8"] ;; also 0.3.7[vertigo "0.1.3"]

the following code:

(ns potemkin-vertigo.core (:require [vertigo.core :as v] [vertigo.structs :as s :refer [def-typed-struct]])) (def-typed-struct Foobar :type s/int32)

results in:

CompilerException java.lang.ClassFormatError: Duplicate interface name in class file compile__stub/potemkin_vertigo/core$eval9546$reify$reify__9549, compiling:(/private/var/folders/j2/zvt92c1s39d_0kdmhrhbgtkm0000gn/T/form-init6935275163352736010.clj:1:1)

— Reply to this email directly or view it on GitHub https://github.com/ztellman/potemkin/issues/29.

luxbock commented 10 years ago

This was on a completely fresh lein new project with nothing but these lines.

ztellman commented 10 years ago

Okay, will investigate. On Aug 25, 2014 7:29 AM, "luxbock" notifications@github.com wrote:

This was on a completely fresh lein new project with nothing but these lines.

— Reply to this email directly or view it on GitHub https://github.com/ztellman/potemkin/issues/29#issuecomment-53270822.

ztellman commented 10 years ago

This is fixed in 0.3.9.