Hello,

2009/8/23 Seth.Powsner <seth.pows...@aya.yale.edu>

>
> Is there some simple way to spin-up the REPL and start stepping
> through top-level expressions in a source file?
> (I've probably missed something simple.)
>
> Background-- Eclipse 3.4.2 is running on my MacBook under OS 10.4.11.
> Works fine for a little Java programming. Wanted to get back to
> programming in Lisp. Stumbled across the Clojure videos last weekend,
> installed closure-dev Eclipse plug-in, successfully ran R Mark
> Vokmann's "desktop" example from http://jnb.ociweb.com/jnb/jnbMar2009.html
>
> So, everthing looks good when I start Eclipse and open a little test
> Clojure file in a Clojure project. And, from the menubar Run As-
> >Clojure REPL works. However, Clojure->Evaluate Top Level S-Expression
> only shows output if there's REPL active in the Eclipse Console.
>
> Current work-around: add a one line Clojure file (println "started")
> to my Clojure project. Open one-liner as if to edit it, select Run As-
> >Clojure REPL. This leaves a REPL active in Eclipse Console. Now, open
> file I'm really editing.  Clojure->Evaluate Top Level S-Expression
> works as expected.


There's a simpler way : just invoke "Run as clojure REPL" on the project
node in the project explorer, and you will have a new Launch configuration
created with the name of the project (and it will, obviously, be launched as
well and available in the Console).
Currently, the REPL will not have any pre-loaded namespace from the project.
Just the stuff necessary to launch a clojure.contrib.repl-ln REPL.

Note that you can create as many eclipse launch configurations as you want
(of type "Clojure launch configuration"). And in these launch
configurations, you can select files that must be loaded when launched.


>
>
> I'm hoping there's something simple I've overlooked, eg--
> --a preference setting to activate REPL on Clojure editing, or first
> Clojure->Evaluate Top Level S-Expression


Not currently, but this is an interesting feature to have, indeed.


> --a call to short terminate REPL processing, ie, go back to listening
> to the Eclipse Console,
>    (end-of-readable-file) or some such to "pause" Run As->Clojure
> REPL before it tries to run buggier code.
>   I'd move s-expr that test OK, up above the (end-of-readable-file)
>

Sorry, I don't understand this one, could you explain again ?

By the way, as you will notice, there are other interesting stuff activated
when a REPL is launched for the project:
 * compilation errors as Eclipse Problem Markers
 * namespace browser which shows all the vars (public or private) of all
currently loaded namespaces, with their documentation when hovering with the
mouse, and navigation to the source by double clicking on them.

And now, a final capital information :-) : clojure-dev is changing name !
The process is almost done at the technical level. At the "marketing" :-)
:-) level (wiki, etc.) it's still TBD and that's why I had not spoken about
it.
The new name, thanks to an intensive brainstorming session involving the
whole clojure community (thanks to all!) and, in the last steps, Stephan
Mühlstrasser and Christophe Grand, is "Counterclockwise" , or , for short,
ccw. "Clockwise" because of clojure, and "Counter" to make it a little bit
more rebel ;-)

HTH,

-- 
Laurent


>
> Thanks in advance.
>
> >
>

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