Of course you're right, I was using t.emitter with the last t.analyzer 
(0.6.1)

thanks, Francesco

On Friday, October 17, 2014 3:41:05 PM UTC+2, Nicola Mometto wrote:
>
>
> Hi Francesco, 
> I just tried evaluating `(println "a")` with c.t.e.jvm using both -beta5 
> and -SNAPSHOT and it works as expected for me. 
>
> Are you by any chance using a different tools.analyzer.jvm version than 
> the one -beta5 requires? (0.5.2) 
> If so, that's why it's failing for you. 
>
> If you need to use t.a.jvm 0.6.x, I'll release a -beta6 shortly, in the 
> meantime -SNAPSHOT should work fine. 
>
> Let me know if this isn't the case, and if you find any bug please 
> report them in JIRA http://dev.clojure.org/jira/browse/TEMJVM or just 
> email me directly if you prefer. 
>
> Thanks, 
> Nicola 
>
> Francesco Bellomi writes: 
>
> > Hi all, 
> > 
> > I'm a newbie with tools.emitter.jvm, so there must be something obvious 
> I'm 
> > missing, but I can't make this simple example work: 
> > 
> > (in-ns 'user) 
> > => #<Namespace user> 
> > 
> > (require '[clojure.tools.emitter.jvm :as e]) 
> > => nil 
> > 
> > (e/eval '(println "a") {:debug? true}) 
> > // class version 50.0 (50) 
> > // access flags 0x31 
> > public final class user$ extends clojure/lang/AFunction  { 
> > 
> >   // compiled from: user$ 
> > 
> >   // access flags 0x9 
> >   public static <clinit>()V 
> >     RETURN 
> >     MAXSTACK = 0 
> >     MAXLOCALS = 0 
> > 
> >   // access flags 0x1 
> >   public <init>()V 
> >     ALOAD 0 
> >     INVOKESPECIAL clojure/lang/AFunction.<init> ()V 
> >     RETURN 
> >     MAXSTACK = 1 
> >     MAXLOCALS = 1 
> > 
> >   // access flags 0x1 
> >   public invoke()Ljava/lang/Object; 
> >    L0 
> >     GETSTATIC user$.const__ : Lclojure/lang/Var; 
> >     INVOKEVIRTUAL clojure/lang/Var.getRawRoot ()Ljava/lang/Object; 
> >     CHECKCAST clojure/lang/IFn 
> >     LDC "a" 
> >     INVOKEINTERFACE clojure/lang/IFn.invoke 
> > (Ljava/lang/Object;)Ljava/lang/Object; 
> >     ARETURN 
> >     LOCALVARIABLE this Lclojure/lang/AFunction; L0 L0 0 
> >     MAXSTACK = 2 
> >     MAXLOCALS = 1 
> > } 
> > 
> > NoSuchFieldError const__  user$.invoke (user$:-1) 
> > 
> > The example in 
> > https://github.com/clojure/tools.emitter.jvm#example-usage 
> > 
> > (e/eval '(+ 1 2) {:debug? true}) 
> > 
> > works correctly in my REPL, so the problem does not seem to be related 
> to 
> > var resolution; 
> > also, the generated bytecode seems to be inconsistent (no field const__ 
> is 
> > generated). 
> > 
> > I'm using the last published version ("0.1.0-beta5") 
> > 
> > thanks in advance for any help. 
> > 
> > Francesco 
>
> -- 
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to