This problem really has nothing to do
with CVS. You should try the eclipse-tools-jdt newsgroup.
From what you've provided, it looks
like you have not configured your project properly. It needs to be a Java
project and you Java source files need to be in s Source folder. I understand
that this is not needed to compile with ANT but it is needed if you want
code assist, etc. I've never used ANT to build Java but there are probably
people on the newsgroup who have. The may be able to give you a more detail
description of how to setup a project so you can use both.
Michael
platform-cvs-dev-bounces@xxxxxxxxxxx wrote on 20/12/2006
04:38:41 AM:
> Hi guys,
> I'm sorry for the slight cross-post but I seem to have placed this
in
> the incorrect mailinglist first. I thought this was a problem with
> ant, but reading http://eclipsewiki.editme.com/CVSFaq I see that I'm
> not the only one with this problem and that the problem is likely
> because of CVS?? I haven't found any answers out there, though, so
> here goes:
>
> I love Eclipse's auto-completion and auto-compile/reporting of syntax
> errors. It saves me loads of time looking up in the API to see if
i.e
> the name for this function was .getSize(), .getLength() or simply
the
> variable .length.
>
> But, recently it has stopped working for me. I've checked out a
> project I'm working on through CVS that uses an ant build.xml
> file. So I've configured a builder to use it and set the targets I'd
> like for clean, auto-build and manual-build. But now when it is
> trying to auto-complete I get:
>
> Cannot perform operation
> This compilation unit is not on the build path of a Java project
>
> Also, if I write something that's totally bogus I don't get a nice
red
> line under it anymore.
> Also, the warnings and errors from the compile don't show up as a
red
> x by the line that has a problem, just in the ant output
>
> Please, could you point me in the right direction? I need to use ant
> for project compability, and a source control system like CVS, but
I
> love these functions in Eclipse and would not want to give them up.
>
> Cheers
>
> Nik
> _______________________________________________
> platform-cvs-dev mailing list
> platform-cvs-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/platform-cvs-dev