Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clojure.core/read-line doesn't work in Calva REPL #377

Closed
ozimos opened this issue Oct 5, 2019 · 3 comments
Closed

clojure.core/read-line doesn't work in Calva REPL #377

ozimos opened this issue Oct 5, 2019 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@ozimos
Copy link
Contributor

ozimos commented Oct 5, 2019

Repro

  1. lein new app shopping-list

  2. Add the following code to "src/shopping_list/core.clj"

     (defn prompt
      "get information from the user"
      [msg]
      (println msg)
      (read-line))
    
  3. Jack-in to the project and load the file above ctrl+alt+c enter

  4. Evaluate (prompt "What is my name") in the Calva REPL

Calva REPL becomes unresponsive

  1. In a new terminal window connect to running nREPL server. lein repl :connect
  2. Evaluate (prompt "What is my name") in the terminal.

All is well. Input is entered at the REPL successfully

@PEZ PEZ added enhancement help wanted Extra attention is needed labels Oct 5, 2019
@PEZ
Copy link
Collaborator

PEZ commented Oct 5, 2019

Thanks. This should be fixed, even if I right now have no clue how to do it. If anyone else has a clue, I'd welcome help here!

@PEZ
Copy link
Collaborator

PEZ commented Oct 5, 2019

Got this from @bbatsov :

There’s a stdin message that gets sent when the REPL is waiting for input.
See https://nrepl.org/nrepl/0.6.0/ops.html#_stdin

@cfehse
Copy link
Contributor

cfehse commented Oct 28, 2019

This is fixes in Version 2.0.55.

@cfehse cfehse closed this as completed Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants