On Sat, Jul 23, 2011 at 10:24 AM, Scott Scites <railca...@gmail.com> wrote: > While walking through the Clojure/Heroku/Database tutorial the Leiningen REPL > fails to display a prompt. When I control-c out, the final output before > closing shows a connection being made and the prompt. If I change out of the > project directory and lein repl I get the connection and the prompt as I > would expect. > > Is there a solution to this problem? How might I debug the issue? Should I > file a bug with the Leiningen project?
Feel free to file a bug on the github issue tracker for Leiningen, provided you're running a compliant Java 1.5 or higher. (not GCJ, for instance.) When you run a repl inside a project directory, Leiningen starts a socket server inside your project, and it runs what is essentially a telnet client inside Leiningen's own process. (This is due to a shortcoming of ant where stdin isn't visible from your project's process.) So you can try to determine if the failure is in the client or the server. One way to check would be to set the LEIN_REPL_PORT environment variable to something like 2000, then try to connect via telnet or netcat in a separate terminal. If it works, then the problem is with the I/O inside the Leiningen JVM rather than the code that Leiningen runs inside your project's process. Another thing to check would be to see if clojure.contrib.server-socket/create-socket-repl (from contrib 1.2) works. If not, then it's probably not a Leiningen bug. -Phil -- 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