I think this issue is related to using
defrecord
or
defrecord & defprotocol
or
defrecord, defprotocol, & extend-protocol

I've never bothered to look into the simplest case at which it fails. I have a 
namespace that has my defrecord, and another namespace that defines the 
protocol and uses extend-protocol to add behavior for my record type. If I 
recompile the namespace with the protocol everything is fine, if I recompile 
the namespace with the defrecord the protocol stops finding the implementation 
for the protocol. The solution is "rm -rf classes"

As a work around I rm & restart my app if I ever change my record - which is 
very rarely.

Cheers, Jay

On Feb 15, 2012, at 10:21 AM, David Nolen wrote:

> I've never have this problem. I'm assuming you're using AOT?
> 
> David
> 
> On Sat, Feb 11, 2012 at 11:34 AM, Andrew Cholakian <andre...@gmail.com> wrote:
> I've noticed that when writing clojure code I constantly need to 'rm -rf 
> classes' in my project, otherwise anything related to (defrecord) or 
> (defprotocol) doesn't update. I've tried this on OSX Lion running both JDK 
> 1.6 and 1.7.
> 
> This isn't too hard to deal with in lein as I just run rm -rf classes && lein 
> run, but it makes slime/swank nearly unusable.
> 
> Any ideas?
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> 
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to