Article on HTTP-based REPL

110 views
Skip to first unread message

Phil Hagelberg

unread,
May 4, 2012, 2:30:21 PM5/4/12
to clo...@googlegroups.com
Hello folks.

I just posted an article yesterday on using cemerick's drawbridge
library for live-debugging a Ring application over HTTP:

https://devcenter.heroku.com/articles/debugging-clojure

You may find it interesting if you need to connect to deployed nodes
but can't open a new socket connection for whatever reason, such as
running on a provider like Heroku. Hope it's helpful.

-Phil

Larry Travis

unread,
May 4, 2012, 3:27:10 PM5/4/12
to clo...@googlegroups.com, larry Travis
A command like

user> (doc hash-map)

in the slime-repl created by clojure-jack-in

results in

Unable to resolve symbol: doc in this context
[Thrown class java.lang.RuntimeException]

Can this be fixed or do I have to do my doc requests someplace else?

--Larry


Roberto Mannai

unread,
May 4, 2012, 3:32:30 PM5/4/12
to clo...@googlegroups.com
You should "use" it:

user> (use 'clojure.repl)
nil
user> (doc doc)
...




 --Larry


--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Larry Travis

unread,
May 4, 2012, 3:44:42 PM5/4/12
to clo...@googlegroups.com, Larry Travis
Thank you, Roberto.  Works like a charm.
  --Larry


On 5/4/12 2:32 PM, Roberto Mannai wrote:
You should "use" it:

user> (use 'clojure.repl)
nil
user> (doc doc)
...


On Fri, May 4, 2012 at 9:27 PM, Larry Travis <tra...@cs.wisc.edu> wrote:
A command like

user> (doc hash-map)

in the slime-repl created by clojure-jack-in

results in

Unable to resolve symbol: doc in this context
 [Thrown class java.lang.RuntimeException]

Can this be fixed or do I have to do my doc requests someplace else?


 --Larry


--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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

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 post to this group, send email to clo...@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

Roberto Mannai

unread,
May 4, 2012, 4:00:19 PM5/4/12
to clo...@googlegroups.com
If you are studying the doc maybe you could find useful this bunch of scripts: http://pastebin.com/cXL1wNVC
They are an updated version of what posted here: http://www.learningclojure.com/2010/03/conditioning-repl.html

Phil Hagelberg

unread,
May 4, 2012, 5:00:55 PM5/4/12
to clo...@googlegroups.com
On Fri, May 4, 2012 at 12:32 PM, Roberto Mannai <robe...@gmail.com> wrote:
> You should "use" it:
>
> user> (use 'clojure.repl)
> nil
> user> (doc doc)
> ...

Another way to do it is just use C-c C-d C-d for docs lookup.

-Phil

John Szakmeister

unread,
May 4, 2012, 5:51:26 PM5/4/12
to clo...@googlegroups.com
Nice write up Phil!

-John

Larry Travis

unread,
May 5, 2012, 12:07:14 AM5/5/12
to clo...@googlegroups.com, larry Travis
Roberto:
This indeed looks like it will be useful. Thanks.

Your require-all-snippet.clj script loaded OK except for:

Attempting to require clojure.parallel : couldn't require
clojure.parallel
Exception
#<RuntimeException java.lang.RuntimeException:
java.lang.ClassNotFoundException: jsr166y.forkjoin.ParallelArray>

--Larry

Larry Travis

unread,
May 5, 2012, 12:19:02 AM5/5/12
to clo...@googlegroups.com, larry Travis
Phil:
Thanks. I obviously need to start doing my Clojure programming with a
Slime cheatsheet in front of me!
--Larry
Reply all
Reply to author
Forward
0 new messages