[SOLVED] Eclipse + Arduino Plugin = No code completion?

Hello Everyone!

I'm facing a problem related to Eclipse IDE with Arduino Plugin (Site) by Jan Baeyens. I'm running Arduino IDE V1.6.0, Eclipse Luna 4.4.2 and Arduino Plugin v2.4, all in Windows 7.

Everything is installed correctly, and I was able to compile and to upload several codes from the IDE. However, when I'm editing a .ino file, Eclipse don't give me any code completion (ctrl+space).

For example, in this code:

#include <LiquidCrystal.h>

LiquidCrystal lcd(10, 9, 5, 4, 3, 2);

void setup(){
      lcd.begin(16,2);
      lcd.setCursor(1,0);
      lcd.print("Hello")
}

void loop(){}

When I type lcd. and try the ctrl+space, Eclipse can't figure out what methods could complete the sentence. But, when I compile and upload, everything works as it shoulds.

I already tried going to Window > Preferences > C/C++ > Editor > Content Assist > Advanced and marking all the proposals. But it was useless.

Could you help me figure out whats wrong?

Thanks!

I had the same problem. The solution/workaround is very simple (or frustrating! as in why didn't I do that earlier?):

tl;dr:
Force re-indexing project files. How? one way I can think of: build the project once.

Longer description:
Before indexing the code, eclipse won't pick up available functions, classes, constants and ... from existing files, in this case Arduino library files. In first build, C++ and header files are automatically (re-)indexed, and from now on you may happily get syntax completion as the available functions dictionary from external source files now exist for project.
I added the #include "Arduino.h" to top of my source code, don't know if it's necessary or the plugin takes care of it like arduino official IDE.

Thanks! That Helped!