Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Wyz on January 11, 2011, 12:10:04 pm

Title: [10.05] Functions list for .pc
Post by: Wyz on January 11, 2011, 12:10:04 pm
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.
Title: Re: [10.05] Functions list for .pc
Post by: Wyz on January 11, 2011, 02:04:38 pm
Something strange I just noticed. If I type something in the source and save the project then the list is populated.  :shock:
Title: Re: [10.05] Functions list for .pc
Post by: oBFusCATed on January 11, 2011, 03:21:55 pm
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.
Title: Re: [10.05] Functions list for .pc
Post by: Wyz on July 29, 2011, 04:54:27 pm
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)
Title: Re: [10.05] Functions list for .pc
Post by: Wyz on February 15, 2012, 01:48:29 pm
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...
Title: Re: [10.05] Functions list for .pc
Post by: oBFusCATed on February 15, 2012, 02:04:16 pm
Project -> Project tree -> Edit file types and categories
Title: Re: [10.05] Functions list for .pc
Post by: Wyz on February 15, 2012, 02:21:08 pm
.pc files moved from "Others" to "Sources", but I still don't have the functions list drop down for them (disabled)
Title: Re: [10.05] Functions list for .pc
Post by: Jenna on February 15, 2012, 02:39:02 pm
Try "Settings -> Editor... -> Code completion -> C/C++ parser (adv.) -> File extensions to parse as source files" .
Title: Re: [10.05] Functions list for .pc
Post by: Wyz on February 15, 2012, 03:34:17 pm
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...

Title: Re: [10.05] Functions list for .pc
Post by: Wyz on July 19, 2012, 02:04:00 pm
Just got 8086 nightly. Seems like this is fixed now. :D