[slime-devel] Location of read errors

Gerd Flaig gerd at schlund.de
Mon Oct 18 20:48:49 UTC 2004


Hi,

when I compile a buffer using C-c C-k and the source triggers a read
error, I get thrown into sldb which shows something like this:

   Error in function LISP::FOP-EVAL-FOR-EFFECT:
      Attempt to load a file having a compile-time read error.
      [Condition of type SIMPLE-ERROR]
   
   Restarts:
     0: [CONTINUE] Skip this form.
     1: [CONTINUE] Return NIL from load of #p"/home/gefla/src/macho-0.4/src/message.x86f".
     2: [ABORT] Abort SLIME compilation.
     3: [ABORT] Abort handling SLIME request.
     4: [ABORT] Return to Top-Level.
   
   Backtrace:
     0: (LISP::FOP-EVAL-FOR-EFFECT)
     1: (LISP::LOAD-GROUP #<Stream for file "/home/gefla/src/macho-0.4/src/message.x86f">)
     2: (LISP::FASLOAD #<Stream for file "/home/gefla/src/macho-0.4/src/message.x86f">)
     3: (LISP::INTERNAL-LOAD #p"/home/gefla/src/macho-0.4/src/message.x86f" #p"/home/gefla/src/macho-0.4/src/message.x86f" :ERROR :BINARY)
     4: (LISP::INTERNAL-LOAD #p"/home/gefla/src/macho-0.4/src/message.x86f" #p"/home/gefla/src/macho-0.4/src/message.x86f" :ERROR NIL)
     5: (LOAD #p"/home/gefla/src/macho-0.4/src/message.x86f" :VERBOSE T :PRINT ...)
     6: (COMPILE-FILE "/home/gefla/src/macho-0.4/src/message.lisp" :OUTPUT-FILE T :ERROR-FILE ...)
     7: ("DEFIMPLEMENTATION SWANK-COMPILE-FILE")
     [...]
    
.. which is not too helpful. Pressing 'v' to view the source location
shows the source for fop-eval-for-effect, which is not exactly where I
wanted to go. The real error is buried in the REPL buffer.

    ; Compiling DEFUN PARSE-MIME-HEADER: 
    ; 
    
    ; Error: Read error at 7442:
    ;  "(or (net.telent.date:parse-time/\ (cadr (split ";\\s*" received)))"
    ; Reader error at 7476 on #<Stream for file "/home/gefla/src/macho-0.4/src/message.lisp">:
    ; package "NET.TELENT.DATE" not found
    ; 

Did I misconfigure something or are read errors not handled in a sane
way yet?

       Goodbyte, Gerd.
-- 
Gerd Flaig                     Technik                gerd at schlund.de
Bei Schlund + Partner AG       Brauerstraße 48      D-76135 Karlsruhe
 Physics is like sex: sure, it may give some practical results,
 but that's not why we do it. -- Richard Feynman





More information about the slime-devel mailing list