User forums > Help
Code completion not working on external (GLib) library
just_some_random_name:
Hello,
so I'm using multiple external libraries that work fine with code completion plugin.
However, I cannot get it to work with glib 2.0 (ubuntu package: libglib2.0-dev). To be precise - no hints are showing after typing few letters of the library's function (I'm able to compile without issue).
I have dev package of it installed, so I have all the headers files in /usr/include/
I tried to run codeblocks with --debug-log parameter, however, nothing interesting related to the issue showed up in the debug log.
I tried code completion in other editors (visual code), where I was able to see the hints. I guess there's issue with parsing the header files by codeblocks? Is there any way how can I further debug?
Thanks!
System: Kubuntu 18.04
C::B: 17.12
oBFusCATed:
CC doesn't support macros and templates well. You can try to copy paste content from the glib headers in a new empty file/project until you find the thing which breaks it.
just_some_random_name:
So my only chance is to modify the headers? No way to somehow configure CC?
Is CC being worked on? So if I find the offending issue in headers, will there be a chance for a fix to be implemented in CC?
oBFusCATed:
--- Quote from: just_some_random_name on February 25, 2020, 07:45:52 am ---So my only chance is to modify the headers? No way to somehow configure CC?
--- End quote ---
If it is caused by something not supported by the parser, then no setting could fix the problem.
--- Quote from: just_some_random_name on February 25, 2020, 07:45:52 am ---Is CC being worked on? So if I find the offending issue in headers, will there be a chance for a fix to be implemented in CC?
--- End quote ---
I don't work on it, cannot comment for others. But if you don't log it the chance of it being fixed is close to 0.
just_some_random_name:
--- Quote from: oBFusCATed on February 25, 2020, 10:20:02 am ---but if you don't log it the chance of it being fixed is close to 0.
--- End quote ---
Since last version was released 7 years ago, my hopes aren't exactly high, but I'll do my best. Should I use CB issue tracker? (https://sourceforge.net/p/codeblocks/tickets/) ?
Navigation
[0] Message Index
[#] Next page
Go to full version