Coder Social home page Coder Social logo

Comments (2)

informatimago avatar informatimago commented on May 20, 2024

The bug description was:

(mapcar #'interactive-stream-p (list *debug-io* *error-output* *query-io* *standard-input* *standard-output* *trace-output*))

Running the above in the Slime REPL incorrectly yields (NIL NIL NIL NIL NIL NIL).

Running it in the raw SBCL REPL correctly yields (T T T T T T).

I'm using SBCL 1.0.51 and Slime 2012-04-07 from Quicklisp.

Alexander commented:

Hey, guys! Does somebody have any ideas how to fix it?

In some implementations, interactive-stream-p is a generic method. For example, in ccl and in sbcl. In those cases, it should be a simple matter of overriding it for swank-streams.

In ccl and in sbcl:

test> (values *standard-input* *standard-output*)
#<swank/gray::slime-input-stream #x302002194CED>
#<swank/gray::slime-output-stream #x302002194BBD>
test> (defmethod interactive-stream-p ((stream swank/gray::slime-input-stream)) t)
#<standard-method interactive-stream-p (swank/gray::slime-input-stream)>
test> (defmethod interactive-stream-p ((stream swank/gray::slime-output-stream)) t)
#<standard-method interactive-stream-p (swank/gray::slime-output-stream)>
test> (interactive-stream-p *standard-input*)
t
test> (interactive-stream-p *standard-output*)
t
test> 

from slime.

informatimago avatar informatimago commented on May 20, 2024

Now, the problem is to make LISTEN work correctly on slime-input-streams! Since that's basically the only CL operator that depends on an interactive-stream to give a specific result.

from slime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.