当我使用SBCL (我最喜欢的实现)时,我经常在REPL中看到这种错误消息。
CL-USER> (vgplot:fred) ; Evaluation aborted on
#<SB-INT:SIMPLE-READER-PACKAGE-ERROR "Symbol ~S not found in the ~A package." {1004289123}>. CL-USER>我猜想这条消息的意思是“在VGPLOT包中找不到Fred符号”。
我想我在构建SBCL时做错了什么(虽然我似乎找不到确切的内容),只是想知道是否有人能就如何解决这个问题提出建议,因为这很烦人。
发布于 2014-02-12 21:28:19
你可以这样做:
(defmethod print-object :around ((condition simple-condition) stream)
(print-unreadable-object (condition stream)
(apply #'format stream (simple-condition-format-control condition)
(simple-condition-format-arguments condition))
(terpri stream)
(call-next-method)))这将将所有simple-condition的格式化描述( sb-int:simple-reader-error是其中之一)添加到它们的打印表单中。我不认为这是一个“好主意”,它可能会产生一些意想不到的后果。
一个更好的解决方案是修改slime/swank来打印这些信息,但是我想不出怎么做。
https://stackoverflow.com/questions/21718052
复制相似问题