Thanks for your "ridiculously long instructions" on using cdt; I
appreciate your thoroughness.

I'm working on the %$#...@^@! Windows platform (Windows XP, to be
precise), and I'm unable to set cdt-source-path in my .emacs file.

I can get my Clojure REPL to start just fine:

----
C:\tech>java -
agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8021
-client -cp c:\tech\clojure-contrib-1.2.0\target\clojure-
contrib-1.2.0.jar;c:\te
ch\clojure-1.2.0\clojure.jar clojure.main --repl
Listening for transport dt_socket at address: 8021
Clojure 1.2.0
user=>
----

Here's what I have in my .emacs file:

----
(progn
  (setq cdt-dir "/tech/cdt")
  (setq cdt-source-path "/tech/clojure-1.2.0/src/jvm;/tech/
clojure-1.2.0/src/clj;/tech/clojure-contrib-1.2.0/src/main/clojure")
  (load-file (format "%s/ide/emacs/cdt.el" cdt-dir)))
----

When I select and execute it from within Emacs, I get a message in the
minibuffer that says "Loading c:/tech/cdt/ide/emacs/cdt.el
(source)...done". But when I type M-x cdt and set the port to 8021,
the following error message goes into the buffer named *gud-
clojure.main*:

----
Current directory is C:\Documents and Settings\add-minimum/
java.lang.NoClassDefFoundError: clojure/main
Caused by: java.lang.ClassNotFoundException: clojure.main
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: clojure.main.  Program will exit.
Exception in thread "main"
Debugger exited abnormally with code 1
----

I don't know how to handle Windows pathnames, especially the drive
letter, in the context of (setq cdt-source-path.... I tried taking off
the "/c/" or "c:\" for cdt-dir, and that seems to work. But trying the
same thing for cdt-source-path doesn't seem to work. I'm wondering,
should path names be delimited by colons (as Unix expects), or by
semicolons (as Windows expects). I've tried various combinations, I've
tried to find the Java conventions for Windows classpaths... nothing
seems to work.

Any suggestions from anybody will be appreciated. Thanks.

On Sep 28, 12:40 am, George Jahad <cloj...@blackbirdsystems.net >
wrote:
> As some of you know, I suffer from a seemingly interminable obsession
> with improving the Clojure debugging story.  It just seems so clear to
> me that Clojure deserves a world class debugger, one befitting it's
> power, beauty and elegance.  Maybe one day, we'll get there.  Till
> then, here are my latest improvements to theCDT:
>
> 1. Stepping
> 2. Line number breakpoints
> 3. An Emacs based front end which allows you to: step, set
> breakpoints, catch exceptions, eval remote clojure expressions, and go
> up and down the stack, in a much more natural way than with just the
> command line.
>
> When you want to eval the s-expr under the cursor, hit ^x^a^p!
>
> CDTwill then serialize the s-expr, send it to the remote vm, evaluate
> it there in the context of the current stack frame, and display the
> result on the mode line.
>
> Ridiculously long instructions on how to use it are 
> here:http://georgejahad.com/clojure/emacs-cdt.html
>
> I should emphasize that there is nothing Emacs specific about theCDT.  In 
> fact, I've been so spoiled by Clojure, I don't even enjoy
> writing Elisp any more.  This front end was written in Emacs because
> that's the IDE I'm most familiar with.  TheCDTcommand line is IDE
> agnostic; it should be easy, (dare I say fun?), to port it to other
> IDE's.  If there's interest, I'll detail how in a future post.
>
> Many thanks to Fogus for the kind words, and to the Runa gang for
> their continuing encouragement!

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

Reply via email to