Re: running command when lein repl starts

2013-11-19 Thread Andy Smith
oops, you are right but if I paste into my project.clj I get a different error when I run lein repl andy@Aspire-V3-571:~/projects/clojure/test$ lein repl Exception in thread "main" java.lang.IllegalArgumentException: No value supplied for key: [:init (use (quote clojure.math.numeric-tower))] (N

Re: running command when lein repl starts

2013-11-19 Thread David Powell
I tend to work on files in emacs or an IDE, with a linked repl, rather than at a raw repl, so the file I'm working on will tend to have an ns directive that will require the appropriate namespaces, so I just eval that when I open the file. On Tue, Nov 19, 2013 at 6:05 PM, Andy Smith wrote: > ye

Re: running command when lein repl starts

2013-11-19 Thread Andy Smith
yes, Ive seen that but it doesnt seem to help me greatly. Just out of curiosity how do you generally setup your repl so it already includes these kind of common libraries? I dont really want to be typing lots of 'use' commands into the repl every time i start it. Is using leiningen the wrong wa

Re: running command when lein repl starts

2013-11-19 Thread David Powell
Hmm, no it is just a syntax thing with your project, This works: (defproject test "1.0.0-SNAPSHOT" :description "FIXME: write description" :dependencies [[org.clojure/clojure "1.5.1"] [org.clojure/math.numeric-tower "0.0.2"]] :repl-options {:init (use 'clojure.math.numeric-t

Re: running command when lein repl starts

2013-11-19 Thread David Powell
Hmm, maybe you need to use this: https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L209 -- Dave On Tue, Nov 19, 2013 at 5:51 PM, Andy Smith wrote: > Ok valid point, but I still get the same kind of errors? > > -- > -- > You received this message because you are subscrib

Re: running command when lein repl starts

2013-11-19 Thread Andy Smith
Ok valid point, but I still get the same kind of errors? -- -- 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 fi

Re: running command when lein repl starts

2013-11-19 Thread Josh Kamau
Is it intentional that you are using clojure 1.3.0 instead of a newer version like 1.5.1 ? Do "lein deps" to download the dependencies. Then do lein repl Josh On Tue, Nov 19, 2013 at 8:08 PM, Andy Smith wrote: > Hi, > > How can I get a command such as '(use 'clojure.math.numeric-tower)' to