VcsManager.getActiveVcs() problem


Hello all (again),

I'm trying to write a plug-in which (as a part of the action) will check-in new
files to the VCS (in this case, CVS). I've struck a problem with getting the
active VCS for a project - it always seems to return null.

VsManager.getAllVcss() correctly returns the array of all VCSs installed (CVS,
SourceSafe, StarTeam), but even though the project is set to use CVS, it still
returns null.

Any hints as to what I'm doing wrong? Do I actually need to call setActiveVcs()
first?


I'm using IDEA EAP Build #693, and I've tried #804, but it does not help.



Regards,
Corey.

4 comments

Are you implementing AbstractVcs?

"Corey Yeatman" <corey.yeatman@fifthweb.net> wrote in message
news:b85ldn$228$1@is.intellij.net...
>

Hello all (again),

>

I'm trying to write a plug-in which (as a part of the action) will

check-in new

files to the VCS (in this case, CVS). I've struck a problem with getting

the

active VCS for a project - it always seems to return null.

>

VsManager.getAllVcss() correctly returns the array of all VCSs installed

(CVS,

SourceSafe, StarTeam), but even though the project is set to use CVS, it

still

returns null.

>

Any hints as to what I'm doing wrong? Do I actually need to call

setActiveVcs()

first?

>
>

I'm using IDEA EAP Build #693, and I've tried #804, but it does not help.

>
>
>

Regards,
Corey.

>


0


Er, no - I'm not trying to implement AbstractVcs to integrate IDEA with my own
VCS system; I'm trying to leverage the built-in integration to CVS which IDEA
already has. getAllVcss() seems to come back with the installed VCSs ok, but I
assumed that if the project was set up to use CVS, then getActiveVCs() would
return an AbstractVcs object for the CVS instance.

I noticed that there is a VcsManager.setActiveVcs(), but I didn't think I would
have to call this if the project is set to use CVS already.


Am I trying to use this in the wrong way?


Regards,
Corey.


Brad Lane wrote:

Are you implementing AbstractVcs?

"Corey Yeatman" <corey.yeatman@fifthweb.net> wrote in message
news:b85ldn$228$1@is.intellij.net...

>>Hello all (again),
>>
>>I'm trying to write a plug-in which (as a part of the action) will


check-in new

>>files to the VCS (in this case, CVS). I've struck a problem with getting


the

>>active VCS for a project - it always seems to return null.
>>
>>VsManager.getAllVcss() correctly returns the array of all VCSs installed


(CVS,

>>SourceSafe, StarTeam), but even though the project is set to use CVS, it


still

>>returns null.
>>
>>Any hints as to what I'm doing wrong? Do I actually need to call


setActiveVcs()

>>first?
>>
>>
>>I'm using IDEA EAP Build #693, and I've tried #804, but it does not help.
>>
>>
>>
>>Regards,
>>Corey.
>>



0


Anyone else with any ideas why VcsManager.getInstance(project).getActiveVcs()
might return null, even when the project is set to use CVS? I'm struggling with
this ...


Regards,
Corey.



Brad Lane wrote:

Are you implementing AbstractVcs?

"Corey Yeatman" <corey.yeatman@fifthweb.net> wrote in message
news:b85ldn$228$1@is.intellij.net...

>>Hello all (again),
>>
>>I'm trying to write a plug-in which (as a part of the action) will


check-in new

>>files to the VCS (in this case, CVS). I've struck a problem with getting


the

>>active VCS for a project - it always seems to return null.
>>
>>VsManager.getAllVcss() correctly returns the array of all VCSs installed


(CVS,

>>SourceSafe, StarTeam), but even though the project is set to use CVS, it


still

>>returns null.
>>
>>Any hints as to what I'm doing wrong? Do I actually need to call


setActiveVcs()

>>first?
>>
>>
>>I'm using IDEA EAP Build #693, and I've tried #804, but it does not help.
>>
>>
>>
>>Regards,
>>Corey.
>>



0

There was this bug in Aurora and Ariadna. It is fixed in build 815.

0

Please sign in to leave a comment.