Can't get the debugger cdt run

31 views
Skip to first unread message

svenali

unread,
Nov 29, 2011, 5:29:08 PM11/29/11
to Clojure
Hello all,

I try to get the cdt debugger running and fail. I've build the cdt
with leiningen and have this jar file in my classpath. A simple (use
'cdt.break) work. But if I want to use com.georgesjahad.cdt I get the
following error message:

=> (use 'com.georgesjahad.cdt)
#<FileNotFoundException java.io.FileNotFoundException: Could not
locate com/georgesjahad/cdt__init.class or com/georgesjahad/cdt.clj on
classpath: >

But a
=> (use 'cdt.ui)
nil

work.

Where is my problem?

regards,
Sven

George Jahad

unread,
Dec 2, 2011, 3:37:07 PM12/2/11
to Clojure
The namespace have been restructured so 'com.georgesjahad.cdt doesn't
exist anymore.

The easiest way to use cdt is from emacs, as described here:
http://georgejahad.com/clojure/swank-cdt.html

Hugo Duncan also has a separate emacs based clojure debugger called
Ritz, described here:
https://github.com/pallet/ritz

Sean Corfield

unread,
Dec 3, 2011, 12:16:43 AM12/3/11
to clo...@googlegroups.com
On Fri, Dec 2, 2011 at 12:37 PM, George Jahad
<clo...@blackbirdsystems.net> wrote:
> The easiest way to use cdt is from emacs, as described here:
> http://georgejahad.com/clojure/swank-cdt.html

Could you add a note to clarify that connecting "as usual" to a swank
server is via the Emacs slime-connect command since I had to ask on
IRC?

This is the first time I've tried CDT and I have to say, I'm very
impressed with how easy it is to use! Thank you!!
--
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)

Chris Perkins

unread,
Dec 3, 2011, 6:29:49 AM12/3/11
to clo...@googlegroups.com
On Saturday, December 3, 2011 12:16:43 AM UTC-5, Sean Corfield wrote:
On Fri, Dec 2, 2011 at 12:37 PM, George Jahad
<clo...@blackbirdsystems.net> wrote:
> The easiest way to use cdt is from emacs, as described here:
> http://georgejahad.com/clojure/swank-cdt.html

Could you add a note to clarify that connecting "as usual" to a swank
server is via the Emacs slime-connect command since I had to ask on
IRC?

This is the first time I've tried CDT and I have to say, I'm very
impressed with how easy it is to use! Thank you!!
-- 

So I guess you didn't get this error then?

user> (require '[swank.cdt :as d])
warning: unabled to add tools.jar to classpath. This may cause CDT initialization to fail.

Anyone know how to fix that?

- Chris

Edmund

unread,
Dec 3, 2011, 6:48:12 AM12/3/11
to clo...@googlegroups.com
Chris, that's not fatal. Mine works just fine despite the warning.

> -- You received this message because you are subscribed to the
> Google Groups "Clojure" group. To post to this group, send email to
> clo...@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+u...@googlegroups.com For more options, visit this
> group at http://groups.google.com/group/clojure?hl=en

Chris Perkins

unread,
Dec 3, 2011, 7:07:58 AM12/3/11
to clo...@googlegroups.com
I realize now that I just pasted the warning, but I was getting a class loading exception too.

I seem to have solved it with this, in my project.clj:

  :extra-classpath-dirs ["/usr/lib/jvm/java-6-sun/lib/tools.jar"]

I still get the warning, but it works now.  Thanks Edmund.

- Chris

Sean Corfield

unread,
Dec 3, 2011, 1:34:49 PM12/3/11
to clo...@googlegroups.com
On Sat, Dec 3, 2011 at 3:29 AM, Chris Perkins <chrispe...@gmail.com> wrote:
> So I guess you didn't get this error then?

I did get that warning on my desktop system but CDT worked just fine.

> user> (require '[swank.cdt :as d])
> warning: unabled to add tools.jar to classpath. This may cause CDT
> initialization to fail.

On my netbook, it actually did cause CDT to fail. I symlinked
tools.jar into ~/.lein/plugins/ so I wouldn't have to mess with
project.clj (since I have the same project.clj on both machines and
the tools.jar path is different!). That was based on a hint from Phil
H in a Leiningen thread about tools.jar (sorry, don't have the link
handy).

Reply all
Reply to author
Forward
0 new messages