Recovering from an exception



Hi

I started to evaluate the process of using lisp for building web
applications.
I got cmucl running under detachtty with slime server started so I can
modify the code while running the web app.
Also it's pretty easy to handle an error when it happens while running
lisp under slime.
For example when my code tries to open a file that doesn't exist it
shows a message in slime:
File-error in function LISP::FD-OPEN:
Error opening #p"/WebLogs/WebSite/2006/03/29-access.log", No such
file or directory.
[Condition of type KERNEL:SIMPLE-FILE-ERROR]

Restarts:
0: [CONTINUE] Return NIL.
1: [DESTROY] Destroy the process

So I modify the code and hit 0 so the process continues.

Now what happens when the same bug happens when no slime connected?
That's what happened tonight, I tried to open the web app and it hung,
so the same file open error happened. When I tried to connect to the
running lisp with slime, it didn't show me the error frames and
continued to work as nothing had happened. Same with attachtty, when I
connected with attachtty, it didn't show me the error stack either.
I had no other choice but to kill the previous detachtty and run the
new one and debug the problem with slime. Is it how those problems are
handled in real life or there are some ways to fix the problem without
restarting the running lisp?

Thank you,
Andrei

.



Relevant Pages

  • Re: How To Learn Lisp
    ... think Emacs + Slime is *not* a good IDE for Common Lisp. ... see the basic evaluation commands for SLIME: ... It actually gets in the way with the underlying implementation's REPL ...
    (comp.lang.lisp)
  • SLIME 1.0-alpha released
    ... We've just released version 1.0-alpha of SLIME. ... We can now happily recommend SLIME to all the Emacs-using Lisp hackers ... except CLISP and ABCL this socket is bound to the loopback interface ... Below is a list of the Lisp implementations that we support and their ...
    (comp.lang.lisp)
  • DBMS and lisp, etc.
    ... I'm pretty new to lisp, and I struggled for a while to get ILISP to ... during initial development and then switch to a real RDBMS backend? ... When my SLIME backend goes down and I need to restart emacs (not ... with my test data in it periodically (what are the functions for that, ...
    (comp.lang.lisp)
  • Re: Is Lisp more than another language?
    ... >> that SLIME gives you a repl buffer as well as a code buffer. ... > Emacs can do that for you: run your Lisp in a shell buffer. ... > Your REPL is there, and you use other buffers for editing files. ... Besides, if the shell buffer did everything just as well as SLIME, ...
    (comp.lang.lisp)
  • Re: Common Lisp from a Unix perspective - barriers to using CL
    ... Slime is included. ... And what does this have to do with lisp? ... Operating System for Dummies" competencies. ... you want authentic configuration hassles. ...
    (comp.lang.lisp)