-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] Startup sequence feels muddled, misleading #1898
Comments
Comment by DennisKehrig There is something to be said for first restoring the project, etc., and then loading the extensions (it just feels safest). But there's indeed also something to be said for loading the extensions first, since then we can potentially influence more fundamental parts of Brackets. For instance, my whitespace extension monkey-patches CodeMirror and then triggers a refresh in visible editors, causing a visible delay between displaying the file and highlighting the whitespace in it. If I could patch CodeMirror before it was first use, it would look less like a hack. |
Comment by pthiess Reviewed,
|
Comment by peterflynn Re "runs afoul of #968": due to pull #1968, we can now be much more robust to errors that occur during extension loading. That frees our hand to make extensions load sooner, if we so desire. |
Comment by DennisKehrig Please see commits e29110345ac2aab0430904a622f50cc8cf96621e and 15fa7bb0782c4e5382cd6f8241df74ac7703395c in the dk/less-refactoring branch. |
Comment by dangoor Is there anything left for this bug, or are we done here? |
Comment by DennisKehrig Haven't tested this, but since my two commits are in there, a careful go from me. |
Comment by jasonsanjose FBNC |
Comment by peterflynn Looks great! Thanks for updating the wiki too. |
Comment by njx Removing "for release note" label from this old bug. |
Issue by peterflynn
Thursday Oct 25, 2012 at 20:53 GMT
Originally opened as adobe/brackets#1951
The sequence of operations during Brackets startup is a little confusing. It's poorly documented and feels somewhat error prone... and in at least a few cases, there may already be issues as a result:
It seems like some of the weirdness is due to loading extensions after (mostly) opening the initial project. It would be cleaner if we load all extensions first, then load the initial project. But that runs afoul of #968 -- a problem loading extensions would prevent Brackets from loading the initial project, which at least in the past left it pretty much hosed. However, there are some ways we could address that: catch exception errors more robustly (see early work and later suggestions); or add a timeout (#1029) to ensure the next phase of startup always runs; or make Brackets robust to launching with no initially-open project.
Another thing we could do to help here is improve documentation, both on the wiki and in brackets.js, to more clearly describe the order of events during startup.
The text was updated successfully, but these errors were encountered: