Cyclic load dependency

402 views
Skip to first unread message

Razvan Rotaru

unread,
Jul 16, 2011, 12:14:16 PM7/16/11
to Clojure
Hi,

I'm trying to use r0man / appengine-clj, and when :use-ing the
datastore namespace I get a "cyclic load dependency". Doesn't clojure
allow such cyclic references?


(use 'appengine.datastore)
Cyclic load dependency: [ /appengine/datastore/entities ]->/appengine/
datastore/query->[ /appengine/datastore/entities ]->/appengine/
datastore
[Thrown class java.lang.Exception]

Restarts:
0: [QUIT] Quit to the SLIME top level

Backtrace:
0: clojure.core$check_cyclic_dependency.invoke(core.clj:4817)
1: clojure.core$load.doInvoke(core.clj:4912)
2: clojure.lang.RestFn.invoke(RestFn.java:408)
3: clojure.core$load_one.invoke(core.clj:4729)
4: clojure.core$load_lib.doInvoke(core.clj:4766)
5: clojure.lang.RestFn.applyTo(RestFn.java:142)
6: clojure.core$apply.invoke(core.clj:542)
7: clojure.core$load_libs.doInvoke(core.clj:4800)
8: clojure.lang.RestFn.applyTo(RestFn.java:137)
9: clojure.core$apply.invoke(core.clj:544)



Cheers,
Razvan

Ben Smith-Mannschott

unread,
Jul 18, 2011, 6:07:09 AM7/18/11
to clo...@googlegroups.com
Clojure does not allow cyclic dependencies between namespaces.

Java does allow cyclic dependencies between classes.

I'm not familiar with "appengine-clj". Are you certain that
appengine.datastore is Clojure code, not Java code? If it's Java you
should be using import.

// Ben

> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@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+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

r0man

unread,
Jul 18, 2011, 8:25:30 AM7/18/11
to Clojure
There was indeed a cyclic dependency, that didn't show up with clojure
1.2.0.
I fixed it and pushed an updated version using clojure 1.2.1 to
clojars.

Roman

On Jul 18, 12:07 pm, Ben Smith-Mannschott <bsmith.o...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages