Hi All not sure if anyone is having this but when making changes it adds the blue box on the left-hand side which is fine as before this was just showing what had changed. Now though, it's added this discard change and gives you a kind of before and after within your code. It's really really annoying and difficult to make changes. I've added a screenshot here where I was just removing so spacing. The code doesn't appear to do anything until you commit. Turning off Source Control completely doesn't even get rid of it.
Does anyone have any solutions for just turning this silly feature off completely? I've always used git fine with no issues within Xcode, I don't need to see the old change just what I'm actually updating the code to be.
Related
For some reason Xcode 4.5 and 4.4.1 have both stopped displaying indented text at the proper level if there are more than three Tab characters of leading whitespace on the lines.
Easier to show than describe:
There are five leading tabs on the line the arrow is pointing to, but Xcode is drawing it as if there were only three. Using the left and right arrow keys confirms the Tabs are there.
I have deleted the derived data associated with my projects, deleted the project.xcworkspace file and xcuserdata directories within the project package, mucked around with various combinations of Indentation settings in Xcode's Preferences, all to no avail.
Newly created projects exhibit the same behavior. Changing the Source Editor font preferences have no effect either. This is in OS X 10.8.1.
Help -- my brain can't understand the code when it doesn't "look right"! What else can I try?
So, I filed a Radar, then heard back from a friend of mine who was having the same problem. Are you using the new SourceCode Pro font from Adobe? Your screenshot makes it look like you might be. Try switching back to a different theme and restarting Xcode? That's what I did, and it seems to be fine.
Eventually I removed (after quitting Xcode) the entire UserData folder in ~/Library/Developer/Xcode and that seems to have fixed the problem.
Hopefully it won't take more than another half hour to restore all the key equivalents and syntax coloring that I am accustomed to.
Leaving the question 'alive' in case it happens to someone else.
I've recently upgraded from Xcode 4.3 to 4.4 and I'm about to bash my screen in with frustration.
The problem I'm having is with the code completion. As I type a variable or method name, the completion window pops up with the suggestions like it's supposed to. But if I attempt to use the cursor keys to scroll between the suggestions, the suggestions disappear and the cursor moves in the code, not between the suggestions. If I press enter to accept the default suggestion, it again dismisses the suggestions and inserts a return into the code taking the cursor to the next line.
This doesn't happen every time I attempt code completion, but it does occur more often than not. For a given name I'm trying to complete, it either works or it doesn't (e.g. if I press escape to get the suggestions back, it will disappear just as quickly as the first time it disappeared for that line/name I was trying to complete). When I get to the next line of code, it's a whole new bet whether it will work or not. It seems that the closer to the actual completion of the name I am, the more likely it is to actually work and accept the suggestion or move between the suggestions. Sometimes, if I act quickly enough, I can move the highlighted suggestion one or two lines before the suggestions disappear. I'm aware that if you don't select a suggestion quickly enough that it's supposed to eventually remove the suggestions (on the order of several seconds), but this behavior is not what I'm describing. I'd be VERY happy at this point if I had a single second to actually respond and select a suggestion from the pop-up.
So far I've tried a clean of the project, deleting all of the project's derived data, and restarting xcode. All of which don't seem to affect the behavior. Any ideas? I've searched stackoverflow and google and haven't found any other people reporting this problem ...
Thanks for any ideas,
Will
UPDATE:
After upgrading to the XCode 4.6 release version (and 4.5 somewhere in the middle there), this problem is still present ... and making edits in the left/main editor window is still a work-around.
I am seeing the same with Xcode 4.4.1. It seems to be related to where the completion window pops up. Debugger pane open or closed does not change anything here.
When in the Assistant Editor trying in the right pane the completion windows flickers. Same line of code in the left window works fine. Single editor works, too.
Try upgrading to Xcode 4.4.1. I used to have this problem, but I don't seem to have it after upgrading.
If this doesn't solve the problem, a crude workaround seems to be to put a lot of blank lines at the bottom of each file - the problem seems to occur from frequently when the file is scrolled all the way to the bottom.
There is a fix (at least Xcode 4.6.3): re-create the affected file by deleting it. Now create a new file and copy the content to it and drag it into the project - done. Fixes the issue here. It seems to be tied to certain files.
I'm using Son of Obsidian color scheme and I've noticed every so often ReSharper Current Line Highlight goes back to the default color. To fix it all I have to do is go into Fonts and Colors and press ok and it goes back to normal. However it's really annoying when it happens and was wondering if anyone else is having this issue? Not sure if it's a VS or ReSharper bug.
I've had the same issue, I think I have narrowed it down to when I upgrade Resharper. Best way is to export your settings and then reimport them after upgrading.
Another thing that I have noticed is if you have two instances of VS open when you close the last instance it will override any changes you made in the previous instance.
Sometimes, when I type something in Xcode, it changes the capitalization. For example, I type psSimpBox, and it changes to psSimpbox. That's OK since it's just a variable, but it is annoying. However, here's a real problem: When I type stringValue(), it changes to StringValue(). And, so I get a unrecognized selector error.
Also, Xcode has been recently doing a weird thing where my code starts appearing to run into itself. This is annoying, but has never actually broken things before. I don't think these two problems are related, but it seemed worth mentioning. Photo here.
Any ideas for how to fix this? The main problem is the capitalization, but the others would be nice to fix too...
Not sure if this is worth mentioning, but the app is mostly in ASObjC.
I would guess that you probably have another symbol in your code, e.g. a constant or a global variable, which is spelled psSimpbox, and Xcode's code completion is inserting this symbol after you've typed psSimp.
Regarding the symbol renaming, have you attempted to rebuild the code sense index? Click the project (blue icon) in your project list and press Cmd-I. Click the Rebuild CodeSense Index (or similarly-named) button.
I'm not sure what to tell you about the text running together. I've never seen that before, but I'd suggest selecting a different font (perhaps it's not the default font?) and checking your tab stop settings.
When I press F5 the project compiles, and the new web page launches. However, the silverlight control loads (the standard load counter counts to 100%) but then the whole control just disappear. Only the left default menu bar (feedback etc) is visible. It's a very small project, my first actually. This also happened earlier today, but then I removed each thing one at a time and found that it was some radio buttons that caused it. I deleted them and remade them and it ran fine again. Now the same thing happened again, but it is something else, not sure yet. The question is; is this a familiar bug or am I just doing something wrong? My code-behind consist mostly of visibility changes, around 20 lines of code.
I'm not sure why this happened to me, but the error stopped occurring when I used states instead.