This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 52353 - 'cvs' unrecognized command
Summary: 'cvs' unrecognized command
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2004-12-13 22:13 UTC by Paul Byrne
Modified: 2005-01-25 09:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Byrne 2004-12-13 22:13:23 UTC
On Windows the IDE CVS seems to get confused and
regularly ends up in a state where all cvs
commands produce the following error

'"cvs"' is not recognized as an internal or
external command,
operable program or batch file.


The only way I have found to recover from this is
to  blow aways the repository and checkout the
files again. When it will work for a while before
getting back into the broken state.

I've observed this with rc1 and rc2.

I originally assumed the bug was caused by my use
of cygwin (where I used to do some cvs commands)
but recently I stopped using cvs from cygwin and I
still see the problem.
Comment 1 Peter Pis 2004-12-14 09:13:39 UTC
I can reproduce this error if I setup some invalid value to "CVS
executable" field. Please can you verify whether your "CVS executable"
didn't change in Customizer of registered versioned directory? 
Comment 2 Martin Entlicher 2004-12-14 10:36:06 UTC
Paul, you apparenty do not have the cvs.exe in PATH. Therefore you
need to specify the full path to cvs.exe in the Customizer. Please
provide how do you have the versioned directory customized. Also did
you do an import from 4.0beta2? If yes, this can be a duplicate of
issue #52026.
Comment 3 Paul Byrne 2004-12-14 18:32:47 UTC
OK I see the problem, the cvs client was set to command-line rather
than built-in. But I swear I never changed this.

Some of these projects were created in older version of NB, some are
newly created, with some I did CVS co in cygwin. 

I've just spotted the main problem, when you use the VCS Manager to
add another version control directory to the system it defaults to Use
command-line. At the very least we should have the IDE check that it
can find cvs in the command line before selecting this as the default.
Just to confuse the user when they perform a Global CVS Checkout from
the versioning menu this defaults to using the built in cvs command. 

Perhaps we can add the check in 4.1 so that the default selection 
Comment 4 Martin Entlicher 2004-12-15 10:55:45 UTC
> VCS Manager defaults to use command-line

This should have been already fixed, but unfortunately the fix was not
sufficient - see issue #43939.

> Perhaps we can add the check in 4.1 so that the default selection

Yes, that's a good idea. But that's not P1 defect. Changing to P3.
Comment 5 _ pkuzel 2005-01-24 16:45:15 UTC
cmd %pointed_path -version

putput will be tested on:

      // cvshome.org client
      if (line.indexOf("CVS") != -1) foundCVS = true;
      if (line.indexOf("1.11") != -1) foundVersion = true;
      if (line.indexOf("1.12") != -1) foundVersion = true;
Comment 6 _ pkuzel 2005-01-25 09:30:58 UTC
FIXED in

Checking in
vcscore/src/org/netbeans/modules/vcscore/util/VariableInputDescriptor.java;
/cvs/vcscore/src/org/netbeans/modules/vcscore/util/VariableInputDescriptor.java,v
 <--  VariableInputDescriptor.java
new revision: 1.35; previous revision: 1.34
done
Checking in
vcscore/src/org/netbeans/modules/vcscore/util/VariableInputValidator.java;
/cvs/vcscore/src/org/netbeans/modules/vcscore/util/VariableInputValidator.java,v
 <--  VariableInputValidator.java
new revision: 1.7; previous revision: 1.6
done
Processing log script arguments...
More commits to come...
Checking in vcscore/www/doc/VCSUtilities.html;
/cvs/vcscore/www/doc/VCSUtilities.html,v  <--  VCSUtilities.html
new revision: 1.16; previous revision: 1.15
done
Processing log script arguments...
More commits to come...
Checking in
vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/commands/Bundle.properties;
/cvs/vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/commands/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.12; previous revision: 1.11
done
RCS file:
/cvs/vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/commands/Validators.java,v
done
Checking in
vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/commands/Validators.java;
/cvs/vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/commands/Validators.java,v
 <--  Validators.java
initial revision: 1.1
done
Processing log script arguments...
More commits to come...
Checking in
vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/config/cvs.xml;
/cvs/vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/config/cvs.xml,v
 <--  cvs.xml
new revision: 1.125; previous revision: 1.124
done