Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 5.1 method search only allows one character?

I've recently upgraded to Xcode 5.1 and I'm experiencing the most annoying bug. The instant search or method search dialog that allows you to search the methods on the given source file you are looking at isn't allowing me to enter more than one character. I have large source files and I tend to rely on that a lot. Any idea why this might be happening. I've tried re-installing Xcode (simply be dragging it in the trash).

enter image description here

You can find the search field I'm talking about by clicking the method as shown in the screenshot and simply typing something.

When I type the character gets replaced with the last letter entered.

like image 901
Etienne Avatar asked Mar 18 '14 22:03

Etienne


2 Answers

(This one's just informational: I don't think it will fit in a comment, and want to report on what suggestions worked and didn't.)

I ran into this same problem. I accidentally typed some other key combo when trying to do Ctrl+6 to open the Document Items dropdown, and it was all out of whack after that.

As clance_911 mentioned, the filtering would work after clicking in the search box. So for example, to filter for "init", I could hit Ctrl+6 to open the Document Items, type "i" to start filtering (but then any subsequent letters would replace the i), click into the search text box, and continue typing the "nit". This works, but it's a pain.

As Moze pointed out, this seems to be specific to external displays. Sure enough, it worked fine on my MacBook display, but if I moved Xcode over to the external display, it stopped working. In my case, dragging the menu bar in the display Arrangements settings (to make the external monitor the main display) did solve the problem: the filter worked correctly with Xcode in either window. Sorry, Etienne :-(

The other solution that worked for me was simply closing the MacBook: use it in clamshell mode with only the external display. This is my normal setup anyway, but I know that's not ideal for everyone.

like image 166
Brock Boland Avatar answered Oct 17 '22 23:10

Brock Boland


It happens if Xcode is open in external display that is not main display.

To fix it, open display setting's Arrangement tab and drag menu bar to display that you are working on.

like image 21
Moze Avatar answered Oct 17 '22 22:10

Moze