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

Inconsistent Printing Behavior in nrepl #131

Closed
jaidetree opened this issue Feb 22, 2022 · 0 comments
Closed

Inconsistent Printing Behavior in nrepl #131

jaidetree opened this issue Feb 22, 2022 · 0 comments

Comments

@jaidetree
Copy link
Contributor

jaidetree commented Feb 22, 2022

If you're working with promises and lets say you are piping something into pprint:

Reproduction

  1. Perform a task like the following
(require '[promesa.core :as p])
(require '[clojure.pprint :refer [pprint]])

(p/->> (p/delay 1000 {:delayed-by "1 second"})
       (pprint))

(pprint {:instant "message"})

Expected

The print output of those lines go to the same place either the repl client session or the repl server.

Actual

It's inconsistent. Delayed printing seems to favor the nrepl-server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant