Author Topic: [10.05] Functions list for .pc  (Read 9419 times)

Offline Wyz

  • Single posting newcomer
  • *
  • Posts: 9
[10.05] Functions list for .pc
« 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.
« Last Edit: January 11, 2011, 12:11:49 pm by Wyz »

Offline Wyz

  • Single posting newcomer
  • *
  • Posts: 9
Re: [10.05] Functions list for .pc
« Reply #1 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:
« Last Edit: January 11, 2011, 02:39:50 pm by Wyz »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: [10.05] Functions list for .pc
« Reply #2 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Wyz

  • Single posting newcomer
  • *
  • Posts: 9
Re: [10.05] Functions list for .pc
« Reply #3 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)
« Last Edit: August 03, 2011, 01:11:22 pm by Wyz »

Offline Wyz

  • Single posting newcomer
  • *
  • Posts: 9
Re: [10.05] Functions list for .pc
« Reply #4 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...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: [10.05] Functions list for .pc
« Reply #5 on: February 15, 2012, 02:04:16 pm »
Project -> Project tree -> Edit file types and categories
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Wyz

  • Single posting newcomer
  • *
  • Posts: 9
Re: [10.05] Functions list for .pc
« Reply #6 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)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7256
Re: [10.05] Functions list for .pc
« Reply #7 on: February 15, 2012, 02:39:02 pm »
Try "Settings -> Editor... -> Code completion -> C/C++ parser (adv.) -> File extensions to parse as source files" .

Offline Wyz

  • Single posting newcomer
  • *
  • Posts: 9
Re: [10.05] Functions list for .pc
« Reply #8 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...


Offline Wyz

  • Single posting newcomer
  • *
  • Posts: 9
Re: [10.05] Functions list for .pc
« Reply #9 on: July 19, 2012, 02:04:00 pm »
Just got 8086 nightly. Seems like this is fixed now. :D