-
Notifications
You must be signed in to change notification settings - Fork 347
Stop blocking me from typing my code #985
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
Comments
Same here with
|
Yeah, it's pretty shocking to me that something like "intelligent" indent would have the possibility of throwing an exception and refusing to do anything. This should just be a guess, requiring valid code before the point is absurd. Instead of rewriting the whole thing to not use exceptions, how about catching them? Then, log them and fall back on a very simple indent scheme like just using the current line's indent. |
@mgsloan, In my case I'm pretty sure code before point was valid Haskell. |
Yeah, I guess my point is that "code before the point is valid Haskell" is not a reasonable requirement for automatic indentation. |
It should never throw any kind of exceptions. The proposed solutions seem to be to catch exceptions and cover up then. I think it should never throw in the first place. Note that there are only three places where
It should not be too hard to invent something sensible for each of these places to do instead of throwing exception. Any takers? |
Sometimes I get blocked and I cannot enter newlines. Message in minibuffer says:
I believe it's
haskell-indentation-mode
. My opinion is that it should never block user from typing.Not sure to reproduce this reliably, but I'll find out when I have time.
The text was updated successfully, but these errors were encountered: