Hi !
Not sure it is a bug, it might need a setting somewhere.
I develop a software in Pro*C (yeah I know) and with previous version the syntax highlighting and the combo box containing the list of functions/procedures worked correcly. I have .pc files with corresponding generated .cpp file in my project and I registered the .pc filetype as a C file.
I upgraded to 10.5 recently and the combo box with functions/procedures is empty for .pc files, which is quite annoying as I have a lot of functions...
Thanks in advance.
Something strange I just noticed. If I type something in the source and save the project then the list is populated. :shock:
Yes, this is normal, 10.05 doesn't do interactive reparse.
You can try some of the latest nightlies, there the CC is improved a lot.
Just gave a try with 20 July 2011 build (7289) and it's worse: .pc have code highlight but functions list is disabled (whereas I can access it when editing .cpp and .h files)
Tested with nightly build 7789, still the same. In case of Pro*C .pc files are source and .cpp are generated source file. Is there a way to tell Code::Blocks to consider .pc files as source files? Not being able to have functions drop down is quite annoying...
Project -> Project tree -> Edit file types and categories
.pc files moved from "Others" to "Sources", but I still don't have the functions list drop down for them (disabled)
Try "Settings -> Editor... -> Code completion -> C/C++ parser (adv.) -> File extensions to parse as source files" .
Huge!
I had clicked everywhere but I didn't see this setting. :-[
I now have the dropdown enabled but original problem remains: when opening .pc file, the dropdown is not populated and I have to edit (even adding a space somewhere) then save to get it populated...
Just got 8086 nightly. Seems like this is fixed now. :D