eudoxia0 / swank-protocol

A low-level client for Swank
31 stars 3 forks source link

Fixed communication with SWANK running under ClozureCL #2

Closed svetlyak40wt closed 4 years ago

svetlyak40wt commented 4 years ago

This patch fixes:

Reader error on #<STRING-INPUT-STREAM  :CLOSED #x30200139FB9D>:
  reader macro #A used without a rank integer

error.

Here is what SWANK returned as a reply to the (+ 1 3) evaluation:

(:READER-ERROR
    "(:emacs-rex (swank-repl:listener-eval #A((7) common-lisp:base-char . \"(+ 1 2)\")) \"COMMON-LISP-USER\" :repl-thread 5)
"
    "Reader error on #<STRING-INPUT-STREAM  :CLOSED #x30200139FB9D>:
reader macro #A used without a rank integer"

I discovered this problem when tried REPL example from Lime.

The similar patch was tested on Lem and worked there: https://github.com/cxxxr/lem/pull/471/files

coveralls commented 4 years ago

Coverage Status

Coverage decreased (-0.6%) to 95.973% when pulling e9e25685e960aa96df1eaa31e6a866678501f99a on svetlyak40wt:patch-1 into 571847eba4049f0df6cab0674620776a933ca711 on eudoxia0:master.

eudoxia0 commented 4 years ago

Thanks! Sorry it took so long to merge.