Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   using eclipse (http://www.chiefdelphi.com/forums/showthread.php?t=37736)

prograid 28-11-2005 17:45

Re: using eclipse
 
Quote:

Originally Posted by coastertux
Whats the best way for different team members to work on the same copy of the code using CVS. Will it merge the changes all together? What is the method each person goes about doing this? I already have the original code uploaded to the CVS server.

Well, first sorry about the problem with the plug-in.

To answer your question:

If you got to file new projct, one of the choices is checkout from CVS.

Check out your code (You'll have to give Eclipse some information about your CVS account, e.g. it's URL, etc), then have someone else do the same thing (with a different user name.)

Tell the other person to make a minor change in their copy of the code. For example, have them add a blank comment line. Then have them check it back in. I believe that if you right click on the project, there will be a selection to check in project.

Then make a change in your copy of the projcect. Check it back in. Eclipse should tell you that the code has been modified since you checked it out and ask you to merge the changes. It will note what files have been modified, and you should be able to compare the files side by side. Eclipse will even show you what lines are different from your's.

Once you have finished merging the changes, you can check the newly revised code back in. In addition to editing the code, I believe that you can also add notes to each revision stating what you have done, so it's easier for other people to know what you've done. (I know this exists in Subversion, I'm not sure about CVS, I haven't used it too often.)

If any of your team member's can't run Eclipse because they have an old computer that won't run a huge Java app, they can use a standalone CVS client like TortoiseCVS.

Good luck.

Astronouth7303 30-11-2005 17:11

Re: using eclipse
 
Quote:

Originally Posted by coastertux
Whats the best way for different team members to work on the same copy of the code using CVS?

Have several people check out the code, and commit changes as needed.

Quote:

Originally Posted by coastertux
Will it merge the changes all together? What is the method each person goes about doing this? I already have the original code uploaded to the CVS server.

First of all, I'm pretty sure this kind of thing is out on the net.

If there is a conflict in files when you commit, CVS will first try to merge the changes (using simple algorithms). Basically, if you edited the beginning and someone else the end, CVS can merge that.

If CVS can't merge it automatically, you will have to do it manually. It's not difficult in the age of graphical diff tools.

Bryce Yarbrough 02-12-2005 01:34

Re: using eclipse
 
I am the Lead Programmer on my Team and i need help. That does not occur very often. lol. so here goes nothing:

Ok... I am running on a Powerbook G4.. yes it is a mac. Running Tiger.. IF ANYONE knows how to get the eclipse plugin working for the Eclipse Versoin on mac I'd be UBER happy!!! :D It was funny when i came upon this thread because i have been using Eclipse for about a year doing Java Development on it and never thought of using it to code for FIRST. BUT now that i know it can be done... i want to accomplish it on the mac. THERE is a GCC GNU compiler installed on mac.. comes with it.. just how do i link it and set up the plug in for it. OR is there some different route i should be taking to program the robot with a mac other then with eclipse? ANY input would be MUCHO appriciated!!!

Bryce
Team 589
Falk0ns

Ryan M. 02-12-2005 14:27

Re: using eclipse
 
I can't be sure, but the Linux version of the plugin should work fine, as it isn't compiled for a certain platform. Give it a try... granted, you'll also have to setup MCC18 in /opt/mcc18.

--EDIT--
This may help you with MCC18 setup.

StevenB 31-12-2005 21:46

Re: using eclipse
 
First, I want to say thanks for all of your work on this. I'll be glad to be rid of MPLAB.
I haven't quite got Eclipse working yet, though...
When I try to compile, I get this error:
Code:

Build error
(Exec error:Launching failed)

I'm guessing it can't launch mcc18. I am running this on windows XP, and mcc18 is in C:\mcc18\bin. I can compile projects in MPLAB, so the compiler itself is ok. Any suggestions?

BradAMiller 01-01-2006 00:10

Re: using eclipse
 
You are correct. Make sure that the path to the mcc18 bin directory is set in your system or user path variable. On XP you can set the path in the System Properties Dialog (right-click properties on My Computer). Then add it to the path in the User variables section. It should be something like:
c:\mcc18\bin; ... then the rest of the stuff that was there.

prograid 01-01-2006 22:05

Re: using eclipse
 
Quote:

Originally Posted by StevenB
First, I want to say thanks for all of your work on this. I'll be glad to be rid of MPLAB.
I haven't quite got Eclipse working yet, though...
When I try to compile, I get this error:
Code:

Build error
(Exec error:Launching failed)

I'm guessing it can't launch mcc18. I am running this on windows XP, and mcc18 is in C:\mcc18\bin. I can compile projects in MPLAB, so the compiler itself is ok. Any suggestions?

Actually, I don't think it's mcc18. It's mingw32-make. Have you installed MinGW Make or Cygwin? I'd suggest that you read the white paper that I've posted, but don't use the plug-in included in that. It has installation instructions along with instructions on using basic features.

If you don't know what MinGW or Cygwin are I'd suggest you install MinGW make.
Downlad the installation program and install it.
Then follow BradAMiller's instructions, but instead of adding C:\mcc18\bin (which should be there already if you did the default installation) add C:\MinGW\bin.

Feel free to PM me or email me if you have any other questions.

Astronouth7303 02-01-2006 13:20

Re: using eclipse
 
Note that even if you install Cygwin (MinGW does munging of flags like /w), you may not have mingw32-make.

Note that if the plugin uses the flag in the form of -w instead, then you're safe.


All times are GMT -5. The time now is 07:58.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi