Hi Karl,

I've added an experimental feature in tools.namespace 0.2.3-SNAPSHOT which
tries to recover the namespace configuration in your REPL after an error
during reload. What that hopefully means is you can call `refresh` as you
normally would even after an error.

Updated docs 
here<https://github.com/clojure/tools.namespace/blob/6723baff2c17e5ad9dde6024f4e35fe81bb0361a/README.md#handling-errors>

To get it in Leiningen:

:dependencies [[org.clojure/tools.namespace "0.2.3-SNAPSHOT"]]
:repositories {"sonatype-oss-public"
               "https://oss.sonatype.org/content/groups/public/"}


Let me know if that helps.

Thanks,
-S



On Thu, Feb 21, 2013 at 3:23 PM, Karl Smeltzer <karl.smelt...@gmail.com>wrote:

> Thanks for that helper function.  I suppose that's as close as I'll
> get for the time being.
>
> On Thu, Feb 21, 2013 at 6:03 AM, Stuart Sierra
> <the.stuart.sie...@gmail.com> wrote:
> >> For what it's worth, I tried using tools.namespace but if I
> >> (refresh) code that doesn't compile, then suddenly the refresh
> >> symbol is out of scope and I'm back to square one.
> >
> >
> > You can still recover from this: just call 'refresh' by its
> > fully-qualified name:
> >
> >     (clojure.tools.namespace.repl/refresh)
> >
> > I use a (hackish) Emacs helper function to do this in nREPL:
> > http://bit.ly/WUqLE4
> >
> >
> > -S
> >
> > --
> > --
> > 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.
> >
> >
>
> --
> --
> 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.
>
>
>

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