Bug 46655 - [FAQ 2.1.3] Eclipse 2.1.x and new CVS versions
Summary: [FAQ 2.1.3] Eclipse 2.1.x and new CVS versions
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 2.1   Edit
Hardware: PC All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: platform-cvs-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: faq, readme
Depends on:
Blocks:
 
Reported: 2003-11-14 05:09 EST by Kenneth Reinhardt CLA
Modified: 2006-08-10 11:08 EDT (History)
7 users (show)

See Also:


Attachments
zipped binary patch for Eclipse 1.0.2 (WSAD 4.0.3) (250.66 KB, multipart/x-zip)
2004-01-13 14:05 EST, Michael Wenig CLA
no flags Details
zipped source patch for Eclipse 1.0.2 (WSAD 4.0.3) (107.46 KB, multipart/x-zip)
2004-01-13 14:06 EST, Michael Wenig CLA
no flags Details
zipped binary patch (?) for Eclipse 2.0.3 (WSAD 5.0.1) (299.78 KB, multipart/x-zip)
2004-01-13 14:06 EST, Michael Wenig CLA
no flags Details
zipped source patch for Eclipse 2.0.3 (WSAD 5.0.1) (777.13 KB, multipart/x-zip)
2004-01-13 14:07 EST, Michael Wenig CLA
no flags Details
zipped binary patch for Eclipse 2.1.1/2.1.2 (WSAD 5.1) (377.34 KB, multipart/x-zip)
2004-01-13 14:07 EST, Michael Wenig CLA
no flags Details
zipped source-patch for Eclipse 2.1.1/2.1.2 (WSAD 5.1) (315.61 KB, multipart/x-zip)
2004-01-13 14:08 EST, Michael Wenig CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Reinhardt CLA 2003-11-14 05:09:23 EST
When upgrading the CVS server ( http://www.cvshome.org/ ) from 1.11.5 to 1.11.9
Eclipse is no longer able to browse the CVS repository.

Other CVS tools I've tried have worked fine with the new 1.11.9 version of CVS.
Comment 1 Michael Wenig CLA 2004-01-08 06:17:33 EST
Hi,

I also found this problem and also found out the reason:

cvs now provides "nicer" messages.

previously the response from the server was:
   cvs server: New directory 'xy' -- ignored

now it is
   cvs update: New directory 'xy' -- ignored

It seems that the plugin does not only parse for cvs ... but for "cvs server".
So it doesn't find any strings like that and does not show anything.

The plugin should be changed.

A workaround is to manually put the required pathes in the CVSROOT/modules file.

Hope this helps for a quickly fix.
Comment 2 Michael Wenig CLA 2004-01-13 14:05:15 EST
Created attachment 7418 [details]
zipped binary patch for Eclipse 1.0.2 (WSAD 4.0.3)

Extract and replace the plugin
Comment 3 Michael Wenig CLA 2004-01-13 14:06:13 EST
Created attachment 7419 [details]
zipped source patch for Eclipse 1.0.2 (WSAD 4.0.3)
Comment 4 Michael Wenig CLA 2004-01-13 14:06:41 EST
Created attachment 7420 [details]
zipped binary patch (?) for Eclipse 2.0.3 (WSAD 5.0.1)
Comment 5 Michael Wenig CLA 2004-01-13 14:07:15 EST
Created attachment 7421 [details]
zipped source patch for Eclipse 2.0.3 (WSAD 5.0.1)
Comment 6 Michael Wenig CLA 2004-01-13 14:07:56 EST
Created attachment 7422 [details]
zipped binary patch for Eclipse 2.1.1/2.1.2 (WSAD 5.1)
Comment 7 Michael Wenig CLA 2004-01-13 14:08:33 EST
Created attachment 7423 [details]
zipped source-patch for Eclipse 2.1.1/2.1.2 (WSAD 5.1)
Comment 8 Michael Wenig CLA 2004-01-13 14:11:53 EST
I patched some plugins to accept all "cvs server", "cvs update", "cvs 
checkout", ... server-strings.

Please put them in the development-tree (I do not have external cvs-access from 
this site)

I renamed the jar-files to xy-ww1.jar so that we are able to determine if a 
system is patched and with which patch-state) - if there is a better way to do 
that (except incresing the version-number which coulkd lead to conflicts whith 
the actual eclipse-development) please inform me.

Please feel free to mail any suggestions/bugs/questions.

I hope this helps

Michael Wenig
Comment 9 Michael Wenig CLA 2004-01-13 14:14:42 EST
Sorry - I forgot:

I tested whith cvs 1.11.5 running on Sun Solaris and cvs 1.11.10 running on Sun 
Solaris, 
Eclipse 2.1.2, WSAD 4.0.3, WSAD 5.0.1, WSAD 5.1 on Windows NT 4.0
Comment 10 taab CLA 2004-02-23 14:48:53 EST
and the patch for Eclipse 3M7 ???
Comment 11 Michael Wenig CLA 2004-02-24 01:45:00 EST
Eclipse 3.0 M7 does not need a patch. Since M5 both protocols (new and old) are
supported
Comment 12 H Pearlmutter CLA 2004-03-08 15:22:10 EST
After applying "binary patch for Eclipse 2.1.1/2.1.2 (WSAD 5.1)", the same 
behavior persists -- 

Unable to expand HEAD, Branches, or Versions. Upon clicking the "+", the 
hourglass cursor appears for a few seconds, the "+" disappears, but no 
expansion happens; no subnodes are shown. 

Refresh View and Refresh Branches both cause all the "+" markers to return. 
Refresh Branches pops up a"Progress Information" alert with progress meter and 
quickly replaces it with the "Refresh Branches" dialog ("Select Projects" at 
top, "This wizard helps discover the tags associate with one or more remote 
projects. Check the projects whose tags you wish to refresh"). Checking one, 
several, or all of the checkboxes, and then clicking finish consistently 
produces the same result:  progress meter within the wizard and 
alternating "authenticating <name>" and "processing <name>" for each of the 
checked projects. So the connection to the remote CVS clearly is happening, and 
the list of remote module is clearly being retreived, and the tool is claiming 
to do authentication and processing on each of the selected modules. BUT none 
of this yields children for the HEAD, Branches, or Versions nodes --- so there 
is no way to accomplish what is recommended in the help system under the 
topic "Discovering branch and version tags":

"Expand HEAD and select the root folder whose tags are to be discovered. 
From the pop-up menu for the CVS Repositories view, select Configure Branches 
and Versions. The Tag Configuration dialog will open. "

This in turn prevents "Configure Branches and Versions" -- which is the work 
around suggested in:


 "Also, refreshing the tags for a module may not work properly because this 
feature requires the use of an auto-refresh file (i.e., Eclipse has to know 
from which file in the module to obtain the tags)."
 "If your modules are not appearing in the version or branch categories, 
perform a "Configure Branches and Versions" on the module and assign the tags 
to the module and/or set the auto-refresh file. "
http://download2.eclipse.org/downloads/drops/S-3.0M2-
200307181617/buildnotes/buildnotes_cvs.html
http://mirror.island.liu.se/eclipse/downloads/drops/S-M4-200212181304/eclipse-
news-M4.html
Comment 13 Michael Wenig CLA 2004-03-09 02:31:39 EST
Which version of WSAD/Eclipse are you using?

Could you please check if you used the correct location
(<wsad-inst>/plugins/org.eclipse.team.cvs.core_2.1.1) (check if there is a
cvs-ww1.jar and it is mentioned in the plugin.xml)

We have the patch running on about 200 Workstations with WSAD 5.1 and Eclipse
2.1.2 and have no problems - so I think there must be an error at your installation
Comment 14 H Pearlmutter CLA 2004-03-09 04:41:09 EST
I uninstalled my entire 2.1.2, did a fresh install of 2.1.1, copied your patch 
over, and tested CVS access before doing anything else -- and it worked 
flawlessly!

Then i did an online update to 2.1.2, and it still worked fine.

These comments may help diagnose if anybody reports similar symptoms in the 
future.... I haven't migrated my workspace over yet. I've erased the 
old .metadata from the old workspace, thinking that might be the source of the 
problems. I also have not begun using -data for launching again; I'm just 
sticking with the autogenerated workspace for now. I did import 1 of my old 
projects, with no problems, so the best way forward will probably be to import 
1 project at a time.

All in all, the culprit was probably something in the old .metadata.

Thanks for your help.

Regards,
Howard Pearlmutter
Comment 15 Craig Moynes CLA 2004-05-12 14:07:33 EDT
WSAD 5.1, CVS 1.11.14.
Everything works beautifully, except when I try to view the Java Source folder
in the Versions view, under my New_Version_test version, I get the error
'ProjectX: cvs[update aborted]: no such tag New_Version_test '.

Is this because of additional messages that need to be converted?
Comment 16 Michael Wenig CLA 2004-05-13 03:44:19 EDT
To Craig Moynes:

I think this is not a problem with the plugin (I checked this using WSAD 5.1,
CVS 1.11.13 it and it works).

As the message says do you try to get information about a tag which does not
exist (at least under the actual directory you are working).

2 possibilities:

1. Could it be that your tags list is out of date? try to do a refresh:
(right click on a module and use "Configure Branches and Versions")

2. There are problems with this tag - e.g. not all sources has been tagged.
Please try to use another tag or create a new tag.

Regards 

Michael
Comment 17 Craig Moynes CLA 2004-05-13 08:29:10 EDT
To Michael Wenig:

Both tags I have created are new.  I right click on the source folder
(ProjectXWeb), select Tag as Version... and choose a new name.  I believe that
should get everything in the whole folder.

What is even stranger is if I run 'cvs -r New_Version_test checkout' on our
source server (working off memory for the command) then everything gets checked
out correctly, including the Java Source folder.
Comment 18 Michael Valenta CLA 2004-05-13 09:48:24 EDT
Comment 15 does reveal another case of a change in CVS that is not recognized 
by Eclipse. It only surfaces when browsing a tag in a folder that has no files 
in it.
Comment 19 Michael Valenta CLA 2004-05-14 09:38:15 EDT
Comment 15 has been fixed in 3.0. The workaround in 2.1.3 is to perform a 
Team>Update on the project.
Comment 20 Michael Valenta CLA 2004-05-14 13:20:18 EDT
FAQ Updated. Leaving bug open to provide access to patches
Comment 21 Brice Ruth CLA 2004-06-14 14:50:34 EDT
I'm seeing this behaviour under 3.0M9, with CVS-nserver, 1.11.1.4. Eclipse/WSAD
versions 2.x work just fine (just purchased XDE Developer for Java, that works
fine), Eclipse versions prior to 3.0M6 and prior work fine - I started seeing
the problem with M8, but I skipped M7, so it may have started there.

Not sure what the problem is, but I'm seeing exactly what's described by Comment
#12 in this bug.
Comment 22 shenty CLA 2005-01-26 22:18:55 EST
 I had a similar problem using WSAD 5.1.2 (Eclipse 2.1.3) and CVSNT 2.0.58x.

I tried the Eclipse patches on this bug report,
https://bugs.eclipse.org/bugs/long_list.cgi?buglist=46655
but since they were for 2.1.2, I had no luck.

After turning on the debug console for the core cvs plugins according to these
intructions,
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-vcm-home/docs/online/cvs_features2.0/cvs-faq.html#misc_0
I was able to confirm the responses from CVSNT were quite different from other
CVS servers (eg. apache.org) which expanded the HEAD tree correctly.

I finally found an earlier version of CVSNT here,
http://www.cvsnt.org/archive/
and installed the previous stable version 2.0.41a.

Everything works fine now, with these settings in CVSNT:
[Repositories tab]
- no repository prefix
[Advanced tab]
- pretend to be a Unix CVS version

I configured WSAD to use the pserver protocol for expediency, in spite of its
security flaws.

SHenty
Comment 23 Mark Townsend CLA 2005-09-27 19:18:36 EDT
Can someone change the mimetypes on the attachments to something other than
text/plain.

Thanks.
Comment 24 Michael Valenta CLA 2006-06-15 16:14:10 EDT
The FAQ has been updated to point to the attachements on this bug. 
Comment 25 Adrian Bates CLA 2006-08-10 11:08:46 EDT
I have this same problem using WSAD 5.1.2 & CVSNT 2.5.03.

I have tried apply the fix:
    zipped source-patch for Eclipse 2.1.1/2.1.2 (WSAD 5.1)
as this seemed to the closest to the version I have but it causes even worse problems - the cvs location view will not open any longer. If you switch to that perspective an error occurs and the view closes.

Anyone got any suggestions.

Thanks in advance,
Adrian