Share project in Eclipse

If you are having a problem using Vault, post a message here.
Post Reply
GrahamLabdon
Posts: 58
Joined: Tue Jan 09, 2007 10:52 am
Location: UK

Share project in Eclipse

Post by GrahamLabdon » Fri Feb 08, 2013 6:35 am

Hi
I am trying to share a project from Eclipse but get an error
'Could not resources due to null' see attached
I have also attached the vault log file

Please can you explain why I am getting this error

Thanks
You do not have the required permissions to view the files attached to this post.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Share project in Eclipse

Post by Beth » Fri Feb 08, 2013 11:33 am

Are you on Windows, Mac, or Linux?

I couldn't seem to read the VaultError.txt file. What was that created in?

Do you have a Vault GUI client installed on the same machine? If so, open it up and take a look at your pending change set tab at the bottom. Do you see any deletes sitting in there? If so, can you commit them?
Beth Kieler
SourceGear Technical Support

GrahamLabdon
Posts: 58
Joined: Tue Jan 09, 2007 10:52 am
Location: UK

Re: Share project in Eclipse

Post by GrahamLabdon » Mon Feb 11, 2013 2:06 am

Hi
OS is Windows 7
There are no pending deletes - I created a new repository and still cannot share the project in Eclipse
The VaultError.txt file is a word document - if you rename it docx you should be able to read it

This error seems to have manifested itself since upgrading to v 6.1

When I try to share the project I can see that a folder for the project has been created in the Vault Client.
If I manually add the files Eclipse is now bound to the project - i.e. I can import the project from Eclipse. However, if I edit files in eclipse they show as edited in the Vault Client, but on check in they are marked as 'Needs Merge' - see attached (word doc saved as .txt)

Thanks
You do not have the required permissions to view the files attached to this post.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Share project in Eclipse

Post by Beth » Mon Feb 11, 2013 9:54 am

1) Is anyone else working on the code and checking in changes? If so, that is where the needs merge is coming from.

2) If you're alone and have a needs merge, you might have Vault and Eclipse using two different baseline locations.

You can get the statuses to line up between Vault and Eclipse if you set each of them to place the baselines in the working folder. In Vault that is done in the Tools - Options - Local Files - Cache Location. In Eclipse you go to Window - Preferences - VaultPro - Cache Location. Once both are set, you can perform a Get with the option "Do not overwrite/Merge later" in Vault and then a Get Latest in Eclipse and they will line themselves up.

Having them both place their baselines in the working folder works better normally than other locations.
Beth Kieler
SourceGear Technical Support

GrahamLabdon
Posts: 58
Joined: Tue Jan 09, 2007 10:52 am
Location: UK

Re: Share project in Eclipse

Post by GrahamLabdon » Mon Feb 11, 2013 10:20 am

Hi
Thanks for the reply
Things are still not working correctly and I think this must stem from the face that we are unable to add an eclipse project to vault
I set up a test repository and a new eclipse project but still get the same error message -

'Could not resources due to null'

What else can you suggest that I try

Thanks

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Share project in Eclipse

Post by Beth » Mon Feb 11, 2013 10:27 am

I would try a new workspace.

Does this happen just on one machine or all machines?

What type of projects are you working with?
Beth Kieler
SourceGear Technical Support

GrahamLabdon
Posts: 58
Joined: Tue Jan 09, 2007 10:52 am
Location: UK

Re: Share project in Eclipse

Post by GrahamLabdon » Mon Feb 11, 2013 10:39 am

Hi
I have tried with different workspaces and different users
The project we are trying to add is a simple hello world c++ project compiled with the mingw compiler

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Share project in Eclipse

Post by Beth » Mon Feb 11, 2013 10:41 am

Could you send an email to support at sourcegear.com (attn: Beth) with with your hello world program? I'll get the C++ version of Eclipse set up in the meantime.
Beth Kieler
SourceGear Technical Support

GrahamLabdon
Posts: 58
Joined: Tue Jan 09, 2007 10:52 am
Location: UK

Re: Share project in Eclipse

Post by GrahamLabdon » Mon Feb 11, 2013 10:45 am

email sent

GrahamLabdon
Posts: 58
Joined: Tue Jan 09, 2007 10:52 am
Location: UK

Re: Share project in Eclipse

Post by GrahamLabdon » Wed Feb 13, 2013 3:58 am

I have got to the bottom of this problem!

On our server I have set the file exclusions to include Makefile -

*.clw; *.config; *.dca; *.Debug; *.dll; *.dsw; *.exe; *.hlp; *.incr; *.ncb; *.opt; *.pdb; *.plg; *.Release; *.scc; *.suo; *.user; *.vbw; *.webuser; Makefile

This causes a crash in the Eclipse Vault Pro plugin; although not in the VS Studio plugin

It seems that the plugin expects a string in the form *.<ext>

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Share project in Eclipse

Post by Beth » Wed Feb 13, 2013 8:22 am

Great catch!! That does fit with what we discussed offline.
Beth Kieler
SourceGear Technical Support

Post Reply