"cvs login" with IDEA 3.0 and CVSNT client
Hello all,
I've spent a while trying to set up IntelliJ IDEA 3.0 with CVS, where the
client I'm using is CVSNT. To be precise:
Client: Concurrent Versions System (CVSNT) 1.11.1.3 (Build 57h)
(client/server)
Server: Concurrent Versions System (CVSNT) 1.11.1.3 (Build 57h)
(client/server)
I connect to CVS using the "pserver" protocol. Unfortunately, this seems a
bit broken with Idea 3.0 on Windows, using CVSNT as the client. The only
way I seemed able to connect at first was by specifying the password in the
CVS root as follows:
:pserver:username:password@cvshost:d:/repository
When omitting the password, Idea either failed completely to connect to CVS,
or asked me repeatedly for the password, without ever succeeding to connect
me.
So I did some homework, after searching through docs, forums, etc. Here's
what I found, hopefully it'll help others work around the problem (until
Idea gets fixed to work with CVSNT):
The CVSNT client stores the password information in the registry, as stated
in:
http://www.cvsnt.org/cvs.html#SEC31
Scroll down through a page of text from the above link, and you'll find the
following text:
"The records are stored, by default, in the file '$HOME/.cvspass' (Unix) or
the Registry (NT)"
The registry entry:
HKEY_CURRENT_USER\Software\Cvsnt\cvspass
...contains one key/value pair, equivalent to the contents of the Unix
.cvspass file, for each active CVS server login. The key/value pair
disappears on logout.
As the the registry isn't tied to one DOS session or one application, the
following is possible:
1. Open IntelliJ
2. Setup a CVS Root, such as
Pserver
Host: cvshost
Username: toto
Rep.path: d:/repository
3. Go back to the "CVS Checkout" dialog in IntelliJ, click on the ellipsis
button to select a module, and it just complains.
4. Without closing IntelliJ, open a DOS prompt, and type:
> SET CVSROOT=:pserver:toto@cvshost:d/repository
> cvs login
Logging in ...
CVS password: ********
> cvs co -c
(list of modules appears here)
5. Go back to IntelliJ, without logging out of CVS in the DOS prompt, and
re-attempt step 3 (listing modules). Now, it Just Works...
So, I could manually log myself in/out of CVS before/after starting/stopping
IntelliJ, but it's a real shame to fail like this.
Maybe IntelliJ should try executing "cvs login" and "cvs logout" as
appropriate, instead of relying on .cvspass ?
- Chris
请先登录再写评论。
I'm not using CVSNT, but I am using the standard version. (Concurrent
Versions System (CVS) 1.10.5 (client)) connecting using pserver to a UNIX
host. This is working fine when I use the command line or Forte. I
recently downloaded the eval for IntelliJ, but I'm having trouble getting
CVS to work. It claims that I need to login, but there is nowhere in the
app to do so, nor is there somewhere to supply a password. I've tried using
environment variables (CVS_PASSFILE), logging in via the command line,
supplying my password in the CVS root as described below but to no avail.
Is this a known bug? Is there a work-around?
"Chris Brown" <brown2@reflexe.fr> wrote in message
news:at9qr1$hrl$1@is.intellij.net...
>
>
>
>
a
the
>
>
CVS,
connect
>
>
stated
>
>
the
>
or
>
>
>
>
>
>
>
>
>
>
>
>
>
starting/stopping
>
>
>
>
It seems that there were many differing bugs with various CVS clients (as
you can see by checking out the forums at
http://www.intellij.net/forums/ )... Most of them seem to have been
resolved, but the CVSNT problems aren't among them.
For your problem, I don't think that CVS_PASSFILE will help ; as I
understand it, it only helped with older builds of IntelliJ IDEA 3.0 (during
beta phase)... IntelliJ seems to create its own .cvspass file in the
~/.IntellijIdea/system folder (actually, it creates one such file per
project, in this folder, so it will have a filename including the project
name).
Have a look here, hopefully that'll help... I personally can't help
further, as apparently CVSNT doesn't use cvspass files at all (using the
Windows registry instead).
Having said that, I really find your problems unusual... if you specify
the password in the cvsroot (or username field, as in username:password),
then it shouldn't need to login...
- Chris
"Saul Rodriguez" <srodrigu@innovativeit.com> a ?crit dans le message de
news: atauvp$qu$1@is.intellij.net...
using
>
>
the
seems
only
Here's
the
ellipsis
and
>
>
Saul Rodriguez wrote:
Use Version 1.11.2, this one works for me.
Stefan
Saul Rodriguez wrote:
Use Version 1.11.2, this one works for me.
Stefan
I had the same problem with CVS 1.10.7 and IDEA 3.0 on W2K. I fixed it by copying the .cvspass file contents into C:\Document and Settings\\.IntelliJIdea\system\]]>_ipr*.cvspass.
Hi Chris,
I guess it is caused by the fact, that CVSNT stores the passwords in
the registry and IDEA in the .cvspass file.
Just an idea: open the DOS-box, go to your project and type
cvs login
Now CVSNT should store the password in the registry. When IDEA asks
for the password, you should be able to enter anything (because IDEA's
password is not connected to the CVSNT's password).
Good luck!
Tom