General developer forum

 
 
Picture of Dean Leggo
Programming with Eclipse
 

I've just installed Fedora 18 and it came installed with Eclipse 4.2.1. I'll like to set it up for Moodle development but I don't know what plugin to install?

PHPEclipse looks old and they say there's little development. Zend Studio says their version comes with Eclipse Indigo but I have Juno. What should I use? or should I just get NetBeans?

 
Average of ratings: -
Picture of Michael Aherne
Re: Programming with Eclipse
Group DevelopersGroup Particularly helpful Moodlers

You'd be best to use PDT (PHP Development Tools) for development. They're part of the standard available plugins for Juno, so you should be able to add them in the "Install New Software" menu.

 
Average of ratings: -
Picture of sam marshall
Re: Programming with Eclipse
Group DevelopersGroup Particularly helpful MoodlersGroup Testers

And in case it doesn't work, Google says:

http://geckoblue.livejournal.com/275936.html

(We're using Eclipse PDT here but have not moved to 4.x yet.)

--sam

 
Average of ratings:Useful (1)
Picture of Jitendra Gaur
Re: Programming with Eclipse
 

For Eclipse you need to install PDT plugin for PHP.

 
Average of ratings: -
Picture of Dean Leggo
Re: Programming with Eclipse
 

Thank you to everyone for the help. smile

I was following the instructions on the Moodle docs. Setting up Eclipse. Because I was not 100% sure on the programs they offered I went to the Eclipse Marketplace, searched 'php' and it gave me 68 results!

 

The whole Setting up Eclipse needs to be re-done.

  • Installing plugins need to change to PDT
  • General and PHP Settings is for PHPeclipse
  • SSH2, CVS Settings and Checking out code has changed to Git

I'll firstly learn how Git works before I try to add it to Eclipse. Branches everywhere tongueout

I'll try re-writing the 'Installing plugins' section tomorrow. I don't know enough to write anything else.

 
Average of ratings: -
Picture of Joseph Rézeau
Re: Programming with Eclipse
Group DevelopersGroup Particularly helpful MoodlersGroup TestersGroup Translators

Hi Dean,

I've been using ECLIPSE for quite a few years now and find it quite user-friendly for developing PHP projects (local host under Windows). When Moodle was updatable through its CVS repository, I used to do my updates from within the ECLIPSE environment.

Now that Moodle has switched to a GITHUB repository, I no longer do my Moodle updates from ECLIPSE, because as far as I understand there is no stable GIT plugin available in ECLIPSE. Or there wasn't one last time I tried.

Joseph

 
Average of ratings:Useful (1)
Picture of David Bezemer
Re: Programming with Eclipse
 

An official plugin has already been released for Eclipse, available at http://www.eclipse.org/egit/

developed by GitHub and various other Eclipse pro's I havent had any issues with this plugin

 
Average of ratings:Useful (2)
Sketch...
Re: Programming with Eclipse
Group Particularly helpful Moodlers

Joseph, what do you use now in place of Eclipse?

 
Average of ratings: -
Picture of Joseph Rézeau
Re: Programming with Eclipse
 
Average of ratings:Useful (1)
Picture of Michael Aherne
Re: Programming with Eclipse
Group DevelopersGroup Particularly helpful Moodlers

You're right about that page. It used to be an extremely useful resource, but it has become quite out of date. I'd be happy to help to try to update it.

 
Average of ratings:Useful (1)
Picture of Marcus Green
Re: Programming with Eclipse
Group Particularly helpful Moodlers

I prefer Netbeans to eclipse but I find that xdebug is wildly less stable under Netbeans. This appears to be true for both Windows and Ubuntu Linux.

MG

 
Average of ratings: -
Picture of Ankit Agarwal
Re: Programming with Eclipse
Group DevelopersGroup Moodle Course Creator Certificate holdersGroup Moodle HQGroup Particularly helpful MoodlersGroup Testers

For git I normally use terminal, there is something called Egit for eclipse, but I prefer a terminal instead. If you want you can integrate a terminal window with your eclipse, by installing something called a "local terminal" plugin.

There are quite a few settings that you might need to tweak to get your editor ready (for example replace spaces instead of tabs for indenting lines) etc.  But personally I use Eclipse, and never had any issues with it.

I will also recomend increasing the default memory limits which are very low with most editors.

Thanks

 
Average of ratings:Useful (1)
Picture of Dean Leggo
Re: Programming with Eclipse
 

@Michael_A I've added a little bit to the Eclipse page and I think it would be good if everything is re-written but I don't know what would be important.

I haven't touched Eclipse since I installed PDT because I'm having trouble setting up a server (LAMP) on my laptop to test what I've coded. (I'll make another discussion)

I'll just use git and vim in the terminal until I'm all set up and comfortable with it all. Then I'll try Eclipse and the git plugin.

 
Average of ratings: -