nrepl-ritz setup (missing dependency "dynapath")

2013-02-18 Thread Dima B
Hi,

I've been going through all the instruction on the nrepl-ritz page 
(https://github.com/pallet/ritz/tree/develop/nrepl) as well as nrepl-ritz 
threads and I can't seem to get it working due to a mysterious dependency 
problem on dynapath.

M-x nrepl-ritz-jack-in results in

Starting nREPL ritz server...
error in process sentinel: nrepl-server-sentinel: Could not start nREPL 
server: Exception in thread "main" java.io.FileNotFoundException: Could not 
locate dynapath/core__init.class or dynapath/core.clj on classpath: 
at clojure.lang.RT.load(RT.java:432)
at clojure.lang.RT.load(RT.java:400)
at clojure.core$load$fn__4890.invoke(core.clj:5415)
at clojure.core$load.doInvoke(core.clj:5414)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5227)
at clojure.core$load_lib.doInvoke(core.clj:5264)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:603)
at clojure.core$load_libs.doInvoke(core.clj:5298)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:603)
at clojure.core$require.doInvoke(core.clj:5381)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at 
ritz.repl_utils.class_browse$eval1633$loading__4784__auto1634.invoke(class_browse.clj:13)
at ritz.repl_utils.class_browse$eval1633.invoke(class_browse.clj:13)
...
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.main.main(main.java:37)
Subprocess failed

Adding [org.tcrawley/dynapath "0.2.1"] explicitly into :dependencies list 
into ~/.lein/profiles.clj doesn't help.
nrepl-jack-in and "$ lein repl" works as expected.

Please help!

Thank you,
Dima

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




Re: nrepl-ritz setup (missing dependency "dynapath")

2013-02-18 Thread Dima B

> Which version of ritz?

Ritz is "0.6.0", emacs plug-in is also 0.6.0. Clojure 1.4.0. Lein 2.0.
I believe the midje plugin does have a dependency on dynapath 2.x that 
explains the mystery.

Thank you for looking into this!


On Monday, February 18, 2013 12:36:20 PM UTC-8, Hugo Duncan wrote:
>
> Dima B > writes: 
>
> > I've been going through all the instruction on the nrepl-ritz page 
> > (https://github.com/pallet/ritz/tree/develop/nrepl) as well as 
> nrepl-ritz 
> > threads and I can't seem to get it working due to a mysterious 
> dependency 
> > problem on dynapath. 
>
> Which version of ritz? 
>
> > Adding [org.tcrawley/dynapath "0.2.1"] explicitly into :dependencies 
> list 
> > into ~/.lein/profiles.clj doesn't help. 
>
> The dependency is [dynapath "0.1.0"], which is on clojars. 
>
> Hugo 
>

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




Re: nrepl-ritz setup (missing dependency "dynapath")

2013-02-18 Thread Dima B

I confirm that the issue is fixed. Thank you, guys!


On Monday, February 18, 2013 3:39:37 PM UTC-8, Hugo Duncan wrote:
>
> Toby Crawley > writes: 
>
> > Hugo Duncan writes: 
> >> 
> >> The latter is fine by me.  It is about time we had another ritz release 
> for 
> >> nrepl.el 1.6 anyway. 
> > 
> > I'll send you a PR in a few minutes. 
>
> Thanks. 
>
> Released in ritz 0.7.0 
>

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




ClojureScript: catching all javascript exceptions

2012-09-28 Thread Dima B
Hi,

I came to the point where I need to be able to catch all javascript 
exceptions, log them down and swallow. I've been trying to achieve this by

(try ... (catch Exception e ...))
(try ... (catch nil e ...))
(try ... (catch js/object e ...))

and nothing seems to do the trick.

Could you please help me find the syntax which allows me to catch and 
swallow all exceptions in clojurescript?
I'm using all latest (clojurescript via cljsbuild).

Thank you,
Dima

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

Re: Starting a new ClojureScript project, where to start?

2012-09-30 Thread Dima B

Hi Daniel,

CljsBuild is a good starting point 
https://github.com/emezeske/lein-cljsbuild
It automatically sets up environment with latest cljs version and gives 
complete framework with compilation, auto-compilation, support of multiple 
projects, sharing code between clj and cljs.
Also take a look at the examples supplied with cljsbuild.

Cheers,
Dima


On Friday, September 28, 2012 11:30:12 AM UTC-7, Daniel Glauser wrote:
>
> Hi folks,
>
> Where would you point someone if they wanted guidance starting a new 
> ClojureScript project?  I friend who's big into 
> CoffeeScript/Backbone/Require and is looking to kick off a side project 
> with ClojureScript.  He's sold on Clojure but looking for some guidance. 
>  We checked out Pinot which is now broken up:
> https://groups.google.com/d/msg/clj-noir/wsCVajG0-YE/CaFa3FTU7B0J
>
> Are there any sample apps with the new libraries?
>
> I cruised by ClojureScriptOne which is the most expansive ClojureScript 
> sample I've seen.  The last commit was eight months ago and some of the 
> libs look a bit stale in project.clj. Is ClojureScriptOne still a good 
> sample to point folks at or have things changed significantly?
>
> On a separate note I finally have Clojure in production!  It's working 
> great and development is moving forward.  It's currently a Noir app. 
>  Looking to roll in Friend and Datomic shortly.  From there I hope to 
> publish a sample app, with all these well written disconnected libraries it 
> seems like we could use more examples of how to put them together.  Ping me 
> if you'd like to help.
>
> If any Clojure folks are coming through Denver and would be willing to 
> lead a topic at the Den of Clojure we would love to have you.  We do accept 
> presenters but encourage folks to focus on leading a topic and keeping the 
> meetings more hands on.
> http://www.meetup.com/Denver-Clojure-Meetup/
>
> Cheers,
> Daniel
>

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