15
votes
3answers
2k views

Attach a clojure / scala repl to a running JVM

I have a java web application running under tomcat in a Sun java 6 JVM. Is there a way to attach a scala or clojure REPL to the running JVM ? Once the webapp is up and running, the context in which ...
12
votes
3answers
2k views

Can I clean the repl?

I have played with a lot of code in a repl console, how can I clear it? I would like a fresh one without restarting it. Can that be done?
22
votes
6answers
2k views

Is there a colored REPL for Clojure?

I'd like to get a colored REPL for clojure code, similar to what you can do with IRB for Ruby. Are there any libraries or settings for user.clj that provide automatic coloring of the REPL? Example ...
26
votes
3answers
1k views

One REPL to bind them all?

I'd like to know if there is a REPL which is not language-specific. I spend a lot of time dipping in and out of REPLs (mainly for Clojure, Scala and Haskell), and the bundled ones all frustrate me to ...
11
votes
3answers
629 views

Clojure namespace management - Is there a way to save and restore the state of clojure repl namespaces, imports etc.?

Clojure has a large number functions/macros for working with namespaces and java package imports. To my (limited) understanding the set up of namespaces can be considered state in a clojure process ...
16
votes
7answers
2k views

Clojure Development: IDE or REPL?

I've been using Clojure for a little while and want to create some projects that are bigger and more complicated than toys. I've been using Java for the past few years and have become accustomed to ...
3
votes
2answers
807 views

Why does REPL treat clojure.core/doc as a var?

I'm trying to get documentation using the Clojure doc function, but can't get it recognized from the REPL (I'm using Emacs and SLIME). The following sequence describes what's going on (error message ...
2
votes
2answers
219 views

How to get suppress ^M characters in my ClojureBox (EmacsW32) REPL connected to lein swank

I am connecting to a swank server from my ClojureBox install. I.e. lein swank from my project directory and then M-x slime-connect from EmacsW32. However, when I do this I see the DOS line-endings ...
1
vote
3answers
896 views

To start REPL in user defined namespace

(in-ns 'dbx) Writing this code to some file and loading it isn't changing the default namespace of cygwin/console. its still user=> not dbx=>. How can we start REPL in namespace defined in some ...
1
vote
4answers
464 views

Sending input to a screen window from vim

I have a vim function set up where I can highlight a line of text and execute in clojure. Here's the function: function! Clojure_execline() let cl = (getline(line("."))) // ... exec ...
4
votes
3answers
228 views

Clojure : 'lein repl' history grepping?

I often find myself executing commands like this at bash : history | grep 'find' For example to look up a fancy find / xargs command i might have ran. Im wondering --- where does the "lein repl" ...
2
votes
6answers
1k views

Ways to start Clojure REPL?

Name the ways you know to start the Clojure REPL. What is your favourite ? Does it highlight things for you ? I know of : 1. NetBeans IDE with the Enclojure plugin, and 2. the Leiningen shell script ...