3 ms·
I don't understand how people use Atom for Python. Indentation in language-python is broken. https://github.com/atom/language-python/issues/64 https://github.c
by mattdeboard 11y ago
I don't understand how people use Atom for Python. Indentation in language-python is broken.
https://github.com/atom/language-python/issues/64 https://github.com/atom/language-python/issues/64
https://github.com/atom/language-python/issues/22 https://github.com/atom/language-python/issues/22
There are also several syntax highlighting issues but those aren't deal-breakers like broken indentation.
I'm sympathetic, I help maintain elixir-mode for emacs. I know it's hard to get this stuff right. But all things considered, Atom is unusable for Python for me. I was using it for working with JS & React but now that web-mode seems to have ironed at many kinks, I'm back to Emacs.
- chc 11y agoPython indentation in Emacs was awful for a long time too, wasn't it?
- mattdeboard 11y agoDoesn't matter, it works now. This isn't a moral question about which project has had the fewest bugs in their respective lifetimes. It's a practical question about which mode gets auto-indentation right right now. edit: I don't know the answer to your question. What I do know is that it's really hard to get indentation right in Emacs for languages with significant whitespace where new lines are the only marker, and I assume the same is true for TextMate (which Atom piggybacks on for indentation). I'm not an expert on emacs, emacs lisp or creating language modes for emacs, but I do have a decent amount of experience[1]. So when I say I'm sympathetic I mean it down in my bones. But still, if an editor can't get auto-indentation right, it's a deal-breaker. [1] https://github.com/elixir-lang/emacs-elixir/blob/master/elixir-smie.el https://github.com/elixir-lang/emacs-elixir/blob/master/elix...
- chc 11y agoOh, I didn't mean it as a moral question or smack-talk or anything like that. I was just noticing that Python seems to be neglected by a lot of editors. I'm normally an Emacs user, but I gave up on it for Python because I had to spend too much time fighting it on indentation, so I was kind of surprised to see it mentioned in your comment and it made me think.
- mattdeboard 11y agoNo, python-mode works beautifully for me. There are a couple very minor hiccups (I think there's some error with indentation after a method with no `return` statement or some such) but it's not a deal breaker.
- seanp2k2 11y agoKnow off-hand if there is a fix for JS auto-indenting in the works? My atom seems to just indent everything one level more than the last, never out-denting back. This is something which I've found JetBrains IDEs to be really good at, but at this point Atom has so many useful / fun packages and is so easily extensible that I don't think I'll switch back any time soon. If there's already a package (I know about FixMyJS which...sorta works...) which does this well, please share! EDIT: rainbow parens would also be KILLER in Atom, but last time I looked it sounded like it was non-trivial to modify the colors like that.