a) You test your code using the REPL window. In the bottom there's a user input area were you can run Clojure expression interactively. The REPL panel has a couple of buttons in the top right corner. You can see the last exception, interrupt processing if it loops forever, ...
The console is used to look at detailed error messages from the runtime like exceptions. b) When editing a Clojure source file, you can load it in a REPL directly by using either a shortcut ctrl->alt->s or through the mouse-right-click -> Clojure menu. Look at the shortcuts available. You can reload a name space in a running REPL on the fly, redefine stuff through cursor selection, change the current name space in the REPL to the one of the source file edited, .... c) The time it takes to get the REPL alive can be significant depending on your hardware. The idea is to avoid restarting it as much as possible by reloading name spaces or redefining fns, ... w/o shutting down your current REPL. Beware that in some cases it's unavoidable like when you alter the project class path or if you are modifying java source code part of your clojure project. The Java compilation will alter static files not the loaded code in the JVM supporting the REPL. Can't help you much with the menu that vanished but if you work within a clojure source file and not the other way around, you should be able to run it with the above indications. Make sure that your project has it's Clojure nature enabled otherwise none of the Clojure shortcuts will appear in the editor context menu. Luc > > > I'm learning clojure on eclipse (counterclockwise plugin). > > - When I click "run" in eclipse (as I would do with Java) I get not only > the console opened but this "REPL" window. Why is it necessary and what > does it do? > - When I click "run" it takes quite a few seconds to launch the app. Is > there a way to make it faster? > - When I need to edit the code and relaunch (run) the the app I'm > getting this message: "The selection cannot be launched, and there are no > recent launches". What is that and why wouldn't it let me relaunch my > code? > If I wait a while I can launch it again. > - I was screwing around and I don't know what I did, but now "Run as" -> > "Clojure Application" option is gone. How do I get it back? > > This is simple bit of code that I'm trying to run: > > (ns ClojureTest.core) > (let [input (read-line)] > (if (= "x" input) > (do > (println "Exit") > (System/exit 0) > ) > (do > (println input) > (recur) > ) > )) > > -- > -- > 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. > -- Softaddicts<lprefonta...@softaddicts.ca> sent by ibisMail from my ipad! -- -- 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.