<div dir="ltr">Hello,<div><br></div><div>I've found strange behaviour of autocomplete - proper autocomplete for my test class</div><div>and no autocomplete for a list of inclusions.</div><div><br></div><div>header:</div>
<div>----------</div><div><div>#ifndef Test_h</div><div>#define Test_h</div><div><br></div><div>class TestClass </div><div>{</div><div>  public:</div><div>    int test_method(int a) {</div><div>      return a * 2;</div><div>
    }</div><div>};</div><div><br></div><div>extern TestClass TestVar;</div><div><br></div><div>#endif</div></div><div><br></div><div>source:</div><div>-----------</div><div><div>#include <test_header.h>\n\</div><div>
int main() {\n\</div><div>  TestVar. ;\n\</div><div>  return 0;\n\</div><div>}</div></div><div><br></div><div>autocomplete for the position after dot is ok - it suggests test_method(), ctor and dtor</div><div><br></div><div>
For the more complex case it suggests nothing:</div><div>headers:</div><div>------------</div><div>HardwareSerial.h  -  class HardwareSerial : public Stream<br></div><div>Stream.h - class Stream : public Print</div><div>Print.g - class Print</div>
<div><br></div><div>source:</div><div>-----------</div><div><div>#include <Arduino.h>\n\</div><div>#include <Client.h>\n\</div><div>#include <HardwareSerial.h>\n\</div><div>#include <IPAddress.h>\n\</div>
<div>#include <Platform.h>\n\</div><div>#include <Print.h>\n\</div><div>#include <Printable.h>\n\</div><div>#include <Server.h>\n\</div><div>#include <Stream.h>\n\</div><div>#include <USBAPI.h>\n\</div>
<div>#include <USBCore.h>\n\</div><div>#include <USBDesc.h>\n\</div><div>#include <Udp.h>\n\</div><div>#include <WCharacter.h>\n\</div><div>#include <WString.h>\n\</div><div>#include <binary.h>\n\</div>
<div>#include <new.h>\n\</div><div>#include <wiring_private.h>\n\</div><div>\n\</div><div>int main() {\n\</div><div>  Serial.  ;\n\</div><div>  return 0;\n\</div><div>}"</div></div><div><br></div><div><br>
</div><div>execution is done with -L arguments where headers are located. Headers and according files are ok, since it's Arduino 1.0.5 distribution.</div><div><br></div><div>So autocomplete for dot position (next column to be more detailed) returns nothing, but Serial class methods classes are expected to be listed.</div>
<div><br></div><div>I have some parse warning and 1 parse error, but autocomplete for previous column returns a whole list of suggestions including classes from header files, so i believe includes are working.</div><div><br>
</div><div>How can i understand what's wrong? Is it a bug or i'm doing smth wrong?</div><div><br></div><div>Regards, Anton.</div><div><br></div></div>