Note: some of this page is pretty old.
See also PyDev.
Preferences → General → Keys
|References in Project||Ctrl+Shift+G|
Go to Search menu → Search (Ctrl+H), click the "Customize…" button
Check "Remember last used page" and/or deselect unwanted search pages.
I installed the CSS editor, but the changes I made seemed to mostly go away after restart (trying to make the tabs smaller).
Some of the plugins that I might normally install
while [ $# -gt 0 ]; do
everything after the
# gets treated as a comment.
It seems that the "attachment" to either Subclipse or Subversive is stored in the workspace, not with the project. Specifically it seems to be in the project's directory in
.metadata/.plugins/org.eclipse.core.resources/.projects in a binary file.
Neither makes it easy to switch between them within the same workspace; the Team→Share menu item is missing when attached to the other provider.
The ways I've found so far to switch from one to the other are:
It does appear to be possible to have both installed at once, though it's confusing (they're both called "SVN", e.g. in the Share dialog and the Preferences window). I'm not sure if this would cause any problems.
To debug an application remotely, we run
gdbserver on the "target machine", then connect to it with
gdb running on the "host machine".
gdbserver is provided the the
gdb package. On RHEL6 and RHEL7, it is in the
Start the application under
gdbserver (similar to starting in
gdbserver host:<port> <program> <arguments...>
gdbserver host:2345 emacs foo.txt
To attach with
ddd, start the debugger against the binary as usual, then run this command in the console, providing the target hostname/IP and port:
target remote <target hostname or IP>:<port number>
To attach with Eclipse:
gdbservermanually as described above
"Automatic Remote Debugging" (added in CDT 8; see http://wiki.eclipse.org/CDT/User/NewIn80#C.2FC.2B.2B_Remote_Application_launch), will automatically copy the binary to the remote machine and launch it (starting gdbserver on the target host). For this to work, you must install the "C++ Remote Launch" component, as well as "Remote System Explorer".
This is an example of how the debugging configuration will look when "Automatic Remote Debugging" is enabled:
Sometimes it can be useful to hide syntax that CDT's parser doesn't understand. You can do this with the preprocessor by checking for the
For example, Eclipse may have problems the Boost "for each" macro, so in one case I gave it an alternate definition that Eclipse could more easily understand:
#ifdef __CDT_PARSER__ // Fix Eclipse CDT parsing error #define BOOST_FOREACH(a, b) for(a : b) #endif
Sometimes workspaces get corrupted or crufty and need to be discarded.
It may be possible to move projects from one workspace to another by copying the files in
<workspace>\.metadata\.plugins\org.eclipse.core.resources\.projects\. See https://stackoverflow.com/questions/251116/where-in-an-eclipse-workspace-is-the-list-of-projects-stored.
In Eclipse 3.6, but I think it's been fixed.
If it doesn't work, go to Preferences, C/C++, Editor, Content Assist, Advanced; click Restore Defaults.
See Eclipse Bug #309074.
To make them work, go to the Customize Perspective dialog. In the Command Groups Availability tab, check "SVN". You may want to disable SVN (or some of the buttons) in the Tool Bar Visibility tab if you want reduce toolbar clutter.
This shows up with 3.6, but it seems to be okay in 3.5. Maybe there was some change in the input code.
Apparently some versions of GTK+ use
Ctrl+Shift+<hex> to enter unicode characters. This manifests in Eclipse when you use a shortcut Ctrl+Shift+[A-F0-9]: it shows the letter/number underlined, clears the selected text, and the bound command is not activated.
It looks like setting the environment variable
xim will fix it.
Seems to be related to Red Hat Bug 647737, but it crashed for me even though I was using the Sun JDK (on Ubuntu 10.10, Eclipse 3.6).
Adding the line:
eclipse.ini seemed to fix the issue for me.
I can't figure out what causes this, but it's extremely annoying. It seems to go away after I create a new .cpp file and use the symbols there.
On one particular development machine, Eclipse is locking up quite often, with 100% CPU, for about 5-10 seconds at a time.
Additionally, "Mark Occurrences" is working very slowly, if at all.
Tried so far:
With some (but not all) applications, stepping or even continuing will hang the debugger–top shows gdb at 100% CPU–for a long time.
Theory: possibly the version of gdb (see e.g. Eclipse bug #324522). The version in this case is 7.0.1-42.el5.centos on CentOS 5. Going to try compiling the latest gdb 7.4.1.
Result: gdb 7.4.1 does appear to resolve this particular issue.
The setting is Preferences, General, Appearance, Label Decorations, under which there is an "SVN" checkbox. Sometimes this checkbox gets unchecked, possibly even immediately after clicking okay.
It may be useful to look at the Error Log view (Window → Show View). In one particular case, this was caused by an incorrect SVN path.
Here is one mailing list thread about the issue: http://old.nabble.com/Label-decoration-getting-disabled-td14489747.html
The code analysis appears to be working (e.g. shows an error if methods are misspelled), but Ctrl+Space always produces "No Default Proposals".
I was able to re-enable completion by going to "Preferences, C/C++, Editor, Content Assist, Advanced" and clicking "Restore Defaults". The "Parsing-based Proposals" kind was disabled; I don't know how it got that way.
svn: Commit failed (details follow): svn: Negotiate authentication failed: 'No valid credentials provided'
I was only able to get it working by using the JavaHL bindings instead of SVNKit. In Ubuntu/Mint, install
libsvnclientadapter-java. On RHEL,
subversion-javahl (or if using CollabNet Subversion, make sure its lib directory is on your library path).
Several possible solutions. Most likely there's something wrong with the workspace, so if all else fails, try creating a new one.
Several ways of fixing a workspace are given here: https://stackoverflow.com/questions/207843/how-do-i-prevent-eclipse-from-hanging-on-startup
Sometimes it's a big hard to find the release notes. I think they're always be available in the included help files. For CDT, there are usually links from http://wiki.eclipse.org/CDT.
http://wiki.eclipse.org/CDT/User/NewIn80 (also in the online help)
This was released along with Juno (4.2) and does not have a codename.
Builds are available at http://download.eclipse.org/eclipse/downloads/eclipse3x.html. Only the SDK build is available (as opposed to the various flavors), but of course the necessary plugins should be downloadable as usual.
Eclipse 3.8 vs 4.2 (Andrey Loskutov, author of VS Presentation plugin, AnyEdit Tools, and other Eclipse plugins)
Probably on the internet somewhere, but I found it in the Eclipse help (What's New on the welcome screen).
-depth 24when running
Requires JRE >= 1.7.
https://wiki.eclipse.org/CDT/User/NewIn87 (there were some additional releases during the year)