-
Notifications
You must be signed in to change notification settings - Fork 47
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
Keeps running forever for a specific file #258
Comments
I have never seen this happen. At all. I can think of several things you could do:
Generally, I do the "binary search" thing by deleting the first half of a file and seeing if it still fails, and then switch it around and try deleting the last half and check it, and then keep doing that until I have something small enough to work with. Anyway, I'm very, very interesting in finding out what you have that is tripping up zprint, since this isn't something that has ever come up. Thanks! |
In thinking about this some more, even if you can't find the file yet, if you have the codebase that loops forever, you might try turning off these two things (ideally, one at a time):
since with justification there is code that tries to justify something and if it doesn't "work", it goes back and does it w/out justification. It might be related to that. I don't think people use justification much, so if there is some ugly bug lurking in there somewhere, it might not have been noticed. |
I noticed that you generally run with |
For what it is worth, I ran the whole zprint codebase through with your particular mix of options, and it all ran to completion with no problem, more than 18K lines of code. Which is nice, but it doesn't help me debug this problem. |
I also tried all of the |
Thanks much for the suggestions and improvements! Will leave feedback asap. |
I just pushed a new branch, |
Thanks for the heads up!
About the same here. Will be very happy to give what I hope will be our last (substantial) iterations, very soon. |
Hi there,
here's the last issue of today's batch.
For a specific file (not sure yet which), zprint keeps running forever. If I
ctrl+\
to obtain a stacktrace, every time I hit that, I see zprint doing something different (e.g. calling some or other method from rewrite-clj or clojure.core etc).So it appears it's not exactly "stuck" in a single line of code.
I will try to isolate this (with the caveat that this codebase is closed-source).
Anyway before deep-diving much - is this something you've seen much before? Are there steps I can follow to debug (or trace / log) this more quickly?
I reckon that the simplest thing I can do is give you a problematic file, but perhaps you have a recipe I can follow first.
Thanks - V
The text was updated successfully, but these errors were encountered: