swannodette / textmate-clojure

TextMate bundle for Clojure
91 stars 25 forks source link

Eval command does not work #1

Closed pcomans closed 14 years ago

pcomans commented 14 years ago

The Eval command does not work with Clojure 1.2 and cake 0.4.3 (at least I believe it doesn't) When I enter (+ 4 5) in Textmate and press cmd+shift+x, I get: nil textmate$escape_quotes.invoke(utils.clj:21) textmate$escape_str.invoke(utils.clj:30) textmate$get_selected_sexpr.invoke(utils.clj:220) textmate$eval2620.invoke(eval.clj:11) clojure.lang.Compiler.eval(Compiler.java:5424) clojure.lang.Compiler.load(Compiler.java:5857) clojure.lang.Compiler.loadFile(Compiler.java:5820) clojure.lang.RT$3.invoke(RT.java:296) cake.server$run_file.invoke(server.clj:96) cake.server$create$fn495.invoke(server.clj:135) cake.contrib.server_socket$accept_fn$fn195$fn__198.invoke(server_socket.clj:39) cake.contrib.server_socket$accept_fn$fn__195.invoke(server_socket.clj:38) clojure.lang.AFn.run(AFn.java:24) java.lang.Thread.run(Thread.java:637)

Expected result should be 9

swannodette commented 14 years ago

I just tried this and it worked for me. Did you select the sexpr before running the command?

swannodette commented 14 years ago

I'm closing this since I believe this is resolved in textmate-clojure 0.1.0