This seems to work beautifully outside a project - and it's very
useful! I will no longer need to create a million scratch projects to
try stuff out - thank you!

However, inside a project, I can't get it to work.

(! 501)-> cd clojure
(! 502)-> lein try hiccup 1.0.2
nREPL server started on port 59442
...
user=> (use 'hiccup.core)
nil
user=> (html [:p "It works!"])
"<p>It works!</p>"
user=> Bye for now!

(! 503)-> lein new testproject
Generating a project called testproject based on the 'default' template.
To see other templates (app, lein plugin, etc), try `lein help new`.
(! 504)-> cd testproject
(! 505)-> lein try hiccup 1.0.2
nREPL server started on port 59477
...
user=> (use 'hiccup.ocre)
FileNotFoundException Could not locate hiccup/ocre__init.class or
hiccup/ocre.clj on classpath:   clojure.lang.RT.load (RT.java:443)

user=>

Inside a project, it only seems to pick up the project's deps, not add
to them. Am I doing something wrong?

Sean


On Sat, Jul 13, 2013 at 6:56 AM, Ryan Neufeld <r...@thinkrelevance.com> wrote:
> Hey folks,
>
> Don't you hate it when someone releases a cool new library and you have to go 
> into a project and add an unwanted dependency just to try it out? Worse, 
> maybe you decide to 'lein new delete-me' and add it there.
>
> No more! Stop this madness. Use lein-try to quickly launch a REPL with new 
> dependencies download automatically - inside of a project, or out.
>
> Once you've dropped [lein-try "0.1.1"] in your ~/.lein/profiles.clj's :user 
> :plugins key, simply copy-paste the leiningen-style dependency after "lein 
> try". For example:
>
>     $ lein try [io.rkn/core.async "0.1.0-SNAPSHOT"]
>     nREPL server started on port 50472
>     REPL-y 0.2.0
>     Clojure 1.5.1
>         Docs: (doc function-name-here)
>               (find-doc "part-of-name-here")
>       Source: (source function-name-here)
>      Javadoc: (javadoc java-object-or-class-here)
>         Exit: Control+D or (exit) or (quit)
>
>     user=> (require '[clojure.core.async :as async :refer [timeout go <!]])
>     nil
>     user=> (go (<! (timeout 1000)) (println "Now we're cooking with 
> channels."))
>     #<ManyToManyChannel 
> clojure.core.async.impl.channels.ManyToManyChannel@3b43b598>
>     user=>
>
>     # one second later...
>
>     Now we're cooking with channels.
>
> Wow, that's cool!
>
> Find out more or contribute at https://github.com/rkneufeld/lein-try
>
> -Ryan
>
> --
> --
> 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/groups/opt_out.
>
>



-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
-- 
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/groups/opt_out.


Reply via email to