Author Topic: help! right-click to "find declaration of..." not working??  (Read 7389 times)

oats

  • Guest
help! right-click to "find declaration of..." not working??
« on: November 08, 2007, 06:12:27 pm »
Hi,
I have been using code::blocks for quite a while, but am not a very advanced user.  I am quite used to the feature where I can right-click on a function/variable and jump to its declaration or implementation.  I have gotten this to work in the past, but I just created a new project and I don't know what I need to do.  The problem is that the function or class data has not been compiled yet, I think.  How can I do this?

One problem is that I am using CB as my dev environment, but I can't actually use it to compile.  The two development environments I use are MPLAB (for embedded developement) and NI LabWindows (for GUI development) and neither compiler is compatible with CB.  Still, the projects I create are just basic C code, so CB should be able to browse the functions and variables?  Please help!
Thanks!
« Last Edit: November 08, 2007, 09:20:14 pm by oats »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: help! right-click to "find declaration of..." not working??
« Reply #1 on: November 09, 2007, 08:42:46 am »
Please help!
Post a sample project and users might be able to setup a C::B project properly for you.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

oats

  • Guest
Re: help! right-click to "find declaration of..." not working??
« Reply #2 on: November 09, 2007, 04:13:05 pm »
i am not that concerned with compiling right now.... i just want the right-click to "find declaration of" to work!!

what is required to do so?  do i need to compile somehow?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: help! right-click to "find declaration of..." not working??
« Reply #3 on: November 09, 2007, 09:17:57 pm »
what is required to do so?  do i need to compile somehow?
Thomas has reported similar issues. I'm sorry, but I can't help you here because it just works for me. You may want to PM Thomas but I'm not sure if he has the time to investigate. Anyway. If you provide a project I *might* be able to reproduce.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: help! right-click to "find declaration of..." not working??
« Reply #4 on: November 11, 2007, 09:43:32 pm »
Hi !

When this does not work:
I select the Symbols tab of the Management notebook
I right click on the Symbols item of the tree (root)
I click on re-parse now

This force the projects to be reparsed and the find items work again.

I hope it helps !

Dje

oats

  • Guest
Re: help! right-click to "find declaration of..." not working??
« Reply #5 on: November 13, 2007, 07:24:25 pm »
Dje,

thanks so much!!!  this is exactly what I needed to do!  you are the best!

note to developers, i think a better design would automatically re-parse whenever a given function could not be found.  also perhaps placing this "re-parse symbols" command somewhere in the main menubar as well.  i spent a long time looking in the main menubar.

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: help! right-click to "find declaration of..." not working??
« Reply #6 on: November 13, 2007, 08:27:18 pm »
thanks so much!!!  this is exactly what I needed to do!  you are the best!
8) A pleasure to help you !

i think a better design would automatically re-parse whenever a given function could not be found.  also perhaps placing this "re-parse symbols" command somewhere in the main menubar as well.  i spent a long time looking in the main menubar.

Few time ago, all was automatically managed.
I think there is a regression and what I gave is just a workaround.

Dje