You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
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
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
Reacted by Edward Bramanti, Alexey Alekhin, Michael Gilley, Sietse de Kaper, Marian Zagoruiko, Maher Beg, Jérémie Astori, dbplunkett, Tim Gilbert, Alf Kristian Støyle and 7 more
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.
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?
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
Reacted by Alexey Alekhin, Erik Arvidsson, Andrew Rempe, Eido A. and Apostolis Taxidaridis
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).
+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.
@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.
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?
@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.
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.
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!
Activity
nathansobo commentedon Jan 17, 2014
Perhaps when atom is launch in
--waitmode it should close the window and return to the terminal when all editors are closed.kevinsawicki commentedon Jan 17, 2014
👍 to that idea
jonmagic commentedon Jan 17, 2014
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.
izuzak commentedon May 21, 2014
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?
jasonrudolph commentedon May 21, 2014
FWIW, I'm watching this issue exclusively for the performance part. I'd ❤️ to keep it open for that reason.
izuzak commentedon May 21, 2014
For sure, thanks Jason! 👍
toolmantim commentedon Jun 4, 2014
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:
git commit -vagit pushThe 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 quickgit pushtoolmantim commentedon Jun 5, 2014
This is probably due to #1230 (opening a new window, ~ 4 seconds here), but with a few more seconds added on in this case.
mlandauer commentedon Jun 5, 2014
👍 to this. I'm suffering from the same delay as others.
luishdez commentedon Jun 20, 2014
+1 Not using atom as main IDE because the slow opening
swrobel commentedon Jul 30, 2014
👍 wait should return on ⌘-w and should open git commit message a lot faster
swrobel commentedon Jul 30, 2014
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).csauve commentedon Jul 31, 2014
+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 -wand would love to see them a bit smoother.Atom should only open the file in a new window if the command line
-noption is given, which already exists and provides this behaviour when-wis not provided.49 remaining items
blackst0ne commentedon Sep 18, 2017
I just came here to add more support to those requests above. 👍
nicomartinezdev commentedon Oct 4, 2017
Any updates on this thread? The wait time is indeed annoying. Hoping that the
new tabsolution was a thinglee-dohm commentedon Oct 25, 2017
@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.
KevinBongart commentedon Oct 25, 2017
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?
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
nathansobo commentedon Oct 25, 2017
@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.
KevinBongart commentedon Oct 25, 2017
Thanks for the context @nathansobo, this is very helpful. Any PRs or open issues related to that messy process code?
nathansobo commentedon Oct 25, 2017
After reviewing this long history more closely, it seems like teaching
--waitand--addto 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.
maxbrunsfeld commentedon Jan 6, 2018
Hey everyone. Sorry for the delay on this. The fix will ship in Atom 1.25.
Use Atom as Git commit editor
lock commentedon Jul 5, 2018
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!