I normally use Emacs but was inspired to try CCW + Eclipse again. I have a Clojure test project with a source file src/user.clj with the following contents:
(ns user)
(println "hi")
I have a REPL which I started with Window->Show View->Other->Clojure Views->REPL.
When I select the println expression (all of '(println "hi")') and hit Command-enter, the expression itself gets echoed in the REPL window, but no output occurs. Similar with expressions like '(take 10 (range))'.
If I type the expression in the REPL directly, and hit Enter, I get
=> (take 10 (range))
but there doesn't seem to be any additional output of the evaluation.
Thanks for any ideas. I looked over the docs but nothing obvious jumped out at me.
You need to be connected to a REPL to get a response.
There are two options:
To connect to an existing REPL, you can use Window -> Connect to REPL.
To run your project, Right click your project; Run As -> Clojure Application. If that's not an option, Right Click -> Configure -> As Clojure Application
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With