-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Cider debugger hangs on infinite lazy sequences #2621
Comments
Odd. Cider generally avoids printing sequences indefinitely. It could be something in your config, or it could be some pretty-printing change on our side. What do you see printed if you evaluate |
It displays a finite sequence of (1 1 1 1 ...) truncated at |
Likely we forgot to pass some print params to the eval commands used by the debugger. This should be a relatively simple fix once someone gets to investigate the problem. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
This issues been automatically closed due to lack of activity. Feel free to re-open it if you ever come back to it. |
Can this issue be reopened? It's still an existing pain point I regularly face, not only with lazy sequences but also large data structures. (let [db (apply hash-map (range 100000))]
#dbg
(-> db
(assoc 0 1.0)
(dissoc 2)
(update 4 inc))) |
Of course. We just need to also find someone to tackle it. |
Expected behavior
Using the debugger to step through intermediate forms which produce infinite lazy sequences should not cause Cider to hang indefinitely.
Actual behavior
The debugger attempts to realize the entire lazy sequence when displaying it, the user cannot continue past that point and has to interrupt the evaluation with
C-c C-b
.Steps to reproduce the problem
n
a couple of times when the debugger is activated to step past the intermediate forms(repeat n)
which produces an infinite lazy sequence, it hangs indefinitely with no way to step past it to the finite result (viatake
)Environment & Version information
CIDER version information
Lein/Boot version
-NA-
Emacs version
26.1
Operating system
OS X 10.14.4 "Mojave"
The text was updated successfully, but these errors were encountered: