I should point out that the error involves the fact that the
graphical.clj code uses items in the 'vijual namespace in an
unqualified fashion (such as the "half" function) which I would expect
would be allowed, but the compiler complains about this.

On Jan 23, 8:58 am, Conrad <drc...@gmail.com> wrote:
> I'm stumped on this error- Maybe someone in this group can help point
> out my error in my clojar?
>
> Here's the issue:
>    - The majority of the code in this library is in 
> vijual.clj:http://github.com/drcode/vijual/blob/master/src/vijual.clj
>    - I have a namespace under that with a file graphical.clj that has
> the graphical functions. It "uses" the vijual 
> namespace:http://github.com/drcode/vijual/blob/master/src/vijual/graphical.clj
>    - As far as I can tell, both vijual and vijual.graphical work just
> fine when I use it as local library, without a jar/leiningen/clojars.
>    - When compiled to a clojar, you can use the vijual.clj functions
> as expected with the following minimal example "(ns vijual-test (:use
> [vijual])) (draw-tree [[:foo [:bar]]])"
>    - When compiled to a clojar, you get an error using the
> graphical.clj functions as can be seen with the following minimal
> example "(ns vijual-test (:use [vijual.graphical])) (draw-tree-image
> [[:foo [:bar]]])"
>
> Namespaces and libraries are definitely still a weakness for me in
> clojure- If anyone here can give me some advice on any improvements I
> can make to my library to conform to clojure best practices (and also
> resolve this error) it would be much appreciated!
>
> -Conrad
>
> On Jan 23, 8:39 am, Conrad <drc...@gmail.com> wrote:
>
>
>
> > Yes, I'm getting the same error- The console functions (use 'vijual)
> > work fine from the clojar but the graphical functions (use
> > 'vijual.graphical) are throwing that error. There must be something
> > more about clojure namespaces I'm not understanding... I'll let you
> > know as soon as I have it fixed.
>
> > On Jan 23, 7:14 am, Jeff Rose <ros...@gmail.com> wrote:
>
> > > Awesome!  I tried it out quickly last night using leiningen.  The text
> > > rendering worked great, but graphical seems to have a problem:
>
> > > user=> (use 'vijual.graphical)
> > > java.lang.Exception: Unable to resolve symbol: half in this context
> > > (graphical.clj:60)
>
> > > -Jeff
>
> > > On Jan 22, 11:06 pm, Conrad <drc...@gmail.com> wrote:
>
> > > >http://lisperati.com/vijual/
>
> > > > Hope some of you find this library useful. Let me know if you have
> > > > feature requests or want to help me improve this library.
>
> > > > Conrad Barski
> > > > lisper...@gmail.com

-- 
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