-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Printing in lazy-evaluated code sends output to babashka process instead of the nrepl client #36
Comments
@bbatsov Could you point me to how this is handled in nrepl/nrepl? Do you change the root binding of |
I think the relevant code starts here https://github.com/nrepl/nrepl/blob/master/src/clojure/nrepl/middleware/interruptible_eval.clj#L81 There's no special handling for lazy sequences, but we do rebind the output streams in the evaluation logic. |
1 similar comment
I think the relevant code starts here https://github.com/nrepl/nrepl/blob/master/src/clojure/nrepl/middleware/interruptible_eval.clj#L81 There's no special handling for lazy sequences, but we do rebind the output streams in the evaluation logic. |
Fixed. |
It seems I stumbled upon a bug: when using babashka as an nrepl server, printing something will correctly send the output to the nrepl client, however printing something inside something lazy-evaluated will instead send the result to babashka process itself:
Tested with
The text was updated successfully, but these errors were encountered: