Skip to content

echoing all repl input? #5

Open

Description

@joshua-g

Hey! I'm trying out pixie mode with emacs 24.4.1. I have an issue when I go into the repl: each line of input is immediately echoed. The repl otherwise seems to work fine, but the echoing is distracting and makes multi-line input difficult to re-read, since every line is duplicated. I don't have this problem if I go into M-x inf-clojure from a clj file.

For instance:

user => ((fn f [x]
((fn f [x]
(* x x))
(* x x))
5)
5)
25

Activity

  1. johnwalker commented on Aug 14, 2015

    @johnwalker
    Owner

    Eww. If you use the repl without inf-clojure, does it do this? Is there an option to suppress this output?

  2. joshua-g commented on Aug 14, 2015

    @joshua-g
    Author

    The regular pixie-vm repl works fine -- no echoing. (Like, of course if you enter a form that evaluates to itself, then it "echoes" that, but only because it evaluated it). Within the inf-clojure repl with pixie,

    user => 1
    1
    1
    user =>
    

    The first 1 is what i typed, the second is the echo, the third is the evaluation. But within pixie-vm,

    user => 1
    1
    user => 
    

    Hmm.... you mean an inf-clojure option? I'll take a look-see.

  3. johnwalker commented on Aug 14, 2015

    @johnwalker
    Owner

    I thought the echo might be coming from pixie-vm, this is useful

  4. johnwalker commented on Aug 14, 2015

    @johnwalker
    Owner

    This is pretty weird. I can't take a crack at it right now, but I'll see if I can resolve this Saturday. In the meantime, try installing an old version of inf-clojure.

  5. joshua-g commented on Aug 14, 2015

    @joshua-g
    Author

    Okay, I'll give it a shot. Thanks for the quick replies!

  6. johnwalker commented on Aug 14, 2015

    @johnwalker
    Owner

    You're welcome! :)

  7. johnwalker commented on Aug 16, 2015

    @johnwalker
    Owner

    Working on it, this happens on mine too. Not sure why it's happening yet.

  8. johnwalker commented on Aug 23, 2015

    @johnwalker
    Owner

    Would you tell me if there is a process buffer and a separate repl buffer in inf-clojure with clojure files? It seems that inf-clojure assumes that if it's a derived mode, then the process and the repl buffer are the same.

  9. joshua-g commented on Aug 23, 2015

    @joshua-g
    Author

    How do I determine that?

  10. johnwalker commented on Aug 23, 2015

    @johnwalker
    Owner

    Run inf-clojure in a lein project and do M-x list-buffers, and there should be an extra buffer that isn't the repl.

  11. joshua-g commented on Aug 24, 2015

    @joshua-g
    Author

    Oh ok -- there's not. There's just the repl buffer named *inf-clojure*. Also, when I run list-processes I see a process named "inf-clojure" corresponding to the *inf-clojure* buffer, running the command lein repl.

  12. johnwalker commented on Oct 26, 2015

    @johnwalker
    Owner
  13. johnwalker commented on Oct 26, 2015

    @johnwalker
    Owner

    OK, so this is whats happening. If you want a quick fix, make the pixie program something like this. The tradeoff is that now you won't see => or whatever.

    #!/bin/bash
    cat | /home/john/toolbox/pixie/pixie-vm $*
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions