Red Hat Developer Tools-1-Using Eclipse 4.14.0-En-US
Red Hat Developer Tools-1-Using Eclipse 4.14.0-En-US
Olga Tikhomirova
[email protected]
Supriya Takkhi
Peter Macko
Kevin Owen
Yana Hontyk
Legal Notice
Copyright © 2020 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons
Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is
available at
http://creativecommons.org/licenses/by-sa/3.0/
. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must
provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert,
Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift,
Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States
and other countries.
Linux ® is the registered trademark of Linus Torvalds in the United States and other countries.
XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States
and/or other countries.
MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and
other countries.
Node.js ® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the
official Joyent Node.js open source or commercial project.
The OpenStack ® Word Mark and OpenStack logo are either registered trademarks/service marks
or trademarks/service marks of the OpenStack Foundation, in the United States and other
countries and are used with the OpenStack Foundation's permission. We are not affiliated with,
endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
Abstract
Information for users installing and starting to use Red Hat Developer Tools.
Table of Contents
Table of Contents
.CHAPTER
. . . . . . . . . . 1.. .ECLIPSE
. . . . . . . . . 4.14.0
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. . . . . . . . . . . . .
1.1. GETTING ACCESS TO ECLIPSE ON RED HAT ENTERPRISE LINUX 7 5
Enabling the Red Hat Developer Tools debuginfo Repositories 6
Additional Resources 6
1.2. INSTALLING ECLIPSE 6
1.3. USING ECLIPSE 7
1.3.1. Using the Red Hat Developer Toolset Toolchain 7
1.3.2. Using the Red Hat Enterprise Linux Toolchain 7
1.4. ADDITIONAL RESOURCES 8
. . . . . . . . . . . 2.
CHAPTER . . CHANGES
. . . . . . . . . . . .IN
. . ECLIPSE
. . . . . . . . . .4.14.0
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
..............
.CHAPTER
. . . . . . . . . . 3.
. . KNOWN
. . . . . . . . . ISSUES
. . . . . . . . IN
. . . ECLIPSE
. . . . . . . . . .4.14.0
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
..............
3.1. ECLIPSE HANGS ON STARTUP 12
3.2. RUNNING A WORKSPACE CREATED IN OLDER ECLIPSE VERSION CAUSES "INITIALIZING ECLIPSE
ERROR REPORTING SYSTEM" ERROR 12
3.3. NULLPOINTEREXCEPTION WITH SOME PLUG-INS FROM THIRD-PARTY SOURCES 12
3.4. DEBUGINFO CONFLICTS 12
3.5. CONFLICT BETWEEN THE RHSCL RH-MAVEN33-SCLDEVEL AND RH-MAVEN35-SCLDEVEL
PACKAGES 13
3.6. PYDEV USERS MAY EXPERIENCE ISSUES WITH THE PIP INTEGRATION 13
3.7. PYDEV SHORTCUT TO MANAGE PYTHON MODULES DOES NOT WORK 13
3.8. INCOMPATIBILITIES BETWEEN ECLIPSE SUBCLIPSE AND BASE RHEL SUBVERSION 13
3.9. TYCHO CONFLICTS 14
1
Red Hat Developer Tools 1 Using Eclipse 4.14.0
2
CHAPTER 1. ECLIPSE 4.14.0
Eclipse is a powerful development environment that provides tools for each phase of the development
process. It integrates a variety of disparate tools into a unified environment to create a rich
development experience, provides a fully configurable user interface, and features a pluggable
architecture that allows for extension in a variety of ways. For instance, the Valgrind plug-in allows
programmers to perform memory profiling, that is otherwise performed on the command line through
the Eclipse user interface.
For an overview on how to develop applications for Red Hat JBoss Middleware or for support for
OpenShift Tools, see Red Hat Developer Studio.
Package Description
3
Red Hat Developer Tools 1 Using Eclipse 4.14.0
Package Description
rh-eclipse-eclipse-manpage The Man Page plug-in that allows you to view manual
pages in Eclipse.
rh-eclipse-eclipse-perf The Perf plug-in that integrates the perf tool with
Eclipse.
4
CHAPTER 1. ECLIPSE 4.14.0
Package Description
1. Choose the system variant: workstation or server and modify the following commands:
NOTE
We recommend developers to use Red Hat Enterprise Linux Server for access to
the widest range of development tools.
Repositories are enabled. You can install Red Hat Eclipse as described in Section 1.2, “Installing Eclipse”.
5
Red Hat Developer Tools 1 Using Eclipse 4.14.0
NOTE
Red Hat Developer Tools also provides the debuginfo packages for all architecture-dependent RPMs
included in the repositories. These packages are useful for core-file analysis and for debugging of
Eclipse itself.
1. Enable the Red Hat Developer Tools debuginfo repositories, replace variant with the Red Hat
Enterprise Linux system variant (server or workstation):
For details about installing, understanding, and using the debuginfo packages, refer to Debugging a
Running Application.
Additional Resources
For more information on how to register your system using Red Hat Subscription Management
and associate it with subscriptions, see the Red Hat Subscription Management collection of
guides.
For detailed instructions on subscription to Red Hat Software Collections, see the Red Hat
Developer Toolset User Guide, Section 1.4. Getting Access to Red Hat Developer Toolset .
For a list of available components, see Table 1.1, “Eclipse Components Included in rh-eclipse package
collection:”.
NOTE
Eclipse fully supports C, C++, and Java development, but does not provide support for
the Fortran programming language.
NOTE
Prerequisites
Repositories enabled as per Section 1.1, “Getting Access to Eclipse on Red Hat Enterprise Linux
7”.
Procedure
6
CHAPTER 1. ECLIPSE 4.14.0
1. Click Applications > Programming > Red Hat Eclipse, or type the following at a shell prompt:
2. During its startup, Eclipse prompts you to select a workspace that is a directory in which you
want to store your projects. You can either use ~/workspace/, which is the default option, or
click Browse to browse your file system and select a custom directory. Additionally, you can
select the Use this as the default and do not ask againcheck box to prevent Eclipse from
displaying this dialog box the next time you run this development environment.
For detailed instructions on how to install the devtoolset-9.0-toolchain package on your system, see
the Red Hat Developer Toolset User Guide Section 1.5. Installing Red Hat Developer Toolset .
IMPORTANT
Discard all previous build results for projects previously built with the Red Hat
Enterprise Linux version of the GNU Compiler Collection. To do so, open the project in
Eclipse and select Project > Clean from the menu.
To configure Eclipse to explicitly use the Red Hat Enterprise Linux system versions of the tools for the
current project:
1. In the C/C++ perspective, click Project > Properties to open the project properties.
2. In the menu on the left-hand side of the dialog box, click C/C++ Build > Settings.
a. Select GCC C Compiler or Cross GCC Compiler and change the value of the Command
7
Red Hat Developer Tools 1 Using Eclipse 4.14.0
a. Select GCC C Compiler or Cross GCC Compiler and change the value of the Command
field to:
/usr/bin/gcc
b. Select GCC C Linker or Cross GCC Linker and change the value of the Command field to:
/usr/bin/gcc
c. Select GCC Assembler or Cross GCC Assembler and change the value of the Command
field to:
/usr/bin/as
a. Select GCC C Compiler* or *Cross G Compiler and change the value of the Command
field to:
/usr/bin/g++
b. Select GCC C Compiler or Cross GCC Compiler and change the value of the Command
field to:
/usr/bin/gcc
c. Select GCC C Linker* or *Cross G Linker and change the value of the Command field to:
/usr/bin/g++
d. Select GCC Assembler or Cross GCC Assembler and change the value of the Command
field to:
/usr/bin/as
Installed Documentation
Eclipse includes a built-in help system that provides extensive documentation for each
integrated feature and tool.
See Also
Chapter 2, Changes in Eclipse 4.14.0 provides a list of selected features and improvements over
the Eclipse development environment included in the previous release of Developer Tools.
The Red Hat Developer Toolset chapter in the User Guide provides an overview of Red Hat
8
CHAPTER 1. ECLIPSE 4.14.0
The Red Hat Developer Toolset chapter in the User Guide provides an overview of Red Hat
Developer Toolset and more information on how to install it on your system.
The GNU Compiler Collection (GCC) chapter in the User Guide provides information on how to
compile programs written in C, C++, and Fortran on the command line.
9
Red Hat Developer Tools 1 Using Eclipse 4.14.0
The following is an abridged list of new features and compatibility changes in this release.
For details on how to use the new features, see the built-in Eclipse documentation.
eclipse 4.13.0 → 4.14.0 : Eclipse IDE and JDT/PDE plug-ins were updated to 4.14. The highlights
include:
Quick Access is improved and is now called Find Actions. Among the improvements are
finding workspace files or finding text in file contents. See
https://www.eclipse.org/eclipse/news/4.14/platform.php for details.
Show problem markers inline. To enable this feature, click General > Editors > Text Editors
preference page. See https://www.eclipse.org/eclipse/news/4.14/platform.php for details.
Backspace/delete can treat spaces as tabs. To enable this feature, click General > Editors >
Text Editors preference page. See
https://www.eclipse.org/eclipse/news/4.14/platform.php for details.
eclipse-cdt 9.9.0 → 9.10.0: The C/C++ Development Tooling was updated to 9.10.0. The
changes include new Code Analysis checkers or the Compilation Database Parser. For details,
see the upstream release notes at https://wiki.eclipse.org/CDT/User/NewIn910.
eclipse-linuxtools 7.4.0 → 7.5.0: The Linuxtools plug-ins were updated to 7.5.0 which is
focused on bug fixes. For details, see the upstream release notes at
https://wiki.eclipse.org/Linux_Tools_Project/News/NewIn75.
eclipse-pydev 7.3.0 → 7.4.0: The PyDev plug-in was updated to 7.4.0 with debugger
improvements and Python 3.8 support. For details, see the upstream release notes at
http://www.pydev.org/history_pydev.html.
eclipse-egit/jgit 5.5.0 → 5.6.0: The Git integration plug-ins were updated to 5.6.0. There are
various improvements like pulling in parallel or selectable branches in the History view. For
details, see the upstream release notes at
https://projects.eclipse.org/projects/technology.jgit/releases/5.6.0 and
https://projects.eclipse.org/projects/technology.egit/releases/5.6.0.
Deprecations
1. Removed packages
The following packages, representing m2e extensions, are removed from the collection:
eclipse-m2e-apt
eclipse-m2e-egit
10
CHAPTER 2. CHANGES IN ECLIPSE 4.14.0
eclipse-m2e-mavenarchiver
eclipse-m2e-tycho
eclipse-m2e-wtp
The respective extensions are available in the m2e Marketplace. In Eclipse, open the m2e Marketplace
using the Find Actions menu:
The Dockerfile editor provided by eclipse-linuxtools was deprecated by the upstream project. It is
replaced by a newer Dockerfile editor, which is available at:
Note that this pre-configured update website is disabled by default. To enable it, change
the Available Software Sites preferences.
2. Restart Eclipse.
11
Red Hat Developer Tools 1 Using Eclipse 4.14.0
Consequence: Only the Eclipse splashscreen is shown without displaying the workspace selection
dialog.
Workaround: Kill the offending Eclipse process by finding its PID and sending the process a kill signal.
Example:
$ jps
30066 Jps
31631 org.eclipse.equinox.launcher_1.5.300.v20190308-0658.jar
$ kill 31631
Result: Once the offending process has been killed, Eclipse can be restarted normally.
Workaround: Restart Eclipse with the -clean option to clear its dependency resolution cache:
Consequence: The installation of the rh-eclipse debuginfo package may fail if the same debuginfo
package from the rh-eclipse48 collection is installed.
Workaround: To use debuginfo for the rh-eclipse collection, debuginfo packages from the rh-
12
CHAPTER 3. KNOWN ISSUES IN ECLIPSE 4.14.0
Workaround: To use debuginfo for the rh-eclipse collection, debuginfo packages from the rh-
eclipse48 collection should first be uninstalled using the command yum remove rh-
eclipse48*debuginfo.
Result: The installation of the debuginfo packages from the rh-eclipse collection is successful.
There is a conflict between the RHSCL rh-maven33-scldevel and rh-maven35-scldevel packages. This
affects the rh-eclipse-scldevel package (note that this package is not installed by default).
Consequence: Attempts to use this shortcut result in an SWTException in the workspace log.
Workaround: Users can continue to manage their Python modules using the PyDev > Interpreters
preference.
$ svn up
svn: E155021: This client is too old to work with the working copy
Workaround: Use the pure-Java implementation of Subversion used by Eclipse Subclipse on the
command line:
Now, use the jsvn command anywhere you would normally use the svn command:
$ jsvn up
Updating '.':
At revision 16476.
13
Red Hat Developer Tools 1 Using Eclipse 4.14.0
Consequence: The installation of rh-eclipse-tycho package may fail when the rh-eclipse48-tycho
package is already installed.
Workaround: Note that only users that want to build or re-build Eclipse or its plug-ins need tycho. If
needed, uninstall the rh-eclipse48-tycho package using the yum remove rh-eclipse48-tycho
command before attempting to install the rh-eclipse-tycho package.
14