Re: jump to function definition => wrong file
Re: jump to function definition => wrong file
- Subject: Re: jump to function definition => wrong file
- From: Scott Tooker <email@hidden>
- Date: Thu, 24 Jun 2004 11:41:04 -0700
I'm fairly certain that this is a known issue with how indexing is
currently done (in 1.2 the indexer looks at files from the project
level, not the target level).
There is really no workaround short of renaming files/classes or having
each target in a separate project.
Scott
On Jun 23, 2004, at 8:38 PM, Markian Hlynka wrote:
> I'm having quite a lot of difficulty with the feature of xcode that
> lets you command-click on a symbol or function and jump to its
> definition.
>
> Most recently, I had this problem with a function.
>
> I have several targets. They all share some base code. Further, they
> each have private files. All the private files are kept in separate
> directories and groups. For reasons which are too long to explain,
> some of the private files have the same names. ie, target A will have
> file foo.h and foo.cc. Target B will also have ITS OWN versions of
> these files, in the directory for target B.
>
> The problem comes when I switch to target B after working with target
> A. In the common files, when I select a function name and
> command-click on it, I get sent to the function definition in foo.cc
> in Target A, when it should be Target B. I've checked that the files
> in question are NOT include in the wrong targets.
>
> So, is this that pesky indexing again? May I suggest that the indexer
> should check the active target, and either only do lookups for symbols
> within that target. Or, make it an option so I could turn off the
> weird behaviour for this project. :)
>
> Or, is it an option I can't find?
>
>
> Thanks,
>
> Markian
> _______________________________________________
> xcode-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/xcode-users
> Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.