Eclipse 3.2.2 content assist not finding classes in the project - linux

In Eclipse 3.2.2 on Linux content assist is not finding classes within the same project. Upgrading above 3.2 is not an option as SWT is not available above 3.2 for Solaris.
I have seen suggestions to clean the workspace, reopen the workspace, run eclipse with the -clean command, none of which has worked.

Go to Java/Editor/Content Assist/Advanced in Preferences, and make sure that the correct proposal kinds are selected. Same kind of thing happened to me when I first moved to 3.4.

Thanks for your last comment it worked partially.
If there is any kind of errors, the content assist wont work. Once fixed, it partially works.
I say partially because, there appear to be a bug, when I do Perl EPIC inheritance ex:
package FG::CatalogueFichier;
use FG::Catalogue;
our #ISA = qw(FG::Catalogue);
use strict;
, the inheritted subroutines are not displayed in the content assist.

Are you sure that "build automatically" in the Project menu is checked? :-)
Another thing: is the Problems view, unfiltered, completely clear of compilation errors and of classpath errors?

I sometimes find I "lose" content assist because the "content assist computers" get disabled.
This is in:
[Workspace]\.metadata\.plugins\org.eclipse.core.runtime\.settings
org.eclipse.jdt.ui.prefs
and I just have to remove this property:
content_assist_disabled_computers=

Related

How to configure "Hover Image Preview" package of sublime text 3

I just Installed this package https://packagecontrol.io/packages/Hover%20Image%20Preview with package control in sublime text 3
now I want to configure it as said in the link, can anyone tell from where I can configure the width and height???
this package do not show up in Preferences>Package Setting
THANKS...
I've been there, it took me a while until I fully realized how Sublime settings work and being changed.
A general suggestion that might help with this issue (and many other you might encounter while working with Sublime):
Read this page carefully, esp. SETTINGS FILES section, pay special attention to the hierarchy of the prefs files.
For me it was a true revelation that set thing straight for good.
Hope it helps you too

ReSharper Settings Grayed Out

Today I tried to made "Code Cleanup" of single file in ReSharper 6.0 (VS 2010). The Code Cleanup dialog did not show up so I tried again.
I then discovered, that the feature is grayed out and when I press hotkey for Code Cleanup, the notification area shows that the "command is not available at the moment".
Even the Code Cleanup settings are hidden. The panel where settings should be shown says that the settings are solution-specific and thus a solution needs to be opened (although it is, however).
All other solution-specific settings and features work, except for Code Cleanup.
I want to avoid re-installing ReSharper or resetting its settings, because otherwise I would need to set it up again (long and annoying work of setting all the options as before re-install).
I am afraid that backing up settings and restoring it again restores the problem as well.
Any suggestions?
Suggestions:
Ensure that the file that you're trying to cleanup is included in your solution.
Try to reopen solution (close and then open again).
Upgrade to 6.1.1, maybe its fixed there.
File a bug report at http://youtrack.jetbrains.com
Both ReSharper 7 and 8 seems to work OK.
I know this is an old answer, but I found a little more insight on this. According to Jerrie Pelser in this blog post from last year, this may have to do with the file being part of a NuGet package. In my case, this was definitely it!
In case of link rot, basically the post mentions that ReSharper will avoid refactoring/code cleaning for files it detects were added as part of NuGet packages. This is similar to how it will not allow code cleanup for generated code.

eclipse xml error

i am programming in eclipse for the first time and when i create a blackberry project i am getting this error in BlackBerry_App_Descriptor.xml as
Description Resource Path Location Type
InvalidRegex: Pattern value '([a-zA-Z_]{1,63}[\s-a-zA-Z_0-9.]{0,63}[;]?)*' is not a valid regular expression. The reported error was: ''-' is an invalid character range. Write '-'.' at column '19'. BlackBerry_App_Descriptor.xml /sample Unknown XML Problem
please help me out
thanks in advance.
I have had the same problem earlier with my first project on BlackBerry using the Eclipse provided on the site.
Though I took a lot of time to get a workaround for this, the solution is surprisingly simple.
Uninstall the JDK 7.x from your Windows system, adjust your path variables to point to another JDK version, preferably 6. There could be other dependencies in your Eclipse environment which need to be set independently to point to the new JDK (try Windows -> Preferences -> Java -> Installed JREs in your Eclipse and voila!)
see? let us know if you still face the problem..
I'm having the same problem as you are. There is a post regarding this issue at http://supportforums.blackberry.com/t5/Java-Development/InvalidRegex-Pattern-value-a-zA-Z-1-63-a-zA-Z-0-9-0-63-is-not-a/td-p/944343
I haven't been able to solve the problem yet, and I am clueless as to what may be causing it. The answers at the blackberry support forums didn't work for me at all. But do try them out. Best of luck.
The deprecated version of the blackberry development IDE for eclipse (version 1.1 of the pluggin) works fine, but is not available for download anymore.

Can't Copy & Paste in Eclipse 3.5

I recently updated my Eclipse to the latest release 3.5 and since then I have a very annoying problem with c&p using the shortcuts.
In an editor (xml, jsp, doesn't matter which one) I try to copy something and paste it somewhere else, nothing happens. When I cut out something and put it somewhere else I sometimes get something else (like a messed up part of my previous selection) or just some whitespaces. This gets even worse when I change lines in between.
First I thought that my keyboard is probably broken but it works just fine in other programs. Then I tried using the context menus' c&p and there it works. Yesterday I managed to get at least an error message when I tried to copy a file in the navigator from one project to another (the message was just "error using copy...bla". no details).
Does anyone else have this problem, or know how to solve it?
I am running on Kubuntu 9.04, and have quite some plugins installed (but only from the Galileo Updates Site), like Birt, Mylin, WST, or Subversive.
For my problem, I had to go to Window > Preferences > Java > Editor > Typing, and uncheck "Update imports"
This must be related to the key mapping, since those shortcuts are defined according to context.
(Column "When", in Preferences / General / Keys)
Check if those shortcuts do not work for any editor (do they work for Java editor?)
If they work for some editor, not for other, then some plugin settings must have re-affected them to another command.
This is caused by various X clipboard managers doing weird things with the clipboard. (bug report).
In XFCE the clipman applet was rolled in XFCE 4.8, and will be the source of these problems.
To fix this in XFCE - kill xfce4-settings-helper. You will need to use Settings Manager -> Session and Startup -> Session to kill it, as otherwise it may restart automatically.
To prevent this starting next time, you will need to remove it from your startup/login programs in Settings Manager > Session and Startup > Application Autostart.
Problem was solved with newer Eclipse releases. I think >= 3.6. Depending on your distribution there may be a (back)port of this (not on my Xubuntu 11.04) within the repositories.
So a tarball installation of Eclipse 4.0 works perfectly for me. Cut&Paste works and I am lucky that my plugins are compatible to 4.0.
Unfortunately Sublime Text has the same problems.
I read somewhere that in KDE maybe Klipper / "Klipper on the panel" conflicts with eclipse copy action.
It's a tool for clipboard history. Try to remove that! It may solve your problem :-/
For me the xfce4-settings-helper killing worked.
Workaround:
You can cut&paste from the compare view. So simply compare the un-copyable file (e.g., local history) with a different version and Control-C what you need there.
In the *.java editor page, right click and select open in text editor. Past your snippet there. Your Snippet will show in the *.java page'
I use Eclipse Kepler for PHP development. It's dumb I know.
None of the solutions suggested here has solved this source of frustration.
I can confirm the copy function works whether shortcut keys are bound or not. As I can copy from eclipse and paste into any other application. Except eclipse.
My solution. Accidental discovery: Eclipse Kepler will allow you to paste outside the php open and close tags and allow you to click and drag the highlighted block of content into into position.
Acceptable solution for small bits of code. Horribly crippling for larger development environments.
For Xming, this resolved the problem for me. In XLaunch uncheck Clipboard (clipboard manager) in the "Specify parameter settings" GUI form.

How do I get Resharper to ignore the Designer file when navigating to a class?

In Resharper, if you ctrl-click the name of a class to naviate to its definition and that has a designer fie, Resharper will ask if I want to go to the X.cs or X.Designer.cs because the class is partial.
Does anyone know how to disable this annoyance so that it just goes to X.cs and ignores designer files?
A workaround I use is Ctrl-Shift-N (ReSharper classic bindings) or Ctrl-T (Visual Studio bindings) and start typing the class name. If you have your classes in files with the same name, you'll then be able to choose the correct one from the dropdown list.
This is a good question. Whenever I have a question like this, I file a suggestion at the ReSharper JIRA site. I'd recommend you do the same.
http://www.jetbrains.net/jira/browse/RSRP
I don't believe you can do what you want at the moment, even with the latest nightly build.
your best bet is to download the nightly build
i have no idea if they addressed this, although i think this is a feature, not an issue.
Nightly Builds

Resources