Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to enable indexing with CDT + Subclipse?
How to enable indexing with CDT + Subclipse? [message #166037] Fri, 17 March 2006 19:41 Go to next message
Eclipse UserFriend
Originally posted by: jlaporte.eqo.com

Hi all,

I've been experimenting with CDT and find it to be a great environment.
However, upon doing a
checkout using the Subclipse SVN client plugin, CDT doesn't index the
project. If I import the project contents from a location on disk indexing
works fine. I can't find a way to force indexing in the SVN checkout case.
Has anyone run into this issue?

Many thanks,

- Jeff LaPorte
Re: How to enable indexing with CDT + Subclipse? [message #166053 is a reply to message #166037] Fri, 17 March 2006 20:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: markp.softlanding.com

Jeff LaPorte wrote:

> I've been experimenting with CDT and find it to be a great
> environment. However, upon doing a checkout using the Subclipse SVN
> client plugin, CDT doesn't index the project. If I import the project
> contents from a location on disk indexing works fine. I can't find a
> way to force indexing in the SVN checkout case. Has anyone run into
> this issue?

Are the .project, .cdtproject files etc.. in your repository? Is the
Checkout process creating a non-CDT project because of their absence?

I am one of the project owners of Subclipse, and I regularly use CDT
projects to test with. I have never seen difficulty in doing this.

Mark
Re: How to enable indexing with CDT + Subclipse? [message #166061 is a reply to message #166053] Fri, 17 March 2006 23:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jgallagher.opendap.org

I'm having what may be the same issue. I have a number of projects under
control with Subversion and I use Eclipse/CDT to work on them. I've used
the svn command line tool to check out the projects and then added them
to Eclipse after the fact.

For _one_ project, indexing does not work. It works fine for the others
(about ten). In addition, the projects that work all show up in the
Navigator and C/C++ Projects view as '<name> [svn URL]' except for the
project for which indexing does not work. For that prject the listing is
'<name> [<name>].'

For the affected project the indexer generates the "File not indexed
because it was not built" error for each source file in the project.

Neither the .project nor the ,cdtproject files are in svn for any of
these projects.

Sometimes I use the commad line tool (svn) to update, checking, cp, et
c., instead of Eclipse.

One more thing: In the broken project, the Outline view does not work,
while it appears to be fine for the other projects.

I've tried deleting the project and then adding it again, but that
doesn't seem to change anything.

Sorry to be so wordy, but maybe there's soemthing key in these detailts.
Also, I'd really appreciate any help! Eclipse and SVN are wonderful tools.

James

Mark Phippard wrote:
> Jeff LaPorte wrote:
>
>
>>I've been experimenting with CDT and find it to be a great
>>environment. However, upon doing a checkout using the Subclipse SVN
>>client plugin, CDT doesn't index the project. If I import the project
>>contents from a location on disk indexing works fine. I can't find a
>>way to force indexing in the SVN checkout case. Has anyone run into
>>this issue?
>
>
> Are the .project, .cdtproject files etc.. in your repository? Is the
> Checkout process creating a non-CDT project because of their absence?
>
> I am one of the project owners of Subclipse, and I regularly use CDT
> projects to test with. I have never seen difficulty in doing this.
>
> Mark
>
Re: How to enable indexing with CDT + Subclipse? [message #166069 is a reply to message #166061] Sat, 18 March 2006 04:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sscout.gmpexpress.net

James Gallagher wrote:
> I'm having what may be the same issue. I have a number of projects under
> control with Subversion and I use Eclipse/CDT to work on them. I've used
> the svn command line tool to check out the projects and then added them
> to Eclipse after the fact.
>
> For _one_ project, indexing does not work. It works fine for the others
> (about ten). In addition, the projects that work all show up in the
> Navigator and C/C++ Projects view as '<name> [svn URL]' except for the
> project for which indexing does not work. For that prject the listing is
> '<name> [<name>].'
>
> For the affected project the indexer generates the "File not indexed
> because it was not built" error for each source file in the project.
>
> Neither the .project nor the ,cdtproject files are in svn for any of
> these projects.
>
> Sometimes I use the commad line tool (svn) to update, checking, cp, et
> c., instead of Eclipse.
>
> One more thing: In the broken project, the Outline view does not work,
> while it appears to be fine for the other projects.
>
> I've tried deleting the project and then adding it again, but that
> doesn't seem to change anything.
>
> Sorry to be so wordy, but maybe there's soemthing key in these detailts.
> Also, I'd really appreciate any help! Eclipse and SVN are wonderful tools.
>
> James
>
> Mark Phippard wrote:
>
>> Jeff LaPorte wrote:
>>
>>
>>> I've been experimenting with CDT and find it to be a great
>>> environment. However, upon doing a checkout using the Subclipse SVN
>>> client plugin, CDT doesn't index the project. If I import the project
>>> contents from a location on disk indexing works fine. I can't find a
>>> way to force indexing in the SVN checkout case. Has anyone run into
>>> this issue?
>>
>>
>>
>> Are the .project, .cdtproject files etc.. in your repository? Is the
>> Checkout process creating a non-CDT project because of their absence?
>>
>> I am one of the project owners of Subclipse, and I regularly use CDT
>> projects to test with. I have never seen difficulty in doing this.
>>
>> Mark
>>

I've been using Eclipse/CDT/Subclipse for the last six months, across 8
projects or so, and I've never seen this either. You should be able to
force indexing, though, by going into the project's properties, turning
indexing off, and then turning it back on again.

If this does not work, try checking out your project to a separate
folder, then manually copy the source files into a brand new CDT
project's folder. Does the indexer work when the files are not managed
by SVN?

Shawn
Re: How to enable indexing with CDT + Subclipse? [message #166189 is a reply to message #166069] Mon, 20 March 2006 20:21 Go to previous message
Eclipse UserFriend
Originally posted by: jgallagher.opendap.org

Shawn Scout wrote:
> James Gallagher wrote:
>
>> I'm having what may be the same issue. I have a number of projects
>> under control with Subversion and I use Eclipse/CDT to work on them.
>> I've used the svn command line tool to check out the projects and then
>> added them to Eclipse after the fact.
>>
>> For _one_ project, indexing does not work. It works fine for the
>> others (about ten). In addition, the projects that work all show up in
>> the Navigator and C/C++ Projects view as '<name> [svn URL]' except for
>> the project for which indexing does not work. For that prject the
>> listing is '<name> [<name>].'
>>
>> For the affected project the indexer generates the "File not indexed
>> because it was not built" error for each source file in the project.
>>
>> Neither the .project nor the ,cdtproject files are in svn for any of
>> these projects.
>>
>> Sometimes I use the commad line tool (svn) to update, checking, cp, et
>> c., instead of Eclipse.
>>
>> One more thing: In the broken project, the Outline view does not work,
>> while it appears to be fine for the other projects.
>>
>> I've tried deleting the project and then adding it again, but that
>> doesn't seem to change anything.
>>
>> Sorry to be so wordy, but maybe there's soemthing key in these
>> detailts. Also, I'd really appreciate any help! Eclipse and SVN are
>> wonderful tools.
>>
>> James
>>
>> Mark Phippard wrote:
>>
>>> Jeff LaPorte wrote:
>>>
>>>
>>>> I've been experimenting with CDT and find it to be a great
>>>> environment. However, upon doing a checkout using the Subclipse SVN
>>>> client plugin, CDT doesn't index the project. If I import the project
>>>> contents from a location on disk indexing works fine. I can't find a
>>>> way to force indexing in the SVN checkout case. Has anyone run into
>>>> this issue?
>>>
>>>
>>>
>>>
>>> Are the .project, .cdtproject files etc.. in your repository? Is the
>>> Checkout process creating a non-CDT project because of their absence?
>>>
>>> I am one of the project owners of Subclipse, and I regularly use CDT
>>> projects to test with. I have never seen difficulty in doing this.
>>>
>>> Mark
>>>
>
> I've been using Eclipse/CDT/Subclipse for the last six months, across 8
> projects or so, and I've never seen this either. You should be able to
> force indexing, though, by going into the project's properties, turning
> indexing off, and then turning it back on again.
>
> If this does not work, try checking out your project to a separate
> folder, then manually copy the source files into a brand new CDT
> project's folder.

I tried checking out the project again and adding it to Eclipse, but I
got the same results. I'm sure both the .project and .cdtproject files
are not in SVN. By same result I mean that the index does not work (it
shows the "File not indexed because it was not built" message) and the
path to the right of the project name is not a SVN URL. I then checked
out a different project, from the same SVN repo and it worked as expected.

So, there must be something in the SVN repo that's controlling Eclipse
and or the subclipse code. Can anyone give me pointers on what to look for?

Does the indexer work when the files are not managed
> by SVN?

Yes.

James


>
> Shawn
Previous Topic:Building Eclipse MBS headless
Next Topic:Visual Studio vs Managed Build
Goto Forum:
  


Current Time: Sat Dec 21 14:24:13 GMT 2024

Powered by FUDForum. Page generated in 0.04427 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top