fukamachi / mondo

Simple Common Lisp REPL
GNU General Public License v3.0
53 stars 4 forks source link

SB-KERNEL::ARG-COUNT-ERROR upon printing to stdout #8

Open Neightro opened 1 year ago

Neightro commented 1 year ago

I get the following error whenever I evaluate something that prints to stdout:

❯ mondo
SBCL 2.3.4 running at 127.0.0.1:50005 (pid=1186922)
CL-USER> *standard-output*
#<SWANK/GRAY::SLIME-OUTPUT-STREAM {10013CAAA3}>
CL-USER> (princ "Test")
Unhandled SB-KERNEL::ARG-COUNT-ERROR in thread #<SB-THREAD:THREAD tid=1186929 "mondo swank message processor" RUNNING
                                                  {100260A3C3}>:
  Error while parsing arguments to DESTRUCTURING-BIND:
    too many elements in
      ("Test" NIL 1)
    to satisfy lambda list
      (OUTPUT &OPTIONAL TARGET):
    between 1 and 2 expected, but got 3

Backtrace for: #<SB-THREAD:THREAD tid=1186929 "mondo swank message processor" RUNNING {100260A3C3}>
0: (SB-DEBUG::DEBUGGER-DISABLED-HOOK #<SB-KERNEL::ARG-COUNT-ERROR {1002815983}> #<unused argument> :QUIT T)
1: (SB-DEBUG::RUN-HOOK *INVOKE-DEBUGGER-HOOK* #<SB-KERNEL::ARG-COUNT-ERROR {1002815983}>)
2: (INVOKE-DEBUGGER #<SB-KERNEL::ARG-COUNT-ERROR {1002815983}>)
3: (ERROR SB-KERNEL::ARG-COUNT-ERROR :KIND DESTRUCTURING-BIND :NAME NIL :ARGS ("Test" NIL 1) :LAMBDA-LIST (MONDO/SWANK/PROTOCOL::OUTPUT &OPTIONAL MONDO/SWANK/PROTOCOL::TARGET) :MINIMUM 1 :MAXIMUM 2)
4: (SB-C::DS-BIND-ERROR ("Test" NIL 1) 1 2 (MONDO/SWANK/PROTOCOL::OUTPUT &OPTIONAL MONDO/SWANK/PROTOCOL::TARGET))
5: (SB-C::CHECK-DS-LIST #<unavailable argument> #<unavailable argument> #<unavailable argument> #<unavailable argument>)
6: ((LAMBDA (MONDO/SWANK/PROTOCOL:EVENT) :IN MONDO/SWANK/PROTOCOL:MAKE-DISPATCH-EVENT-FUNCTION) (:WRITE-STRING "Test" NIL 1))
7: ((LAMBDA NIL :IN MONDO/SWANK/CLIENT::MAKE-PROCESS-THREAD))
8: ((LAMBDA NIL :IN BORDEAUX-THREADS::BINDING-DEFAULT-SPECIALS))
9: ((FLET SB-UNIX::BODY :IN SB-THREAD::RUN))
10: ((FLET "WITHOUT-INTERRUPTS-BODY-156" :IN SB-THREAD::RUN))
11: ((FLET SB-UNIX::BODY :IN SB-THREAD::RUN))
12: ((FLET "WITHOUT-INTERRUPTS-BODY-149" :IN SB-THREAD::RUN))
13: (SB-THREAD::RUN)
14: ("foreign function: call_into_lisp_")
15: ("foreign function: funcall1")

unhandled condition in --disable-debugger mode, quitting

Mondo seems to otherwise be working fine; looking forward to getting to use it more.

LordMZTE commented 1 year ago

Can reproduce this!