-
Notifications
You must be signed in to change notification settings - Fork 7
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
Invalid ranges during formatting in Language: Clojure #544
Comments
Wow, that's what I call an error report. I hope this never happens on There are some problems with formatting right now, I'm trying to work around a bug in IntelliJ - see #517. I'm hoping to get this fixed for the next build. |
Sorry, I was going to come back and add a little context if I could reproduce. :) I managed to make it happen many more times unintentionally but in a practiced way. I'm mostly switched over to Cursive now for my main editor. The key mappings helped a lot! Thanks...
|
Hehe, no, I was referring to the fact that the error message in the log has the entire file and the AST. I can't take credit for that though, that's IntelliJ. It's odd that you see this so much and no-one else has reported it - formatting issues normally come out very quickly. But I should be able to reproduce with the AST from the error message, with any luck. Seriously, I had no idea formatting code was so hard. Glad the key mappings helped, let me know if you're missing anything! |
I started seeing that formatting error only after updating to the latest On Wed, Oct 15, 2014 at 6:37 PM, cursiveclojure notifications@github.com
|
Thanks. Yeah, I've been fiddling with it recently to try to work around the platform bug. |
You're welcome! I'm glad you're enjoying it. You can probably find an equivalently wonderful bug report in your log, Help->Show log in Finder/Explorer. Note that it does seem to include your whole source file, so mailing it to cursive@cursiveclojure.com might be a better idea than pasting it here if it's confidential or very long. |
I've been also experiencing the same formatting problem since 0.1.39 upgrade. I'm using Idea CE 13.1.5 (IC-135.1289)
|
This error was caused by the temporary error element inserted into the AST on a parse error (ClojureErrorElement in Alex's AST above), so it was caused by formatting a file with a syntax error in it. I've fixed this in the time-honoured tradition by rewriting the entire relevant module - in my defence, that's been on my to-do list for a long time now. |
thanks!
|
The text was updated successfully, but these errors were encountered: