-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Submodule init is easy to miss when hacking on Brackets #2244
Comments
If anyone knows both shell scripts and .bat scripting, the third idea should be pretty easy to implement :-) |
That would be useful, though it only addresses initial setup--it's also easy to forget to update submodules later on. It might be easy to put a check in Brackets that checks if you're running out of a git repo, checks the desired SHAs for the submodules, and then checks that the HEAD of each submodule matches the SHA. I don't know where the expected SHA is stored in the main repo, but once we figure that out it would be pretty easy to check. |
Actually, it looks like it's not easy to determine the expected SHA without actually using git commands--it's stored directly in the object database. |
I just started with environment initialization and this happened to me. I believe the problem is when you're going through the How to Hack on Brackets page, you reach the part where it says, "See Running Your Copy of the Code for more details." under the "How Brackets is Organized" section. At this point I'm thinking, "Hell yeah I want to eat my own dog food!" I click on the link which sends me to the "Running Your Copy of the Code" section, skipping over the "Getting a Copy of the Code" section which has the initialization snippet. I think this can be mitigated by adding a section in the Running Your Copy of the Code, instructing the user to ensure they've completed the "Getting a Copy of the Code" section. |
Reviewed |
Nominating for Sprint 19 since we continue to get frequent reports of this, and it seems hard for people to figure out on their own (especially since it's not obvious how to open the dev tools when the UI is blank). |
I saw this issue a bit late so my fix #2440 for it (implementing the second option) might not be relevant. However, it seems simple enough to maintain and can serve as a temporary solution or to double-check the third way of checking this. |
FBNC to @peterflynn -- it looks like we merged @jdiehl's solution. |
Oops, I forgot to actually assign this back to Peter. |
Verified fixed. I also took @tomekr's advice and tweaked the wiki instructions to make |
Forgetting to run
git submodule update --init
seems like the most common pitfall people hit when following the How to Hack on Brackets guide. Is there anything we could do to reduce the likelihood of that?The text was updated successfully, but these errors were encountered: