• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: rebuild codesense index?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rebuild codesense index?


  • Subject: Re: rebuild codesense index?
  • From: James Bucanek <email@hidden>
  • Date: Fri, 14 Oct 2005 07:36:46 -0700

Markian Hlynka wrote on Friday, October 14, 2005:
>So:
>
>I'm just getting into codesense, and it works way better than before.
>I have so many questions (Which the docs don't seem to answer), but
>here are my 2 most important related ones:
>
>1. I have 2 functions:
>    void print_by_name(const std::vector<int>& vec) const;
>    std::string print_by_name(const int& one) const;
>When I bring up the completion list, I get:
>       workingSet->print_by_name(<#const std#>);
>So, that's not especially helpful. 'cause of that "std", I can't tell
>which function that is. Secondly, the second function that returns a
>string doesn't show up at all. Is this because Xcode has issues
>dealing with overloaded functions, or does my index need updating?

I can't fully answer this becuase I'm not using C++ in Xcode these days. Your behaviour might be a problem/bug in C++ indexing, but I'll share some thoughts anyway.

There are several display option, particularly the ones to display return types and parameters in the list of choices. If you turn this of in Java, you'll get a list like

    printf()
    printf()
    printf()

Turning it on gives you a list like this

    printf( String )
    printf( int )
    printf( Object )
    ...

>2. How do I force the index to rebuild?

Project > Edit Project Settings --> Rebuild Code Sense Index button

You can open the Activity Viewer window to watch its progress.

>Ok, I lied, I have 3 questions:
>
>3. it seems to me that sometimes my typos get indexed and offered
>back to me. Is this correct behaviour, and apart from being careful,
>how do I avoid it? ie, will they disappear on the next index update?

Indexing is incremental. As you type, Code Sense is constantly recompiling your source code. If you type something wrong, it gets put in the index and cached. Saving the file again, and it helps if the file compiles without errors, is usually all that's needed for those temporary symbols to be cleared out. Rebuilding the Index would certainly do it.

--
James Bucanek
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >repost: rebuild codesense index? (From: Markian Hlynka <email@hidden>)

  • Prev by Date: XCode codesense very broken for C++ ???
  • Next by Date: Re: type/value mismatch error in template
  • Previous by thread: Re: XCode codesense very broken for C++ ???
  • Next by thread: Re: repost: rebuild codesense index?
  • Index(es):
    • Date
    • Thread