Difference: EclipseConfiguration (1 vs. 26)

Revision 262012-07-12 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 21 to 21
  I suggest to take the latest version of the JRE from http://java.com (at least 1.6.0.10). You can chose any kind of installation, just remember if you got the 32 or 64 bit version.
Added:
>
>

Juno (Eclipse 4.2)

Download "Eclipse IDE for C/C++ Developers" for your platform at http://www.eclipse.org/downloads/, go to a directory of your choice and unpack it the .tar.gz file. You will find the directory eclipse.

The first thing to do is to edit the file eclipse.ini in that directory. The original looks more or less like:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=256m
-Xms40m
-Xmx1024m
Change the line -Xmx384m with -Xmx512m and add the line
-Duser.name=<your name>
(replacing with your name).

Now you are ready to start Eclipse: go to the eclipse directory and launch ./eclipse (there is no need to go there, you can also use the full path to the eclipse executable).

When it ask for a workspace, you probably want to use your cmtuser directory.

Probably, the first thing you want to do is to update the pre-bundled plugins: select the menu "Help->Check for Updates". Sometimes there are problems with some updates, but usually it is enough to remove and re-add the corresponding update site.

Extensions

There are a few extensions to eclipse that is good to have. I put them in a custom update site, including a couple of meta-plugins for easy installation. To install them, select the menu entry "Help->Install new software", type http://cern.ch/lhcbproject/dist/eclipse/update4.2 in the combo box at the top of the dialog and press enter. Select the entry LHCb Standard Features Collection (support for SVN, Python, C/C++, SetupProject, getpack, shell scripts and CMT requirements files, etc.) or LHCb Extended Features Collection (same as above with Web and XML support). If there are problems with the installation of the plugins, try to update you Eclipse first (menu "Help->Check for Updates"), if the problem persists, let me know.

Configuration

First of all I suggest to disable the automatic build. It is a very good feature: whenever you modify a file, eclipse will recompile the project in background. Unfortunately it is a pain if the compilation takes a long time even when you modify a single file. So, select the menu "Project" and make sure that the entry "Build Automatically" is unchecked.

For the configuration, enter the preferences dialog from the menu bar "Window->Preferences".

Note the the preferences are workspace specific, so when creating a new workspace, you should specify that you want to copy the configuration, otherwise you will have to re-apply them to the new one (you can also make a copy of an empty workspace as a template).

General

Editors
Text Editors
set "Displayed tab width" to 8, enable "Use spaces for tabs" and enable "Show print margin" (this last one is optional)

C/C++

Build Console
increase the number of lines for the output (e.g. 8192)
Code Style
a predefined Code Style file for LHCb is attached to this page, you just have to download it and import it: https://twiki.cern.ch/twiki/pub/LHCb/EclipseConfiguration/LHCb_C++_CodeStyle.xml
Editor
Folding
Enable all folding types, select only "Macros" and "Inactive Preprocessor Branches" for initial folding (uncheck the others).
File Types
add *.icc and *.icpp as "C++ Source File"
Task Tags
add FIXME with priority "High"

Pydev

Interpreter - Python
add (at least) a python interpreter, probably you want to add the one you find with which python (which is the one that LbLogin adds to the path)

Team

Ignored Resources
add the following patterns to the list
  • *-slc5-*
  • *-slc6-*
  • setup.*
  • cleanup.*
  • version.cmt
  • *.*make
  • *.*makesav
  • Makefile
  • NMake
  • install.history
  • gdd.dtd
  • genConf
  • QMTest
  • *.launch

Customization

Repositories

It is useful to add the standard Subversion repositories at this point (not needed if you use the GetPack Wizard)

From the menu "File->New->Other..." select "SVN/Repository Location". Copy the repository URL into the first field, it should automatically split it correctly. Confirm the data by clicking on "Finish". It will ask for username and password to connect (it doesn't use by default kerberos or ssh keys). The complete list of Subversion repositories is:

  • svn+ssh://svn.cern.ch/reps/gaudi
  • svn+ssh://svn.cern.ch/reps/lhcb
  • svn+ssh://svn.cern.ch/reps/dirac
or the following, if you prefer to use anonymous access:
  • http://svn.cern.ch/guest/gaudi
  • http://svn.cern.ch/guest/lhcb
  • http://svn.cern.ch/guest/dirac

-- MarcoClemencic - 12-Jul-2012

 

Indigo (Eclipse 3.7) / Helios (Eclipse 3.6) / Galileo (Eclipse 3.5)

Download "Eclipse IDE for C/C++ [Linux] Developers" for your platform at http://www.eclipse.org/downloads/, go to a directory of your choice and unpack it the .tar.gz file. You will find the directory eclipse.
Line: 195 to 293
  If you have the lhcb-software environment available to you, you will probably want to use the lhcb-software version of eclipse.
Changed:
<
<
Eventually you will be able to use install_project as with all other software. For the time being if you shoudl follow the ManualInstallLHCbEclipse instructions.
>
>
Eventually you will be able to use install_project as with all other software. For the time being if you should follow the ManualInstallLHCbEclipse instructions.
 

Private laptop, private eclipse version:

Revision 252011-10-04 - RobLambert

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 188 to 188
 

Ganimede (Eclipse 3.4)

WARNING This part is kept for historical reasons and not updated. Please, use Galileo.
Added:
>
>
 

Basic installation

Added:
>
>

Using lhcb-managed eclipse version

If you have the lhcb-software environment available to you, you will probably want to use the lhcb-software version of eclipse.

Eventually you will be able to use install_project as with all other software. For the time being if you shoudl follow the ManualInstallLHCbEclipse instructions.

Private laptop, private eclipse version:

If you don't have access to the lhcb software environment, or you want a fully configurable eclipse version fo your own choosing, follow these instructions.

 Download "Eclipse IDE for C/C++ Developers" for your platform at http://www.eclipse.org/downloads/, go to a directory of your choice and unpack it the .tar.gz file. You will find the directory eclipse.

The first thing to do is to edit the file eclipse.ini in that directory. The original looks more or less like:

Revision 242011-09-23 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 7 to 7
 

LXPLUS

Changed:
<
<
I just prepared a shared installation of Eclipse Helios with all the suggested plugins that is usable on lxplus.
>
>
I just prepared a shared installation of Eclipse Indigo with all the suggested plugins that is usable on lxplus.
 Just do:
ssh lxplus.cern.ch
Line: 15 to 15
  Please, report any problem or suggestions to me.
Deleted:
<
<
Note that the location is somehow preliminar and it may change in the future, but you will be notified if it happens.
 

Prerequisites

Java

I have problems with the version of the Java Runtime Environment distributed with SLC5 (java-1.6.0-openjdk-1.6.0.0-0.30.b09), the version in SLC4 is simply too old.

I suggest to take the latest version of the JRE from http://java.com (at least 1.6.0.10). You can chose any kind of installation, just remember if you got the 32 or 64 bit version.

Changed:
<
<

Helios(Eclipse 3.6) / Galileo (Eclipse 3.5)

Download "Eclipse IDE for C/C++ Developers" for your platform at http://www.eclipse.org/downloads/, go to a directory of your choice and unpack it the .tar.gz file. You will find the directory eclipse.
>
>

Indigo (Eclipse 3.7) / Helios (Eclipse 3.6) / Galileo (Eclipse 3.5)

Download "Eclipse IDE for C/C++ [Linux] Developers" for your platform at http://www.eclipse.org/downloads/, go to a directory of your choice and unpack it the .tar.gz file. You will find the directory eclipse.
  The first thing to do is to edit the file eclipse.ini in that directory. The original looks more or less like:
-startup
Changed:
<
<
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
>
>
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
 --launcher.library
Changed:
<
<
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.0.v20100503
>
>
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505
 -product
Changed:
<
<
org.eclipse.epp.package.cpp.product
>
>
org.eclipse.epp.package.linuxtools.product
 --launcher.defaultAction openFile -showsplash
Line: 43 to 41
 --launcher.defaultAction openFile -vmargs
Changed:
<
<
-Dosgi.requiredJavaVersion=1.5
>
>
-Dosgi.requiredJavaVersion=1.6
 -XX:MaxPermSize=256m -Xms40m -Xmx384m
Line: 52 to 50
 
-Duser.name=<your name>
Changed:
<
<
(replacing with your name). Just before the line -vmargs, add (if not present)
>
>
(replacing with your name).

If you have problems with the version of Java installed on your system, you can install another one and add, just before the line -vmargs, (if not present)

 
-vm
<path/to/preferred/java>
Changed:
<
<
The value of <path/to/preferred/java> is system dependent. If the version of java that comes with the system is good enough (on Win32 is the one you installed), you can skip that line, otherwise you have to specify the path to the java executable (see http://wiki.eclipse.org/Eclipse.ini for more information).
*Note:* the preferred JRE, can also be selected creating a symlink called jre in the eclipse directory pointing to the actual jre location, thus making the -vm part of eclipse.ini unnecessary.
>
>
The value of <path/to/preferred/java> is system dependent (see http://wiki.eclipse.org/Eclipse.ini for more information).
*Note:* the preferred JRE, can also be selected creating a symlink called jre in the eclipse directory pointing to the actual jre location, thus making the -vm part of eclipse.ini unnecessary.
  At the end you should have something like (that's mine):
-startup
Changed:
<
<
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
>
>
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
 --launcher.library
Changed:
<
<
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.0.v20100503
>
>
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505
 -product
Changed:
<
<
org.eclipse.epp.package.cpp.product
>
>
org.eclipse.epp.package.linuxtools.product
 --launcher.defaultAction openFile -showsplash
Line: 76 to 76
 --launcher.defaultAction openFile -vmargs
Changed:
<
<
-Dosgi.requiredJavaVersion=1.5
>
>
-Dosgi.requiredJavaVersion=1.6
 -Duser.name=Marco Clemencic -XX:MaxPermSize=256m -Xms40m
Line: 90 to 90
 Probably, the first thing you want to do is to update the pre-bundled plugins: select the menu "Help->Check for Updates". Sometimes there are problems with some updates, but usually it is enough to remove and re-add the corresponding update site.

Extensions

Changed:
<
<
There are a few extensions to eclipse that is good to have. I put them in a custom update site, including a couple of meta-plugins for easy installation. To install them, select the menu entry "Help->Install new software", type http://cern.ch/lhcbproject/dist/eclipse/update (use http://cern.ch/marco.clemencic/lhcb/updates for Galileo) in the combo box at the top of the dialog and press enter. Select the entry LHCb Standard Feature Set (support for SVN, Python, C/C++, shell scripts and CMT requirements files) or LHCb Extended Feature Set (same as above with Web and XML support). If there are problems with the installation of the plugins, try to update you Eclipse first (menu "Help->Check for Updates").
>
>
There are a few extensions to eclipse that is good to have. I put them in a custom update site, including a couple of meta-plugins for easy installation. To install them, select the menu entry "Help->Install new software", type http://cern.ch/lhcbproject/dist/eclipse/update3.7 (for Helios use http://cern.ch/lhcbproject/dist/eclipse/update and for Galileo http://cern.ch/marco.clemencic/lhcb/updates, but they are not up-to-date) in the combo box at the top of the dialog and press enter. Select the entry LHCb Standard Feature Set (support for SVN, Python, C/C++, SetupProject, getpack, shell scripts and CMT requirements files) or LHCb Extended Feature Set (same as above with Web and XML support). If there are problems with the installation of the plugins, try to update you Eclipse first (menu "Help->Check for Updates"), if the problem persists, let me know.
 
Added:
>
>
<!--
 IMPORTANT: you must check if the version of the LHCb Feature you want to install in the non grouped plugins is the most recent (see the following note on known issues).

Known Issues:

  • For a reason still to be understood, sometimes the latest versions of the LHCb Feature Sets don't appear in the group LHCb, so if you cannot install it, you may try to uncheck the box "Group items by category" and look for the latest versions.
  • The current version of the LHCb update site is missing few plugins, so you have to click on "Available Software Sites" and enable the CDT update site.
Added:
>
>
-->
 

Configuration

First of all I suggest to disable the automatic build. It is a very good feature: whenever you modify a file, eclipse will recompile the project in background. Unfortunately it is a pain if the compilation takes a long time even when you modify a single file. So, select the menu "Project" and make sure that the entry "Build Automatically" is unchecked.
Line: 182 to 184
  Note: This is not the only way to add a Task Repository for Savannah, but it is the best I could find. One can use a single "repository" for all the trackers, but then it is not possible to create new tasks from Eclipse.
Changed:
<
<
-- MarcoClemencic - 2010-06-09
>
>
-- MarcoClemencic - 23-Sep-2011
 

Ganimede (Eclipse 3.4)

WARNING This part is kept for historical reasons and not updated. Please, use Galileo.

Revision 232011-03-03 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 92 to 92
 

Extensions

There are a few extensions to eclipse that is good to have. I put them in a custom update site, including a couple of meta-plugins for easy installation. To install them, select the menu entry "Help->Install new software", type http://cern.ch/lhcbproject/dist/eclipse/update (use http://cern.ch/marco.clemencic/lhcb/updates for Galileo) in the combo box at the top of the dialog and press enter. Select the entry LHCb Standard Feature Set (support for SVN, Python, C/C++, shell scripts and CMT requirements files) or LHCb Extended Feature Set (same as above with Web and XML support).
Added:
>
>
If there are problems with the installation of the plugins, try to update you Eclipse first (menu "Help->Check for Updates").
  IMPORTANT: you must check if the version of the LHCb Feature you want to install in the non grouped plugins is the most recent (see the following note on known issues).

Revision 222011-02-24 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 93 to 93
 There are a few extensions to eclipse that is good to have. I put them in a custom update site, including a couple of meta-plugins for easy installation. To install them, select the menu entry "Help->Install new software", type http://cern.ch/lhcbproject/dist/eclipse/update (use http://cern.ch/marco.clemencic/lhcb/updates for Galileo) in the combo box at the top of the dialog and press enter. Select the entry LHCb Standard Feature Set (support for SVN, Python, C/C++, shell scripts and CMT requirements files) or LHCb Extended Feature Set (same as above with Web and XML support).
Added:
>
>
IMPORTANT: you must check if the version of the LHCb Feature you want to install in the non grouped plugins is the most recent (see the following note on known issues).
 Known Issues:
  • For a reason still to be understood, sometimes the latest versions of the LHCb Feature Sets don't appear in the group LHCb, so if you cannot install it, you may try to uncheck the box "Group items by category" and look for the latest versions.
  • The current version of the LHCb update site is missing few plugins, so you have to click on "Available Software Sites" and enable the CDT update site.

Revision 212011-01-10 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 11 to 11
 Just do:
ssh lxplus.cern.ch
Changed:
<
<
/afs/cern.ch/lhcb/distribution/eclipse/bin/eclipse
>
>
eclipse
  Please, report any problem or suggestions to me.
Line: 93 to 93
 There are a few extensions to eclipse that is good to have. I put them in a custom update site, including a couple of meta-plugins for easy installation. To install them, select the menu entry "Help->Install new software", type http://cern.ch/lhcbproject/dist/eclipse/update (use http://cern.ch/marco.clemencic/lhcb/updates for Galileo) in the combo box at the top of the dialog and press enter. Select the entry LHCb Standard Feature Set (support for SVN, Python, C/C++, shell scripts and CMT requirements files) or LHCb Extended Feature Set (same as above with Web and XML support).
Added:
>
>
Known Issues:
  • For a reason still to be understood, sometimes the latest versions of the LHCb Feature Sets don't appear in the group LHCb, so if you cannot install it, you may try to uncheck the box "Group items by category" and look for the latest versions.
  • The current version of the LHCb update site is missing few plugins, so you have to click on "Available Software Sites" and enable the CDT update site.
 

Configuration

First of all I suggest to disable the automatic build. It is a very good feature: whenever you modify a file, eclipse will recompile the project in background. Unfortunately it is a pain if the compilation takes a long time even when you modify a single file. So, select the menu "Project" and make sure that the entry "Build Automatically" is unchecked.

Revision 202010-10-25 - RobLambert

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Added:
>
>
Eclipse logo
 

LXPLUS

Line: 347 to 350
 
META FILEATTACHMENT attachment="update_sites.xml" attr="" comment="Suggested Eclipse Update Sites" date="1253897648" name="update_sites.xml" path="update_sites.xml" size="504" stream="update_sites.xml" tmpFilename="/usr/tmp/CGItemp13785" user="clemenci" version="2"
META FILEATTACHMENT attachment="cbg.editor_1.2.6_lhcb.jar" attr="" comment="Patched version of Color Editor with support for CMT" date="1254071086" name="cbg.editor_1.2.6_lhcb.jar" path="cbg.editor_1.2.6_lhcb.jar" size="391376" stream="cbg.editor_1.2.6_lhcb.jar" tmpFilename="/usr/tmp/CGItemp53967" user="clemenci" version="1"
META FILEATTACHMENT attachment="cbg.editor_1.2.6.jar" attr="" comment="" date="1254133424" name="cbg.editor_1.2.6.jar" path="cbg.editor_1.2.6.jar" size="391376" stream="cbg.editor_1.2.6.jar" tmpFilename="/usr/tmp/CGItemp23863" user="clemenci" version="1"
Added:
>
>
META FILEATTACHMENT attachment="eclipse_ide.jpg" attr="" comment="" date="1288002161" name="eclipse_ide.jpg" path="eclipse_ide.jpg" size="8699" stream="eclipse_ide.jpg" tmpFilename="/usr/tmp/CGItemp12959" user="rlambert" version="1"

Revision 192010-07-30 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Added:
>
>

LXPLUS

I just prepared a shared installation of Eclipse Helios with all the suggested plugins that is usable on lxplus. Just do:
ssh lxplus.cern.ch
/afs/cern.ch/lhcb/distribution/eclipse/bin/eclipse
Please, report any problem or suggestions to me.

Note that the location is somehow preliminar and it may change in the future, but you will be notified if it happens.

 

Prerequisites

Java

I have problems with the version of the Java Runtime Environment distributed with SLC5 (java-1.6.0-openjdk-1.6.0.0-0.30.b09), the version in SLC4 is simply too old.

Revision 182010-07-28 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 8 to 8
  I suggest to take the latest version of the JRE from http://java.com (at least 1.6.0.10). You can chose any kind of installation, just remember if you got the 32 or 64 bit version.
Changed:
<
<

Galileo (Eclipse 3.5)

>
>

Helios(Eclipse 3.6) / Galileo (Eclipse 3.5)

 Download "Eclipse IDE for C/C++ Developers" for your platform at http://www.eclipse.org/downloads/, go to a directory of your choice and unpack it the .tar.gz file. You will find the directory eclipse.

The first thing to do is to edit the file eclipse.ini in that directory. The original looks more or less like:

-startup
Changed:
<
<
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
>
>
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
 --launcher.library
Changed:
<
<
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.200.v20090519
>
>
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.0.v20100503
 -product org.eclipse.epp.package.cpp.product
Added:
>
>
--launcher.defaultAction openFile
 -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m
Added:
>
>
--launcher.defaultAction openFile
 -vmargs -Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=256m -Xms40m
Changed:
<
<
-Xmx256m
>
>
-Xmx384m
 
Changed:
<
<
Change the line -Xmx256m with -Xmx512m and add the line
>
>
Change the line -Xmx384m with -Xmx512m and add the line
 
-Duser.name=<your name>
Line: 43 to 47
 At the end you should have something like (that's mine):
-startup
Changed:
<
<
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
>
>
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
 --launcher.library
Changed:
<
<
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.200.v20090519
>
>
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.0.v20100503
 -product org.eclipse.epp.package.cpp.product
Added:
>
>
--launcher.defaultAction openFile
 -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m
Added:
>
>
--launcher.defaultAction openFile
 -vmargs -Dosgi.requiredJavaVersion=1.5
Added:
>
>
-Duser.name=Marco Clemencic
 -XX:MaxPermSize=256m -Xms40m -Xmx512m
Deleted:
<
<
-Duser.name=Marco Clemencic
 

Now you are ready to start Eclipse: go to the eclipse directory and launch ./eclipse (there is no need to go there, you can also use the full path to the eclipse executable).

Line: 67 to 75
 Probably, the first thing you want to do is to update the pre-bundled plugins: select the menu "Help->Check for Updates". Sometimes there are problems with some updates, but usually it is enough to remove and re-add the corresponding update site.

Extensions

Changed:
<
<
There are a few extensions to eclipse that is good to have. I put them in a custom update site, including a couple of meta-plugins for easy installation. To install them, select the menu entry "Help->Install new software", type http://cern.ch/marco.clemencic/lhcb/updates in the combo box at the top of the dialog and press enter. Select the entry LHCb Standard Feature Set (support for SVN, Python, C/C++, shell scripts and CMT requirements files) or LHCb Extended Feature Set (same as above with Web and XML support). Note that you may need to uncheck the checkbox "Group by category" to see them.
>
>
There are a few extensions to eclipse that is good to have. I put them in a custom update site, including a couple of meta-plugins for easy installation. To install them, select the menu entry "Help->Install new software", type http://cern.ch/lhcbproject/dist/eclipse/update (use http://cern.ch/marco.clemencic/lhcb/updates for Galileo) in the combo box at the top of the dialog and press enter. Select the entry LHCb Standard Feature Set (support for SVN, Python, C/C++, shell scripts and CMT requirements files) or LHCb Extended Feature Set (same as above with Web and XML support).
 

Configuration

First of all I suggest to disable the automatic build. It is a very good feature: whenever you modify a file, eclipse will recompile the project in background. Unfortunately it is a pain if the compilation takes a long time even when you modify a single file. So, select the menu "Project" and make sure that the entry "Build Automatically" is unchecked.

Revision 172010-06-10 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 29 to 29
 -Xms40m -Xmx256m
Changed:
<
<
Change the line -Xmx256m with -Xmx1024m and add the line
>
>
Change the line -Xmx256m with -Xmx512m and add the line
 
-Duser.name=<your name>
Line: 56 to 56
 -Dosgi.requiredJavaVersion=1.5 -XX:MaxPermSize=256m -Xms40m
Changed:
<
<
-Xmx1024m
>
>
-Xmx512m
 -Duser.name=Marco Clemencic
Line: 67 to 67
 Probably, the first thing you want to do is to update the pre-bundled plugins: select the menu "Help->Check for Updates". Sometimes there are problems with some updates, but usually it is enough to remove and re-add the corresponding update site.

Extensions

Changed:
<
<
There are a few Eclipse Update Sites that should be added to Eclipse. They are listed in the following sections, but, for commodity, I attached an XML file that can be imported in the configuration page for the management of sites (Window->Preferences->Install/Updates->Available Software Sites) to add all of them: https://twiki.cern.ch/twiki/pub/LHCb/EclipseConfiguration/update_sites.xml

To install new components, you have to select the menu entry "Help->Install new software". From the combo box at the top of the window, you can select which repository to use; if you know what you are doing, you can chose one, but in most of the cases it is better to choose "--All Available Sites--" to be able to locate all the dependencies.

Subversion

To be able to work with a Subversion (SVN) repository, you need to install a "Team Provider" and a "Connector".

There are two possible "Team Provider" plugins:

I'm not going to discuss which is best, I choose Subversive because it seems better to me.

From the Galileo repository, select the components:

Collaboration
  • Subversive SVN Team Provider
  • Subversive SVN Integration for the Mylyn Project

After restarting eclipse, you will be asked to install a connector. Choose SVNKit 1.2.x (the version 1.3.x may cause you problems with the svn command line client installed on lxplus).

Python

To develop Python code, you need PyDev.

Add the Pydev Update Site to the list:

and install "Pydev for Eclipse" and "Pydev Mylyn Integration".

Mylyn Web Templates Connector

There is a very interesting Connector in the the incubator repository of Mylyn: Web Templates. It allows (a basic) usage of savannah from Eclipse (once configured).

Add the update site http://download.eclipse.org/tools/mylyn/update/incubator and install the plugin "Mylyn Connector: Web Templates".

HTML/XML (optional)

The plug-ins to work with XML and HTML are in the main Eclipse Update Site, so there is no need to add a new one.

Plugins to install (with their dependencies):

Eclipse XML Editor and Tools
collection of plugins to work with XML files.
Eclipse Web Developer Tools
collection of plugins to work with web pages.

It may also be interesting to install the "Eclipse XSL Editor and Tools" plugin, for working with XML Style Sheets.

Color Editor (optional)

The Color Editor plug-in does not have an update site, but it easy enough to install anyway.

Download the latest .jar file from the download page (currently it is http://gstaff.org/colorEditor/cbg.editor_1.2.6.jar) and copy it in the directory eclipse/plugins, then start or re-start eclipse.

I attached to this page a patched version of the .jar file with support for the file project.cmt and requirements. The only problem is that the association of the file types to the editor have to be added by hand, via "Window->Preferences->General->Editors->File Associations" (the name of the editor is "Syntax Coloring Editor").

>
>
There are a few extensions to eclipse that is good to have. I put them in a custom update site, including a couple of meta-plugins for easy installation. To install them, select the menu entry "Help->Install new software", type http://cern.ch/marco.clemencic/lhcb/updates in the combo box at the top of the dialog and press enter. Select the entry LHCb Standard Feature Set (support for SVN, Python, C/C++, shell scripts and CMT requirements files) or LHCb Extended Feature Set (same as above with Web and XML support). Note that you may need to uncheck the checkbox "Group by category" to see them.
 

Configuration

First of all I suggest to disable the automatic build. It is a very good feature: whenever you modify a file, eclipse will recompile the project in background. Unfortunately it is a pain if the compilation takes a long time even when you modify a single file. So, select the menu "Project" and make sure that the entry "Build Automatically" is unchecked.
Line: 126 to 80
 

General

Editors
Text Editors
set "Displayed tab width" to 8, enable "Use spaces for tabs" and enable "Show print margin" (this last one is optional)
Deleted:
<
<
File Associations
(if you installed the patched version of Color Editor) add the patterns "requirements" and "project.cmt" setting the default editor to "Syntax Coloring Editor"
 

C/C++

Build Console
increase the number of lines for the output (e.g. 8192)
Line: 160 to 113
 

Customization

Repositories

Changed:
<
<
It is useful to add the standard CVS/SVN repositories at this point.
>
>
It is useful to add the standard Subversion repositories at this point.
 
Changed:
<
<
CVS
  • From the menu "File->New->Other..." select "CVS/CVS Repository Location". Copy the string :ext:isscvs.cern.ch:/local/reps/lhcb into the first field (host), it should automatically split it correctly. You have to set the username before being able to complete the creation with the button "Finish".
>
>
From the menu "File->New->Other..." select "SVN/Repository Location". Copy the repository URL into the first field, it should automatically split it correctly. Confirm the data by clicking on "Finish". It will ask for username and password to connect (it doesn't use by default kerberos or ssh keys). The complete list of Subversion repositories is:
  • svn+ssh://svn.cern.ch/reps/gaudi
  • svn+ssh://svn.cern.ch/reps/lhcb
  • svn+ssh://svn.cern.ch/reps/dirac
or the following, if you prefer to use anonymous access:
  • http://websvn.cern.ch/guest/gaudi
  • http://websvn.cern.ch/guest/lhcb
  • http://websvn.cern.ch/guest/dirac
 
Changed:
<
<
SVN
  • From the menu "File->New->Other..." select "SVN/Repository Location". Copy the string svn+ssh://svn.cern.ch/reps/gaudi into the first field (URL), it should automatically split it correctly. Confirm the data by clicking on "Finish". It will ask for username and password to connect (it doesn't use by default kerberos or ssh keys).
>
>
If you still need the CVS repository, from the menu "File->New->Other..." select "CVS/CVS Repository Location". Copy the string :ext:isscvs.cern.ch:/local/reps/lhcb into the first field (host), it should automatically split it correctly. You have to set the username before being able to complete the creation with the button "Finish".
 

Savannah

The "Web Templates" connector allows the connection of the Mylyn feature to the savannah repository.
Line: 194 to 152
  Note: This is not the only way to add a Task Repository for Savannah, but it is the best I could find. One can use a single "repository" for all the trackers, but then it is not possible to create new tasks from Eclipse.
Changed:
<
<
-- MarcoClemencic - 2009-09-30
>
>
-- MarcoClemencic - 2010-06-09
 

Ganimede (Eclipse 3.4)

WARNING This part is kept for historical reasons and not updated. Please, use Galileo.

Revision 162009-10-19 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 112 to 112
 

Color Editor (optional)

The Color Editor plug-in does not have an update site, but it easy enough to install anyway.
Changed:
<
<
Download the latest .jar file from the download page (currently it is http://gstaff.org/colorEditor/cbg.editor_1.2.6.jar) and copy it in the directory eclipse/plugins, then start/re-start eclipse.
>
>
Download the latest .jar file from the download page (currently it is http://gstaff.org/colorEditor/cbg.editor_1.2.6.jar) and copy it in the directory eclipse/plugins, then start or re-start eclipse.
  I attached to this page a patched version of the .jar file with support for the file project.cmt and requirements. The only problem is that the association of the file types to the editor have to be added by hand, via "Window->Preferences->General->Editors->File Associations" (the name of the editor is "Syntax Coloring Editor").

Revision 152009-09-30 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 117 to 117
 I attached to this page a patched version of the .jar file with support for the file project.cmt and requirements. The only problem is that the association of the file types to the editor have to be added by hand, via "Window->Preferences->General->Editors->File Associations" (the name of the editor is "Syntax Coloring Editor").

Configuration

Changed:
<
<
Enter the preferences dialog from the menu bar "Window->Preferences".
>
>
First of all I suggest to disable the automatic build. It is a very good feature: whenever you modify a file, eclipse will recompile the project in background. Unfortunately it is a pain if the compilation takes a long time even when you modify a single file. So, select the menu "Project" and make sure that the entry "Build Automatically" is unchecked.

For the configuration, enter the preferences dialog from the menu bar "Window->Preferences".

  Note the the preferences are workspace specific, so when creating a new workspace, you should specify that you want to copy the configuration, otherwise you will have to re-apply them to the new one (you can also make a copy of an empty workspace as a template).
Line: 192 to 194
  Note: This is not the only way to add a Task Repository for Savannah, but it is the best I could find. One can use a single "repository" for all the trackers, but then it is not possible to create new tasks from Eclipse.
Changed:
<
<
-- MarcoClemencic - 2009-09-28
>
>
-- MarcoClemencic - 2009-09-30
 

Ganimede (Eclipse 3.4)

WARNING This part is kept for historical reasons and not updated. Please, use Galileo.

Revision 132009-09-28 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 80 to 80
  I'm not going to discuss which is best, I choose Subversive because it seems better to me.
Changed:
<
<
Add the following update site to your list:
Subversive SVN Connectors Site
http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/

Then select the components:

Eclipse
>
>
From the Galileo repository, select the components:
Collaboration
 
    • Subversive SVN Team Provider
    • Subversive SVN Integration for the Mylyn Project
Changed:
<
<
Subversive SVN Connectors Site
  • Subversive SVN Connectors
  • SVNKit 1.2.2 Implementation
>
>
After restarting eclipse, you will be asked to install a connector. Choose SVNKit 1.2.x (the version 1.3.x may cause you problems with the svn command line client installed on lxplus).
 

Python

To develop Python code, you need PyDev.
Line: 123 to 119
 

Configuration

Enter the preferences dialog from the menu bar "Window->Preferences".
Changed:
<
<
Note the the preferences are workspace specific, so you will need to re-apply them to every new workspace (you can also make a copy of an empty workspace as a template).
>
>
Note the the preferences are workspace specific, so when creating a new workspace, you should specify that you want to copy the configuration, otherwise you will have to re-apply them to the new one (you can also make a copy of an empty workspace as a template).
 

General

Editors
Changed:
<
<
Text Editors
set "Displayed tab width" to 8, enable "Show print margin" (optional)
>
>
Text Editors
set "Displayed tab width" to 8, enable "Use spaces for tabs" and enable "Show print margin" (this last one is optional)
File Associations
(if you installed the patched version of Color Editor) add the patterns "requirements" and "project.cmt" setting the default editor to "Syntax Coloring Editor"
 

C/C++

Build Console
increase the number of lines for the output (e.g. 8192)
Line: 160 to 157
 
    • *.launch

Customization

Added:
>
>

Repositories

It is useful to add the standard CVS/SVN repositories at this point.

CVS

  • From the menu "File->New->Other..." select "CVS/CVS Repository Location". Copy the string :ext:isscvs.cern.ch:/local/reps/lhcb into the first field (host), it should automatically split it correctly. You have to set the username before being able to complete the creation with the button "Finish".

SVN

  • From the menu "File->New->Other..." select "SVN/Repository Location". Copy the string svn+ssh://svn.cern.ch/reps/gaudi into the first field (URL), it should automatically split it correctly. Confirm the data by clicking on "Finish". It will ask for username and password to connect (it doesn't use by default kerberos or ssh keys).
 

Savannah

The "Web Templates" connector allows the connection of the Mylyn feature to the savannah repository.

Revision 122009-09-28 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 8 to 8
  I suggest to take the latest version of the JRE from http://java.com (at least 1.6.0.10). You can chose any kind of installation, just remember if you got the 32 or 64 bit version.
Added:
>
>

Galileo (Eclipse 3.5)

Download "Eclipse IDE for C/C++ Developers" for your platform at http://www.eclipse.org/downloads/, go to a directory of your choice and unpack it the .tar.gz file. You will find the directory eclipse.

The first thing to do is to edit the file eclipse.ini in that directory. The original looks more or less like:

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.200.v20090519
-product
org.eclipse.epp.package.cpp.product
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx256m
Change the line -Xmx256m with -Xmx1024m and add the line
-Duser.name=<your name>
(replacing with your name). Just before the line -vmargs, add (if not present)
-vm
<path/to/preferred/java>
The value of <path/to/preferred/java> is system dependent. If the version of java that comes with the system is good enough (on Win32 is the one you installed), you can skip that line, otherwise you have to specify the path to the java executable (see http://wiki.eclipse.org/Eclipse.ini for more information).
*Note:* the preferred JRE, can also be selected creating a symlink called jre in the eclipse directory pointing to the actual jre location, thus making the -vm part of eclipse.ini unnecessary.

At the end you should have something like (that's mine):

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.200.v20090519
-product
org.eclipse.epp.package.cpp.product
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx1024m
-Duser.name=Marco Clemencic

Now you are ready to start Eclipse: go to the eclipse directory and launch ./eclipse (there is no need to go there, you can also use the full path to the eclipse executable).

When it ask for a workspace, you probably want to use your cmtuser directory.

Probably, the first thing you want to do is to update the pre-bundled plugins: select the menu "Help->Check for Updates". Sometimes there are problems with some updates, but usually it is enough to remove and re-add the corresponding update site.

Extensions

There are a few Eclipse Update Sites that should be added to Eclipse. They are listed in the following sections, but, for commodity, I attached an XML file that can be imported in the configuration page for the management of sites (Window->Preferences->Install/Updates->Available Software Sites) to add all of them: https://twiki.cern.ch/twiki/pub/LHCb/EclipseConfiguration/update_sites.xml

To install new components, you have to select the menu entry "Help->Install new software". From the combo box at the top of the window, you can select which repository to use; if you know what you are doing, you can chose one, but in most of the cases it is better to choose "--All Available Sites--" to be able to locate all the dependencies.

Subversion

To be able to work with a Subversion (SVN) repository, you need to install a "Team Provider" and a "Connector".

There are two possible "Team Provider" plugins:

I'm not going to discuss which is best, I choose Subversive because it seems better to me.

Add the following update site to your list:

Subversive SVN Connectors Site
http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/

Then select the components:

Eclipse
  • Subversive SVN Team Provider
  • Subversive SVN Integration for the Mylyn Project
Subversive SVN Connectors Site
  • Subversive SVN Connectors
  • SVNKit 1.2.2 Implementation

Python

To develop Python code, you need PyDev.

Add the Pydev Update Site to the list:

and install "Pydev for Eclipse" and "Pydev Mylyn Integration".

Mylyn Web Templates Connector

There is a very interesting Connector in the the incubator repository of Mylyn: Web Templates. It allows (a basic) usage of savannah from Eclipse (once configured).

Add the update site http://download.eclipse.org/tools/mylyn/update/incubator and install the plugin "Mylyn Connector: Web Templates".

HTML/XML (optional)

The plug-ins to work with XML and HTML are in the main Eclipse Update Site, so there is no need to add a new one.

Plugins to install (with their dependencies):

Eclipse XML Editor and Tools
collection of plugins to work with XML files.
Eclipse Web Developer Tools
collection of plugins to work with web pages.

It may also be interesting to install the "Eclipse XSL Editor and Tools" plugin, for working with XML Style Sheets.

Color Editor (optional)

The Color Editor plug-in does not have an update site, but it easy enough to install anyway.

Download the latest .jar file from the download page (currently it is http://gstaff.org/colorEditor/cbg.editor_1.2.6.jar) and copy it in the directory eclipse/plugins, then start/re-start eclipse.

I attached to this page a patched version of the .jar file with support for the file project.cmt and requirements. The only problem is that the association of the file types to the editor have to be added by hand, via "Window->Preferences->General->Editors->File Associations" (the name of the editor is "Syntax Coloring Editor").

Configuration

Enter the preferences dialog from the menu bar "Window->Preferences".

Note the the preferences are workspace specific, so you will need to re-apply them to every new workspace (you can also make a copy of an empty workspace as a template).

General

Editors
Text Editors
set "Displayed tab width" to 8, enable "Show print margin" (optional)

C/C++

Build Console
increase the number of lines for the output (e.g. 8192)
Code Style
a predefined Code Style file for LHCb is attached to this page, you just have to download it and import it: https://twiki.cern.ch/twiki/pub/LHCb/EclipseConfiguration/LHCb_C++_CodeStyle.xml
Editor
Folding
Enable all folding types, select only "Macros" and "Inactive Preprocessor Branches" for initial folding (uncheck the others).
File Types
add *.icc and *.icpp as "C++ Source File"
Task Tags
add FIXME with priority "High"

Pydev

Interpreter - Python
add (at least) a python interpreter, probably you want to add the one you find with which python (which is the one that LbLogin adds to the path)

Team

Ignored Resources
add the following patterns to the list
  • *-slc5-*
  • slc4_*_gcc*
  • win32_vc71_dbg
  • osx104_*_gcc*
  • setup.*
  • cleanup.*
  • version.cmt
  • *.*make
  • *.*makesav
  • Makefile
  • NMake
  • install.history
  • gdd.dtd
  • genConf
  • QMTest
  • *.launch

Customization

Savannah

The "Web Templates" connector allows the connection of the Mylyn feature to the savannah repository.

These are the steps needed to add "Gaudi Patches"

  • Open the "Task Repository" view (from the dialog "Window->Show View->Other")
  • Click on the "Add Task Repository" button (or the entry in the context menu of the view)
  • Select "Web Template", then "Next"
  • Fill the form with the values:
    Server
    https://savannah.cern.ch/patch/?group=gaudi
    Label
    Gaudi Patches
    Additional Settings
    add the parameters group -> gaudi and tracker -> patch
    Advanced Configuration
    Task URL
    https://savannah.cern.ch/${tracker}/?
    New Task URL
    ${serverUrl}&func=additem
    Query Request URL
    ${serverUrl}&chunksz=150&report_id=100
    Query Pattern
    <tr.*?prior[a-z]({Status}closed)?.*?#({Id}[0-9]+).*?/td>\n<td ><a.*?>({Description}.*?)</a></td>\n<td >[-0-9 :]*?</td>\n<td >({dummy}<a.*?>({Owner}.+?)</a>|None)</td>
  • Click on "Finish" and say "Yes" when asked to create a new query on the created repository.
  • Accept the defaults in the form for the new query.
  • Open the "Task List" view from the dialog "Window->Show View->Other".

Other repositories can be created using the same "Advanced Configuration" and changing "Server" and "Additional Settings" (reminder: the tracker is one of patch, task or bugs).

It is possible to create advanced queries (e.g. bugs assigned to somebody)... TODO

Note: This is not the only way to add a Task Repository for Savannah, but it is the best I could find. One can use a single "repository" for all the trackers, but then it is not possible to create new tasks from Eclipse.

-- MarcoClemencic - 2009-09-28

 

Ganimede (Eclipse 3.4)

Added:
>
>
WARNING This part is kept for historical reasons and not updated. Please, use Galileo.
 

Basic installation

Download "Eclipse IDE for C/C++ Developers" for your platform at http://www.eclipse.org/downloads/, go to a directory of your choice and unpack it the .tar.gz file. You will find the directory eclipse.
Line: 106 to 287
  Download the latest .jar file from the download page (currently it is http://gstaff.org/colorEditor/cbg.editor_1.2.6.jar) and copy it in the directory eclipse/plugins, then start/re-start eclipse.
Changed:
<
<
I attached to this page a patched version of the .jar file with support for the file project.cmt and requirements. The only problem is that the association of the file types to the editor have to be added by hand, via "Window->Preferences->General->Editors->File Associations" (the name of the editor is "Syntax Coloring Editor").
>
>
I attached to this page a patched version of the .jar file with support for the file project.cmt and requirements. The only problem is that the association of the file types to the editor have to be added by hand, via "Window->Preferences->General->Editors->File Associations" (the name of the editor is "Syntax Coloring Editor").
 

Configuration

Enter the preferences dialog from the menu bar "Window->Preferences".
Line: 174 to 355
  Note: This is not the only way to add a Task Repository for Savannah, but it is the best I could find. One can use a single "repository" for all the trackers, but then it is not possible to create new tasks from Eclipse.
Deleted:
<
<

Galileo (Eclipse 3.5)

TODO
 -- MarcoClemencic - 2009-09-27

META FILEATTACHMENT attachment="LHCb_C++_CodeStyle.xml" attr="" comment="Eclipse CDT Code Style description with LHCb conventions" date="1245759531" name="LHCb_C++_CodeStyle.xml" path="LHCb_C++_CodeStyle.xml" size="15891" stream="LHCb_C++_CodeStyle.xml" user="Main.MarcoClemencic" version="1"

Revision 112009-09-28 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 182 to 182
 
META FILEATTACHMENT attachment="LHCb_C++_CodeStyle.xml" attr="" comment="Eclipse CDT Code Style description with LHCb conventions" date="1245759531" name="LHCb_C++_CodeStyle.xml" path="LHCb_C++_CodeStyle.xml" size="15891" stream="LHCb_C++_CodeStyle.xml" user="Main.MarcoClemencic" version="1"
META FILEATTACHMENT attachment="update_sites.xml" attr="" comment="Suggested Eclipse Update Sites" date="1253897648" name="update_sites.xml" path="update_sites.xml" size="504" stream="update_sites.xml" tmpFilename="/usr/tmp/CGItemp13785" user="clemenci" version="2"
META FILEATTACHMENT attachment="cbg.editor_1.2.6_lhcb.jar" attr="" comment="Patched version of Color Editor with support for CMT" date="1254071086" name="cbg.editor_1.2.6_lhcb.jar" path="cbg.editor_1.2.6_lhcb.jar" size="391376" stream="cbg.editor_1.2.6_lhcb.jar" tmpFilename="/usr/tmp/CGItemp53967" user="clemenci" version="1"
Added:
>
>
META FILEATTACHMENT attachment="cbg.editor_1.2.6.jar" attr="" comment="" date="1254133424" name="cbg.editor_1.2.6.jar" path="cbg.editor_1.2.6.jar" size="391376" stream="cbg.editor_1.2.6.jar" tmpFilename="/usr/tmp/CGItemp23863" user="clemenci" version="1"

Revision 102009-09-27 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 102 to 102
 It may also be interesting to install the "XSL Editor and Tools" plugin, for working with XML Style Sheets.

Color Editor (optional)

Changed:
<
<
The Color Editor plug-in does not have an update site, but it easy enough to install anayway.
>
>
The Color Editor plug-in does not have an update site, but it easy enough to install anyway.
  Download the latest .jar file from the download page (currently it is http://gstaff.org/colorEditor/cbg.editor_1.2.6.jar) and copy it in the directory eclipse/plugins, then start/re-start eclipse.
Added:
>
>
I attached to this page a patched version of the .jar file with support for the file project.cmt and requirements. The only problem is that the association of the file types to the editor have to be added by hand, via "Window->Preferences->General->Editors->File Associations" (the name of the editor is "Syntax Coloring Editor").
 

Configuration

Enter the preferences dialog from the menu bar "Window->Preferences".
Line: 175 to 177
 

Galileo (Eclipse 3.5)

TODO
Changed:
<
<
-- MarcoClemencic - 2009-09-25
>
>
-- MarcoClemencic - 2009-09-27
 
META FILEATTACHMENT attachment="LHCb_C++_CodeStyle.xml" attr="" comment="Eclipse CDT Code Style description with LHCb conventions" date="1245759531" name="LHCb_C++_CodeStyle.xml" path="LHCb_C++_CodeStyle.xml" size="15891" stream="LHCb_C++_CodeStyle.xml" user="Main.MarcoClemencic" version="1"
META FILEATTACHMENT attachment="update_sites.xml" attr="" comment="Suggested Eclipse Update Sites" date="1253897648" name="update_sites.xml" path="update_sites.xml" size="504" stream="update_sites.xml" tmpFilename="/usr/tmp/CGItemp13785" user="clemenci" version="2"
Added:
>
>
META FILEATTACHMENT attachment="cbg.editor_1.2.6_lhcb.jar" attr="" comment="Patched version of Color Editor with support for CMT" date="1254071086" name="cbg.editor_1.2.6_lhcb.jar" path="cbg.editor_1.2.6_lhcb.jar" size="391376" stream="cbg.editor_1.2.6_lhcb.jar" tmpFilename="/usr/tmp/CGItemp53967" user="clemenci" version="1"

Revision 92009-09-25 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 81 to 81
 To develop Python code, you need PyDev.

Add the Pydev Update Site to the list:

Changed:
<
<
>
>
 and install "Pydev for Eclipse" and "Pydev Mylyn Integration".

If interested, you may also install the "Pydev Extensions" (non-free, read carefully the license agreement when you install it).

Line: 143 to 143
 
    • gdd.dtd
    • genConf
    • QMTest
Added:
>
>
    • *.launch
 

Customization

Savannah

Line: 174 to 175
 

Galileo (Eclipse 3.5)

TODO
Changed:
<
<
-- MarcoClemencic - 26 Jun 2009
>
>
-- MarcoClemencic - 2009-09-25
 
META FILEATTACHMENT attachment="LHCb_C++_CodeStyle.xml" attr="" comment="Eclipse CDT Code Style description with LHCb conventions" date="1245759531" name="LHCb_C++_CodeStyle.xml" path="LHCb_C++_CodeStyle.xml" size="15891" stream="LHCb_C++_CodeStyle.xml" user="Main.MarcoClemencic" version="1"
Changed:
<
<
META FILEATTACHMENT attachment="update_sites.xml" attr="" comment="Suggested Eclipse Update Sites" date="1246021214" name="update_sites.xml" path="update_sites.xml" size="515" stream="update_sites.xml" user="Main.MarcoClemencic" version="1"
>
>
META FILEATTACHMENT attachment="update_sites.xml" attr="" comment="Suggested Eclipse Update Sites" date="1253897648" name="update_sites.xml" path="update_sites.xml" size="504" stream="update_sites.xml" tmpFilename="/usr/tmp/CGItemp13785" user="clemenci" version="2"

Revision 82009-07-08 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 99 to 99
 
Eclipse XML Editor and Tools
collection of plugins to work with XML files.
Web Developer Tools
collection of plugins to work with web pages.
Added:
>
>
It may also be interesting to install the "XSL Editor and Tools" plugin, for working with XML Style Sheets.
 

Color Editor (optional)

The Color Editor plug-in does not have an update site, but it easy enough to install anayway.

Revision 62009-06-26 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

Instructions to configure the Eclipse IDE for LHCb

Line: 55 to 55
 Probably, the first thing you want to do is to update the pre-bundled plugins. Select the menu "Help->Software Updates...", select the tab "Installed Software" and click on the button "Update...". Sometimes there are problems with some updates, but usually it is enough to remove and re-add the corresponding update site.

Extensions

Added:
>
>
There are a few Eclipse Update Sites that should be added to Eclipse. They are listed in the following sections, but, for commodity, I attached an XML file that can be imported in the configuration page for the management of size to add all of them: https://twiki.cern.ch/twiki/pub/LHCb/EclipseConfiguration/update_sites.xml
 

Subversion

To be able to work with a Subversion (SVN) repository, you need to install a "Team Provider" and a "Connector".
Line: 167 to 169
 

Galileo (Eclipse 3.5)

TODO
Changed:
<
<
-- MarcoClemencic - 23 Jun 2009
>
>
-- MarcoClemencic - 26 Jun 2009
 
META FILEATTACHMENT attachment="LHCb_C++_CodeStyle.xml" attr="" comment="Eclipse CDT Code Style description with LHCb conventions" date="1245759531" name="LHCb_C++_CodeStyle.xml" path="LHCb_C++_CodeStyle.xml" size="15891" stream="LHCb_C++_CodeStyle.xml" user="Main.MarcoClemencic" version="1"
Added:
>
>
META FILEATTACHMENT attachment="update_sites.xml" attr="" comment="Suggested Eclipse Update Sites" date="1246021214" name="update_sites.xml" path="update_sites.xml" size="515" stream="update_sites.xml" user="Main.MarcoClemencic" version="1"

Revision 52009-06-26 - MarcoClemencic

Line: 1 to 1
Changed:
<
<
META TOPICPARENT name="Main.MarcoClemencic"
>
>
META TOPICPARENT name="LHCbComputing"
 

Instructions to configure the Eclipse IDE for LHCb

Prerequisites

Line: 22 to 22
 -Xmx256m -XX:MaxPermSize=256m
Changed:
<
<
Change the last tree lines with
-Xms128m
-Xmx1200m
-XX:MaxPermSize=400m
and add the line
>
>
Change the line -Xmx256m with -Xmx1024m and add the line
 
-Duser.name=<your name>
Changed:
<
<
(replacing with your name). Just before the line -vmargs, add
>
>
(replacing with your name). Just before the line -vmargs, add (if not present)
 
--launcher.XXMaxPermSize
256m
-vm
<path/to/preferred/java>
Changed:
<
<
The value of <path/to/preferred/java> is system dependent. If the version of java that comes with the system is good enough (on Win32 is the one you installed), you can skip that line, otherwise you have to specify the path to the java executable (see http://wiki.eclipse.org/Eclipse.ini for more information).
>
>
The value of <path/to/preferred/java> is system dependent. If the version of java that comes with the system is good enough (on Win32 is the one you installed), you can skip that line, otherwise you have to specify the path to the java executable (see http://wiki.eclipse.org/Eclipse.ini for more information). Note: the preferred JRE, can also be selected creating a symlink called jre in the eclipse directory pointing to the actual jre location, thus making the -vm part of eclipse.ini unnecessary.
  At the end you should have something like (that's mine):
Line: 53 to 47
 -Dosgi.requiredJavaVersion=1.5 -Xms128m -Xmx1200m
Deleted:
<
<
-XX:MaxPermSize=400m
 -Duser.name=Marco Clemencic
Line: 71 to 64
  I'm not going to discuss which is best, I choose Subversive because it seems better to me.
Changed:
<
<
Add the following update sites to your list:
Subversive Site
http://download.eclipse.org/technology/subversive/0.7/update-site/
>
>
Add the following update site to your list:
 
Subversive SVN Connectors Site
http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/

Then select the components:

Changed:
<
<
Subversive Site
>
>
Eclipse
 
    • Subversive SVN Team Provider
    • Subversive SVN Integration for the Mylyn Project
Subversive SVN Connectors Site
Line: 98 to 90
  Add the update site http://download.eclipse.org/tools/mylyn/update/incubator and install the plugin "Mylyn Connector: Web Templates".
Changed:
<
<

HTML/XML

>
>

HTML/XML (optional)

 The plug-ins to work with XML and HTML are in the main Eclipse Update Site, so there is no need to add a new one.

Plugins to install (with their dependencies):

Eclipse XML Editor and Tools
collection of plugins to work with XML files.
Web Developer Tools
collection of plugins to work with web pages.
Added:
>
>

Color Editor (optional)

The Color Editor plug-in does not have an update site, but it easy enough to install anayway.

Download the latest .jar file from the download page (currently it is http://gstaff.org/colorEditor/cbg.editor_1.2.6.jar) and copy it in the directory eclipse/plugins, then start/re-start eclipse.

 

Configuration

Enter the preferences dialog from the menu bar "Window->Preferences".

Revision 42009-06-23 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="Main.MarcoClemencic"

Instructions to configure the Eclipse IDE for LHCb

Line: 140 to 140
 
    • genConf
    • QMTest
Added:
>
>

Customization

Savannah

The "Web Templates" connector allows the connection of the Mylyn feature to the savannah repository.

These are the steps needed to add "Gaudi Patches"

  • Open the "Task Repository" view (from the dialog "Window->Show View->Other")
  • Click on the "Add Task Repository" button (or the entry in the context menu of the view)
  • Select "Web Template", then "Next"
  • Fill the form with the values:
    Server
    https://savannah.cern.ch/patch/?group=gaudi
    Label
    Gaudi Patches
    Additional Settings
    add the parameters group -> gaudi and tracker -> patch
    Advanced Configuration
    Task URL
    https://savannah.cern.ch/${tracker}/?
    New Task URL
    ${serverUrl}&func=additem
    Query Request URL
    ${serverUrl}&chunksz=150&report_id=100
    Query Pattern
    <tr.*?prior[a-z]({Status}closed)?.*?#({Id}[0-9]+).*?/td>\n<td ><a.*?>({Description}.*?)</a></td>\n<td >[-0-9 :]*?</td>\n<td >({dummy}<a.*?>({Owner}.+?)</a>|None)</td>
  • Click on "Finish" and say "Yes" when asked to create a new query on the created repository.
  • Accept the defaults in the form for the new query.
  • Open the "Task List" view from the dialog "Window->Show View->Other".

Other repositories can be created using the same "Advanced Configuration" and changing "Server" and "Additional Settings" (reminder: the tracker is one of patch, task or bugs).

It is possible to create advanced queries (e.g. bugs assigned to somebody)... TODO

Note: This is not the only way to add a Task Repository for Savannah, but it is the best I could find. One can use a single "repository" for all the trackers, but then it is not possible to create new tasks from Eclipse.

 

Galileo (Eclipse 3.5)

TODO

Revision 32009-06-23 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="Main.MarcoClemencic"

Instructions to configure the Eclipse IDE for LHCb

Line: 60 to 60
 Now you are ready to start Eclipse: go to the eclipse directory and launch ./eclipse (there is no need to go there, you can also use the full path to the eclipse executable.

Probably, the first thing you want to do is to update the pre-bundled plugins. Select the menu "Help->Software Updates...", select the tab "Installed Software" and click on the button "Update...". Sometimes there are problems with some updates, but usually it is enough to remove and re-add the corresponding update site.

Deleted:
<
<

Extensions

Preliminary
 
Added:
>
>

Extensions

 

Subversion

To be able to work with a Subversion (SVN) repository, you need to install a "Team Provider" and a "Connector".
Line: 91 to 90
  and install "Pydev for Eclipse" and "Pydev Mylyn Integration".
Changed:
<
<
If interested, you may also install the "Pydev Extensions" (non-free).
>
>
If interested, you may also install the "Pydev Extensions" (non-free, read carefully the license agreement when you install it).
 

Mylyn Web Templates Connector

There is a very interesting Connector in the the incubator repository of Mylyn: Web Templates.
Line: 99 to 98
  Add the update site http://download.eclipse.org/tools/mylyn/update/incubator and install the plugin "Mylyn Connector: Web Templates".
Added:
>
>

HTML/XML

The plug-ins to work with XML and HTML are in the main Eclipse Update Site, so there is no need to add a new one.

Plugins to install (with their dependencies):

Eclipse XML Editor and Tools
collection of plugins to work with XML files.
Web Developer Tools
collection of plugins to work with web pages.

Configuration

Enter the preferences dialog from the menu bar "Window->Preferences".

Note the the preferences are workspace specific, so you will need to re-apply them to every new workspace (you can also make a copy of an empty workspace as a template).

General

Editors
Text Editors
set "Displayed tab width" to 8, enable "Show print margin" (optional)

C/C++

Build Console
increase the number of lines for the output (e.g. 8192)
Code Style
a predefined Code Style file for LHCb is attached to this page, you just have to download it and import it: https://twiki.cern.ch/twiki/pub/LHCb/EclipseConfiguration/LHCb_C++_CodeStyle.xml
Editor
Folding
Enable all folding types, select only "Macros" and "Inactive Preprocessor Branches" for initial folding (uncheck the others).
File Types
add *.icc and *.icpp as "C++ Source File"
Task Tags
add FIXME with priority "High"

Pydev

Interpreter - Python
add (at least) a python interpreter, probably you want to add the one you find with which python (which is the one that LbLogin adds to the path)

Team

Ignored Resources
add the following patterns to the list
  • *-slc5-*
  • slc4_*_gcc*
  • win32_vc71_dbg
  • osx104_*_gcc*
  • setup.*
  • cleanup.*
  • Makefile
  • NMake
  • install.history
  • gdd.dtd
  • genConf
  • QMTest
 

Galileo (Eclipse 3.5)

TODO

-- MarcoClemencic - 23 Jun 2009

Added:
>
>
META FILEATTACHMENT attachment="LHCb_C++_CodeStyle.xml" attr="" comment="Eclipse CDT Code Style description with LHCb conventions" date="1245759531" name="LHCb_C++_CodeStyle.xml" path="LHCb_C++_CodeStyle.xml" size="15891" stream="LHCb_C++_CodeStyle.xml" user="Main.MarcoClemencic" version="1"

Revision 22009-06-23 - MarcoClemencic

Line: 1 to 1
 
META TOPICPARENT name="Main.MarcoClemencic"
Changed:
<
<

Instructions to configure the Eclipse IDE for LHCb

>
>

Instructions to configure the Eclipse IDE for LHCb

 

Prerequisites

Java

I have problems with the version of the Java Runtime Environment distributed with SLC5 (java-1.6.0-openjdk-1.6.0.0-0.30.b09), the version in SLC4 is simply too old.

I suggest to take the latest version of the JRE from http://java.com (at least 1.6.0.10). You can chose any kind of installation, just remember if you got the 32 or 64 bit version.

Changed:
<
<

Basic installation

Ganimede (Eclipse 3.4)

>
>

Ganimede (Eclipse 3.4)

Basic installation

 Download "Eclipse IDE for C/C++ Developers" for your platform at http://www.eclipse.org/downloads/, go to a directory of your choice and unpack it the .tar.gz file. You will find the directory eclipse.

The first thing to do is to edit the file eclipse.ini in that directory. The original looks more or less like:

Line: 59 to 59
  Now you are ready to start Eclipse: go to the eclipse directory and launch ./eclipse (there is no need to go there, you can also use the full path to the eclipse executable.
Changed:
<
<

Galileo (Eclipse 3.5)

TODO
>
>
Probably, the first thing you want to do is to update the pre-bundled plugins. Select the menu "Help->Software Updates...", select the tab "Installed Software" and click on the button "Update...". Sometimes there are problems with some updates, but usually it is enough to remove and re-add the corresponding update site.

Extensions

Preliminary

Subversion

To be able to work with a Subversion (SVN) repository, you need to install a "Team Provider" and a "Connector".

There are two possible "Team Provider" plugins:

I'm not going to discuss which is best, I choose Subversive because it seems better to me.

Add the following update sites to your list:

Subversive Site
http://download.eclipse.org/technology/subversive/0.7/update-site/
Subversive SVN Connectors Site
http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/

Then select the components:

Subversive Site
  • Subversive SVN Team Provider
  • Subversive SVN Integration for the Mylyn Project
Subversive SVN Connectors Site
  • Subversive SVN Connectors
  • SVNKit 1.2.2 Implementation
 
Changed:
<
<

Extensions

Update

>
>

Python

To develop Python code, you need PyDev.

Add the Pydev Update Site to the list:

and install "Pydev for Eclipse" and "Pydev Mylyn Integration".

If interested, you may also install the "Pydev Extensions" (non-free).

Mylyn Web Templates Connector

There is a very interesting Connector in the the incubator repository of Mylyn: Web Templates. It allows (a basic) usage of savannah from Eclipse (once configured).

Add the update site http://download.eclipse.org/tools/mylyn/update/incubator and install the plugin "Mylyn Connector: Web Templates".

Galileo (Eclipse 3.5)

TODO
  -- MarcoClemencic - 23 Jun 2009

Revision 12009-06-23 - MarcoClemencic

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="Main.MarcoClemencic"

Instructions to configure the Eclipse IDE for LHCb

Prerequisites

Java

I have problems with the version of the Java Runtime Environment distributed with SLC5 (java-1.6.0-openjdk-1.6.0.0-0.30.b09), the version in SLC4 is simply too old.

I suggest to take the latest version of the JRE from http://java.com (at least 1.6.0.10). You can chose any kind of installation, just remember if you got the 32 or 64 bit version.

Basic installation

Ganimede (Eclipse 3.4)

Download "Eclipse IDE for C/C++ Developers" for your platform at http://www.eclipse.org/downloads/, go to a directory of your choice and unpack it the .tar.gz file. You will find the directory eclipse.

The first thing to do is to edit the file eclipse.ini in that directory. The original looks more or less like:

-showsplash
org.eclipse.platform
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
Change the last tree lines with
-Xms128m
-Xmx1200m
-XX:MaxPermSize=400m
and add the line
-Duser.name=<your name>
(replacing with your name). Just before the line -vmargs, add
--launcher.XXMaxPermSize
256m
-vm
<path/to/preferred/java>
The value of <path/to/preferred/java> is system dependent. If the version of java that comes with the system is good enough (on Win32 is the one you installed), you can skip that line, otherwise you have to specify the path to the java executable (see http://wiki.eclipse.org/Eclipse.ini for more information).

At the end you should have something like (that's mine):

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
/scratch/marcocle/contrib/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms128m
-Xmx1200m
-XX:MaxPermSize=400m
-Duser.name=Marco Clemencic

Now you are ready to start Eclipse: go to the eclipse directory and launch ./eclipse (there is no need to go there, you can also use the full path to the eclipse executable.

Galileo (Eclipse 3.5)

TODO

Extensions

Update

-- MarcoClemencic - 23 Jun 2009

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback