Skip to content
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

Autocomplete not working for KIF-related methods #81

Closed
clozach opened this issue Oct 13, 2011 · 1 comment
Closed

Autocomplete not working for KIF-related methods #81

clozach opened this issue Oct 13, 2011 · 1 comment

Comments

@clozach
Copy link

clozach commented Oct 13, 2011

In Xcode 4, autocomplete seems to fail frequently with KIF-related methods. As far as I can tell, I've set up my project exactly as described in the README†. Syntax coloring works just fine, and tests compile and run as expected. I simply can't get autocomplete to recognize methods from the KIF headers. (KIF class names autocomplete just fine.)

I've found this to be the case both in my own project (set up per the README with a successfully running test), and in the "Testable" sample project.

Here's a specific example. My KIFTestController subclass header, EDTestController.h:

#import <Foundation/Foundation.h>
#import "KIFTestController.h"

@interface EDTestController : KIFTestController {
}

@end

EDTestController.m

#import "EDTestController.h"
#import "KIFTestScenario+EDAdditions.h"

@implementation EDTestController

- (void)initializeScenarios;
{
    [self addScenario:[KIFTestScenario scenarioToTestKIFIsWorking]]; // Syntax coloring & functionality works fine

    [self addSc  // <<< Hitting 'esc' here shows "No completions"
}

@end

† The README seems to offer conflicting instructions regarding Header Search Paths...could this be the source of the problem? Specifically, the text says, "To do this, add the KIF directory to the "Header Search Paths" build setting. Start by selecting the "Build Settings" tab of the project settings,..." which seems to imply that the project should be selected, not the Integration Tests target. Meanwhile, the screenshot shows the Integration Tests target selected, rather than the Testable project. I followed the screenshot.

@clozach
Copy link
Author

clozach commented Oct 13, 2011

Oops, never mind. Turns out it was a bug in XCode 4.0.2. Upgrading to 4.2 solved it.

@clozach clozach closed this as completed Oct 13, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant