wanted: better error reporting on errors during LOAD and evaluation of top-level forms
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
(in-package :cl-user)
(defclass foo ()
((name :reader name)))
(defvar *foo* nil)
(defun foo (x)
(1+ x))
(name *foo*)
(defun bar (y)
(1- y))
LOADing that file results in
There is no applicable method for the generic function
#<STANDARD-
when called with arguments
(NIL).
[Condition of type SIMPLE-ERROR]
Restarts:
0: [RETRY] Retry calling the generic function.
1: [ABORT] Abort compilation.
2: [ABORT] Return to SLIME's top level.
3: [TERMINATE-THREAD] Terminate this thread (#<THREAD "worker" RUNNING {CCD6689}>)
Backtrace:
0: ((SB-PCL:
1: (SB-PCL:
2: (SB-FASL:
Now imagine that the actual file is large. Would be nice if the error included
the toplevel number, or an actual character offset...
Changed in sbcl: | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
tags: | added: reader |
Changed in sbcl: | |
status: | Triaged → Fix Committed |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |