Autocomplete and unions doesn't seem to be working.

CodeLite installation/troubleshooting forum
Brianx3456
CodeLite Curious
Posts: 2
Joined: Thu May 26, 2016 12:58 am
Genuine User: Yes
IDE Question: C++
Contact:

Autocomplete and unions doesn't seem to be working.

Post by Brianx3456 » Sat Sep 28, 2019 12:55 am

Trying to get autocomplete to work with unions.

Example code:
union
{
uint8_t a[25];
uint8_t b[10];
uint8_t c[5];
} example;

Codelite doesn't complete the union name or find the members.

User avatar
eranif
CodeLite Plugin
Posts: 5948
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Autocomplete and unions doesn't seem to be working.

Post by eranif » Sat Sep 28, 2019 3:45 pm

Please enable the Language Server plugin and install clangd.
This is the only way to get code completion to work properly.

https://wiki.codelite.org/pmwiki.php/Ma ... uageServer
Make sure you have read the HOW TO POST thread

Post Reply