From: Helmut Eller heller@common-lisp.net
Am I the only one still using Corman? With the stable slime-2.0 (not CVS) Corman loads without error though there are a couple of warnings, so something's definitely changed. As I posted earlier, it breaks somewhere in swank.lisp but I'm too much of a n00b to tell where it's breaking. I could use some pointers.
Some of those arglist related tests fail for CormanLisp. I added a workaround in the CVS version: it prints a message that the test fails, but it continues instead of raising an error.
Helmut, Thanks for the quick reply and code updates. However, I'm still getting an error, but this time there is no backtrace. See below:
?(load "c:/xemacs/slime/swank-loader.lisp") ;;; Warning: Unused variable G13342 in function COMPILE-FILES-IF-NEEDED-SERIALLY , File c:\xemacs\slime\swank-loader.lisp, line 136 ;; Loading c:\xemacs\slime\swank-backend.lisp ;; Loading c:\xemacs\slime\nregex.lisp ;; Loading c:\xemacs\slime\swank-corman.lisp ;; Loading c:\xemacs\slime\swank-gray.lisp ;; Loading c:\xemacs\slime\swank.lisp ;;; An error occurred in function STD-COMPUTE-EFFECTIVE-METHOD-FUNCTION: ;;; Error: No primary methods for the generic function #<Standard-Generic-Function DEFAULT-READTABLE-ALIST #x1076C2E0>. ;;; Entering Corman Lisp debug loop. ;;; Use :C followed by an option to exit. Type :HELP for help. ;;; Restart options: ;;; 1 Abort to top level.
:c 1
;;; Returning to top level loop. ?
* James Kirkland [2006-08-09 20:29+0200] writes:
;;; An error occurred in function STD-COMPUTE-EFFECTIVE-METHOD-FUNCTION: ;;; Error: No primary methods for the generic function #<Standard-Generic-Function DEFAULT-READTABLE-ALIST #x1076C2E0>.
OK, that was my fault. Apparently CormanLisp doesn't invoke NO-APPLICABLE-METHOD like some other implementations do. Should be fixed in CVS.
Helmut.
;;; An error occurred in function STD-COMPUTE-EFFECTIVE-METHOD-FUNCTION: ;;; Error: No primary methods for the generic function #<Standard-Generic-Function DEFAULT-READTABLE-ALIST #x1076C2E0>.
OK, that was my fault. Apparently CormanLisp doesn't invoke NO-APPLICABLE-METHOD like some other implementations do. Should be fixed in CVS.
Helmut.
I just grabbed CVS and noted todays date for the swank-corman.lisp timestamp to be sure, but I still get the same error as above. If there is anything specific you'd like me to try out to maybe help pinpoint what's causing the error, let me know. The error doesn't occur when swank-loader gets to swank-corman.lisp, only when it gets to swank.lisp (don't know if this helps any, and I can't tell where it happens in that file as there is no backtrace).
* James Kirkland [2006-08-10 17:23+0200] writes:
I just grabbed CVS and noted todays date for the swank-corman.lisp timestamp to be sure, but I still get the same error as above. If there is anything specific you'd like me to try out to maybe help pinpoint what's causing the error, let me know. The error doesn't occur when swank-loader gets to swank-corman.lisp, only when it gets to swank.lisp (don't know if this helps any, and I can't tell where it happens in that file as there is no backtrace).
Well, it works for me. Do you have a current version of swank-backend.lisp? You will need that.
Helmut.
Well, it works for me.
Okay, my bad, it does connect now (somehow not all the files got transfered over from CVS before). Anyway, like I said it does connect, and things appear to work for a while, but an output form such as (format t "hello") will bring it to it's knees. Here's the *slime-events* buffer after the error raised by (format t "hello"):
---------------------- (17 "(NIL (#<Swank-Backend::Slime-Output-Stream #x10853BD0>) #< COMPILED-FUNCTION: #x10351EC8 >)") (18 "(FUNCALL #< COMPILED-FUNCTION: #x107CB038 > (#<Swank-Backend::Slime-Output-Stream #x10853BD0>) #< COMPILED-FUNCTION: #x10351EC8 >)") (19 "(GRAY-STREAMS:STREAM-FRESH-LINE (#<Swank-Backend::Slime-Output-Stream #x10853BD0>))")) (4)) (:debug-activate 0 1) -----------------------
And here's the *sldb cormanlisp/0* buffer:
--------------------------------------------- No primary methods for the generic function #<Standard-Generic-Function GRAY-STREAMS:STREAM-TERPRI #x1037DB90>. [Condition of type SIMPLE-ERROR]
Restarts: 0: [ABORT-REQUEST] Abort handling SLIME request. 1: [ABORT] Abort to top level.
Backtrace: 0: (ERROR "No primary methods for the generic function ~S." #<Standard-Generic-Function GRAY-STREAMS:STREAM-TERPRI #x1037DB90>) 1: (COMMON-LISP::STD-COMPUTE-EFFECTIVE-METHOD-FUNCTION #<Standard-Generic-Function GRAY-STREAMS:STREAM-TERPRI #x1037DB90> NIL) 2: (COMMON-LISP::SLOW-METHOD-LOOKUP #<Standard-Generic-Function GRAY-STREAMS:STREAM-TERPRI #x1037DB90> (#<Swank-Backend::Slime-Output-Stream #x10853BD0>) (#<Standard-Class SWANK-BACKEND::SLIME-OUTPUT-STREAM #x1078D598>)) 3: (NIL #<Swank-Backend::Slime-Output-Stream #x10853BD0>) 4: (GRAY-STREAMS::GRAY-TERPRI #<Swank-Backend::Slime-Output-Stream #x10853BD0>) 5: (NIL) 6: (FUNCALL #< COMPILED-FUNCTION: #x107EABB0 >) 7: (NIL) 8: (FUNCALL #< COMPILED-FUNCTION: #x107E3590 >) 9: (NIL :NULL-LOCK #< COMPILED-FUNCTION: #x107E3590 >) 10: (APPLY #< COMPILED-FUNCTION: #x107D06B0 > :NULL-LOCK #< COMPILED-FUNCTION: #x107E3590 > NIL) --more--
* James Kirkland [2006-08-11 02:36+0200] writes:
No primary methods for the generic function #<Standard-Generic-Function GRAY-STREAMS:STREAM-TERPRI #x1037DB90>. [Condition of type SIMPLE-ERROR]
As a workaround you can set swank:*use-dedicated-output-stream* to T. Apparently Gray streams never really worked.
Helmut.