It is possible that there is something different in the Solaris build of
1.11.2. If you want to find out for sure, you can perform the following
steps.
1) Create a file named ".options" in you eclipse directory (the
directory that contains the executable) that contains the following 2
lines that enable CVS debugging.
org.eclipse.team.cvs.core/debug=true
org.eclipse.team.cvs.core/cvsprotocol=true
2) Start Eclipse with the following parameters tailored to you local
setup (The below example is for windows). The important aspects are the
use of java.exe instead of javaw.exe and the inclusion of the -debug and
-consolelog options. These will cause the debug console to be visible
and for debugging output to appear in the console.
C:\eclipse\eclipse.exe
-vm C:\jre\bin\java.exe
-data C:\eclipse\workspace
-debug
-consolelog
3) Inside Eclipse, create your repo location and expand it in the
repositories view. The CVS command traffic in the debug console should
contains an invocation of the update command that looks something like
(this is output from dev.eclipse.org):
CMD> cvs -n update -d "."
...
update
E cvs server: Updating .
E cvs server: New directory `CVSROOT' -- ignored
E cvs server: New directory `jdt-core-home' -- ignored
E cvs server: New directory `jdt-debug-home' -- ignored
...
From you previous post, it looked like your server was outputing "-f
server" instead of "cvs server". If this is the case, please open a bug
report against Platform VCM with the server version and debug output
included.
Michael
Terence wrote:
Hi Michael,
I am using the latest version of the server from http://www.cvshome.org
It is version 1.11.2 (running on Solaris).
Our sys-admin built and installed it and he just used the vanilla
options as far as I know. (I'll double check that). He knows about as
much as I do about CVS.
I have successfully connected to the eclipse CVS repository and I am
able to browse the branches etc. So no problem there.
Michael Valenta wrote:
Terence,
My guess is that you are using a server that is providing modified
text output. The reason I suspect this is because of the output you
included below: "-f server: lock failed - giving up". The usual
server output is "cvs-server: lock failed - giving up". The
Repository view makes use of such text messages to populate the
Repositories view. What server version are you you using and has it
been tailored in some manner?
One thing you can try which will indicate that it is the server is to
create an anonymous connection to dev.eclipse.org (a special menu
item is available in the context menu of the Repositories view for
doing this) and expand HEAD.
Also, you can read the doc that is included with Eclipse for a
description of project sharing and synchronizing;-)
Michael
Terence wrote:
OK, added a project and then right clicked on it and did a "Team >
Share project..."
Then I added it to my CVS reposititory and gave it a new module name.
Why does it always say that the "module exists" even when I've just
created it and it cirtainly did not exist. Then it asks me to
synchronise.
At this point I don't know what the hell is going on but I press
"yes" anyway (otherwise it appears to do nothing and then takes me
back a step)
It then asks me to select a tag. I only have 2 choices - "head", and
"branches". I choose "head".
It does some stuff and presto! I have a new panel in my perespecive
"syncronize - outgoing mode". Not sure what that is but can guess.
This is the second project I'm trying this with because the first
one did nothing. So when playing around with the right-click menu, I
figure you have to do a "commit" ot soemthing. So when I do, it says
I need to add it first, so I say "yes" at which point it gives me
the following error.
"-f server: failed to create lock directory for
'...path/cvs/cvs-test/CVStest'(...path/cvs/cvs-test/CVStest/#cvs.lock):
No such file or directory"
"-f server: lock failed - giving up"
"-f [server aborted]: lock failed - giving up"
Then I right click on the root project (in the "structure compare"
window in the "Syncronize" panel) and select "add to version
control". It briefly pops up a progress bar and returns. Then I
click on the root again and say "commit..." then eclipse returns the
same error from the CVS server as mentioned above.
Of course, when I go to my CVS perspective and try to expand the
HEAD under said repository, I don't get a thing - same as before.
Any help would be appreciated.
PS.
I'm really keen to get this working because I've just introduced CVS
to our development team and they are looking to me for advice on how
to use it. I'm still learning it myself (the blind leading the blind).