Skip to content
This repository has been archived by the owner on Jan 23, 2018. It is now read-only.

Swank freezes on display of locals containing an infinite lazy sequence #12

Open
neotyk opened this issue May 17, 2010 · 5 comments
Open

Comments

@neotyk
Copy link

neotyk commented May 17, 2010

Swank freezes on swank.core/break called from within 'for'.
Sample can be found here: http://gist.github.com/403585#file_swank_break_freeze.clj
Captured stack trace is here: http://gist.github.com/403585#file_freeze_stack.txt

@hugoduncan
Copy link
Collaborator

If I (def primes [1 3 5 7 11 13]), and try your example, then the break functionality works fine for me.

Which versions of clojure and swank-clojure?

@neotyk
Copy link
Author

neotyk commented May 18, 2010

if I def primes like that, than it works for me as well.
But my example was using clojure.contrib.lazy-seqs/primes and I suppose that similar definition would yield same freeze result.

[org.clojure/clojure "1.2.0-master-SNAPSHOT"]
:dev [swank-clojure "1.2.1"]

@hugoduncan
Copy link
Collaborator

The dangers of use - I missed that one. However, it doesn't change anything here, I still get a functioning break with clojure.contrib.lazy-seqs/primes, and am using the same versions.

@neotyk
Copy link
Author

neotyk commented May 18, 2010

Hit [enter] on first frame to see locals.

@hugoduncan
Copy link
Collaborator

OK, reproduced. The problem here is that it is trying to display the whole of the lazy sequence.

commands.basic/locals-for-emacs is calling str on the lazy sequence.

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

No branches or pull requests

2 participants