-
Notifications
You must be signed in to change notification settings - Fork 17.4k
When you use atom as your git editor it is quite slow to open the git commit text (compared to other #1433
Comments
Perhaps when atom is launch in |
👍 to that idea |
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. |
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? |
FWIW, I'm watching this issue exclusively for the performance part. I'd ❤️ to keep it open for that reason. |
For sure, thanks Jason! 👍 |
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:
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 |
This is probably due to #1230 (opening a new window, ~ 4 seconds here), but with a few more seconds added on in this case. |
👍 to this. I'm suffering from the same delay as others. |
+1 Not using atom as main IDE because the slow opening |
👍 wait should return on ⌘-w and should open git commit message a lot faster |
It seems that part of the problem is that Atom opens a new window when you pass |
+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 should only open the file in a new window if the command line |
Is this slow because the Atom editor scans + populates the folder tree even if you are only trying to edit a single file? Is there a way to tell it on launch to only edit the file given, not load the folder as a project? |
I don't think so, it's the same 10 second delay I'm getting when I open any new window. If we avoid opening the new window for a git commit message it'll avoid the problem in this case. |
Any updates on this issue?
I know that there are reasons… but from a UX perspective it is really bad. |
I assume you're using a HDD. Because of how many files atom loads it can take some time for a HDD to access them all. However there is good news: #5382 -- when that is merged there will be a single file to load which should significantly increase startup time.
This is consistent with a lot of just plain text editors (eg. You could use It might make sense for atom to add a standalone command-line switch that was intended for a single file (didn't load tree view, closed when you closed the file, no tabs, etc.); but, that would need to be opened as a different issue. |
Atom lags even on MBPr with Core i7 and SSD drive. It takes up to 2 seconds to create new window with Cmd+Shift+N. Atom 0.189.0, OSX 10.10.2. |
👍 For making this open faster. I like using Atom, but don't have it set up as my git editor, which is a hassle. |
@CrendKing do you use the |
Yes. My My
@laughedelic, if you don't have the problem, I'm really interested in how I did wrong. I wonder if it is related to some system config in Mac. For example, automatically kill process when all foreground windows are closed. |
@CrendKing How to get |
I wrote a workaround for the closing part in https://atom.io/packages/close-after-last-tab-with-git. It will close atom window when you close the last panel AND if your project folder is the git folder. |
Perhaps ServiceWorker can help cache things soAtom loads faster, so long as the Atom app stays open after last window is closed? |
I am having this same issue and would be overjoyed if there was a fix. This is literally the only thing that bothers me about an otherwise incredible piece of software. I would really like to keep using it, but it's getting very bothersome to wait as much as 10-15, maybe even 20 seconds for atom to open a git commit window. If anyone has any input on how I might speed it up, please do tell. Thanks so much! |
To reduce boot time for quick edits you could use |
Hi @jmarchello that sounds like a great plan. I'll give it a shot. Thanks so much! |
I came here to file an issue that I tried doing the following to make the
And then created
And finally:
But this still doesn't open nearly as fast as I would like. I think that being able to do:
is the only way to make this sufficiently fast, and as others have mentioned, closing the tab should signal the end of the Has someone created a package to prototype this already? |
Summary: This is a workaround for atom/atom#1433 that provides a script that is useful for the following items: * `$HGEDITOR` * `$GIT_EDITOR` * `arc set-config editor` To make this script work, I had to update `pkg/nuclide-remote-atom-rpc/bin/atom` to return different exit codes for different types of failures. The new script, which is designed for the use cases above, is available at `pkg/nuclide-remote-atom-rpc/bin/atom-wait`. As explained in the comments in the script, it takes a single argument and tries the following, in order: 1. Opens the file in a new tab in an existing Atom window. Does not return until the tab is closed. 2. Opens the file using `$ATOM_BACKUP_EDITOR`. This happens if Atom is not already open. 3. Opens the file using `$EDITOR`. For people who have Atom/Nuclide open all the time and would like to use it for things like drafting commit messages or interactive rebase, this is a nice option. The script includes comments that explain how to set it up either locally or remotely. Reviewed By: peterhal Differential Revision: D3868204 fbshipit-source-id: a0381b4207201c823f826ca4c0dde0a4c55adaeb
@bolinfest I reallly liked your idea with the separate config, so I also took a look at your approach. The main problem for me was, that atom only looks at Since for me, there is virtually always an open instance of atom, it makes it impossible to use a different configuration just for git editing. But that alone could have solved part of this issue, since you could disable almost all packages (including core ones like tree-view) for this use case, possibly benefiting application startup. |
+1 for |
|
I just came here to add more support to those requests above. 👍 |
Any updates on this thread? The wait time is indeed annoying. Hoping that the |
@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?
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 |
@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. |
Thanks for the context @nathansobo, this is very helpful. Any PRs or open issues related to that messy process code? |
After reviewing this long history more closely, it seems like teaching As for an issue about the messiness of the main process @KevinBongart, none exists. Sorry. |
Hey everyone. Sorry for the delay on this. The fix will ship in Atom 1.25. |
Now that `atom --wait` is fast, I can use it for authoring Git commits! 😅 /xref 31c5797 /xref atom/atom#16497 /xref atom/atom#1433
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! |
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
The text was updated successfully, but these errors were encountered: