Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Xcode 4 version editor sometimes say "no editor"

In the Project Navigator, there is a little "M" next to the project file, meaning it's been modified. So I tap the Version Editor. The left side shows me the contents of the project file, and the right side says "No Editor". Same thing if I go into Source Control, Commit Selected Files...

However, other files (.m, .h, .plist, etc.) all show real differences, and correctly check-in changes.

Do I have this mis-configured somehow?

like image 466
Rayfleck Avatar asked May 13 '11 16:05

Rayfleck


4 Answers

This happened to me before I updated to Xcode 4.0.2. I think it's a bug. However, try to refresh status by going to File -> Source Control -> Refresh Status.

Also, may be obvious, but make sure you actually select the modified file by clicking it in the source tree.

like image 149
AWF4vk Avatar answered Nov 09 '22 20:11

AWF4vk


I had this too, exact same problem.

This is despite the fact that you can be using either the organizer interface, or the command line interface, and they appear fine.

Until a file has been updated through the Xcode File...Source Control..commit it doesn't recognize the file, and the version editor will appear to not be working.

Symptom :The Right pane will show messages like File Added and Unversioned File, and the left pane will only ever show the current local Revision.

This is particularly odd because the jump bars and timeline will show the other revisions, you just can't get to them.

The Workaround is to make a small edit to each file then use Xcode's File..Source Control..Commit.

Then the files (and their prior revisions) will start showing up in the version editor.

like image 22
Tony Avatar answered Nov 09 '22 19:11

Tony


Had same problem as well using an SVN repository. It was resolved once I went into the organizer and verified that I could see the revision history of the branch I was working on. I had to hit refresh.

like image 2
Ari Braginsky Avatar answered Nov 09 '22 18:11

Ari Braginsky


I had this issue after stashing , changing branch and then unstashing using git/sourcetree.

None of the above worked, but deleting the workspace did. As per this link. Xcode 4 - slow performance

The was on Xcode 4.5

like image 1
Will Johnston Avatar answered Nov 09 '22 20:11

Will Johnston