Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

When you use atom as your git editor it is quite slow to open the git commit text (compared to other #1433

Closed

Description

@atom-bot

When you use atom as your git editor it is quite slow to open the git commit text (compared to other editors). Then when you save you have to use command-W as command-w doesn't kick things back to the terminal.

Atom Version: 1
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Atom/0.46.0 Atom-Shell/0.7.6 Safari/537.36
User: @jonmagic

Activity

  1. nathansobo commented on Jan 17, 2014

    @nathansobo
    Contributor

    Perhaps when atom is launch in --wait mode it should close the window and return to the terminal when all editors are closed.

  2. kevinsawicki commented on Jan 17, 2014

    @kevinsawicki
    Contributor

    👍 to that idea

  3. jonmagic commented on Jan 17, 2014

    @jonmagic

    Cool. If we do this new behavior we just need to ensure it's always opened in a new window as you wouldn't want to close the whole window if the git text was just in a new tab in an existing window.

    Only saying this because git/Sublime tries to open a new tab in an existing window first and if that fails does a new window.

  4. izuzak commented on May 21, 2014

    @izuzak
    Contributor

    Perhaps when atom is launch in --wait mode it should close the window and return to the terminal when all editors are closed.

    It sounds like "#863 - cmd-w after the last editor should close the window" covers this (except for the slow performance part). Would it be 🆒 to close this issue in favor of that one, or do we want to keep this open to track the performance issue?

  5. jasonrudolph commented on May 21, 2014

    @jasonrudolph
    Contributor

    Would it be 🆒 to close this issue in favor of that one, or do we want to keep this open to track the performance issue?

    FWIW, I'm watching this issue exclusively for the performance part. I'd ❤️ to keep it open for that reason.

  6. izuzak commented on May 21, 2014

    @izuzak
    Contributor

    I'd ❤️ to keep it open for that reason.

    For sure, thanks Jason! 👍

  7. toolmantim commented on Jun 4, 2014

    @toolmantim

    This performance issue is killing me too. It takes ~ 5-8 seconds to show the commit message editor, even if Atom is open.

    At the moment my typical flow looks like this:

    • You're editing a project in Atom
    • You switch to terminal, and git commit -va
    • You wait ~ 5 seconds (or more), it opens a completely new atom window with the git commit message. You edit the commit message, ⌘-s and ⌘-w, and then manually hit the close window button (fixed in Add option to have cmd-w close the window when there are no editors open #863)
    • You're back in terminal, and git push

    The lag opening the window is the worst, especially given it's already running and it's just a single file.

    In Sublime it just opens a new tab in the project window that's already open (given it's in the project dir as .git/COMMIT_EDITMSG), and it does it near instantly. Then you edit the commit message, hit ⌘-s and ⌘-w and you're back in Terminal for a quick git push

  8. toolmantim commented on Jun 5, 2014

    @toolmantim

    This is probably due to #1230 (opening a new window, ~ 4 seconds here), but with a few more seconds added on in this case.

  9. mlandauer commented on Jun 5, 2014

    @mlandauer

    👍 to this. I'm suffering from the same delay as others.

  10. luishdez commented on Jun 20, 2014

    @luishdez

    +1 Not using atom as main IDE because the slow opening

  11. swrobel commented on Jul 30, 2014

    @swrobel

    👍 wait should return on ⌘-w and should open git commit message a lot faster

  12. swrobel commented on Jul 30, 2014

    @swrobel

    It seems that part of the problem is that Atom opens a new window when you pass -w/--wait, I suppose so that it can return after the window is closed. If the behavior was as expected, where ⌘+w on the tab that was opened from the command line returned, then I think this issue would be largely resolved since Atom wouldn't need to open a new window, which is considerably slower than opening a new tab (although that seems like a separate issue that needs attention).

  13. csauve commented on Jul 31, 2014

    @csauve

    +1 to opening in a new tab by default. Editing commit messages is the most common case for me, but I also experience the slowdown in scripts including atom -w and would love to see them a bit smoother.

    Atom should only open the file in a new window if the command line -n option is given, which already exists and provides this behaviour when -w is not provided.

  14. 49 remaining items

  15. blackst0ne commented on Sep 18, 2017

    @blackst0ne

    I just came here to add more support to those requests above. 👍

  16. nicomartinezdev commented on Oct 4, 2017

    @nicomartinezdev

    Any updates on this thread? The wait time is indeed annoying. Hoping that the new tab solution was a thing

  17. lee-dohm commented on Oct 25, 2017

    @lee-dohm
    Contributor

    @nshtg and @tapajos your comments were deleted as a violation of the Atom Code of Conduct as they were insulting or derogatory. You may consider this an official warning.

  18. deleted a comment from nshtg on Oct 25, 2017
  19. deleted a comment from tapajos on Oct 25, 2017
  20. KevinBongart commented on Oct 25, 2017

    @KevinBongart

    So… users have been complaining about this issue for 3 years now. What can experienced Atom contributors do to encourage more developers to solve the issue?

    • Is this a performance problem? What are some options worth looking into? Are there any PRs already working on boot time?
    • Is this a behavior problem? Should Atom support some options on launch to start a lighter one-file version?

    Right now, it's daunting to just think about solving the issue myself, so I complained once in the last few years and get notified every few weeks when someone else complains. What are some pointers people can use to contribute to a solution? Documentation? Code? Pull requests? Other related issues?

    Thanks

  21. nathansobo commented on Oct 25, 2017

    @nathansobo
    Contributor

    @KevinBongart I think you're right that we need to make this work. The problem has been that our main process code is a mess and we haven't had time to clean it up in a holistic way yet. Because of that, we have been reluctant to add launch-related features. At this point I think that we should probably just hack in a solution despite the debt it will incur.

    We're going to discuss prioritizing this feature, but there are a bunch of other areas with similarly passionate appeals for us to make improvements, and it's just a balancing act to get to everything in the ideal order.

    I'm in bugfix / PR review mode for the next 2-3 weeks, so if someone wants to ping me on a PR that adds and integration tests this feature, I am down to get it across the finish line.

  22. KevinBongart commented on Oct 25, 2017

    @KevinBongart

    Thanks for the context @nathansobo, this is very helpful. Any PRs or open issues related to that messy process code?

  23. nathansobo commented on Oct 25, 2017

    @nathansobo
    Contributor

    After reviewing this long history more closely, it seems like teaching --wait and --add to get along gracefully would solve most people's issues. I've updated my previous comment slightly to reflect that.

    As for an issue about the messiness of the main process @KevinBongart, none exists. Sorry.

  24. self-assigned this
    on Jan 5, 2018
  25. maxbrunsfeld commented on Jan 6, 2018

    @maxbrunsfeld
    Contributor

    Hey everyone. Sorry for the delay on this. The fix will ship in Atom 1.25.

  26. added a commit that references this issue on Jan 8, 2018
  27. lock commented on Jul 5, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  28. locked as resolved and limited conversation to collaborators on Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions