Goto Implementation jumps to file from other project

CodeLite installation/troubleshooting forum
kernels
CodeLite Curious
Posts: 3
Joined: Mon Apr 10, 2017 8:31 am
Genuine User: Yes
IDE Question: c++
Contact:

Goto Implementation jumps to file from other project

Post by kernels » Tue Jan 15, 2019 5:24 am

Hi guys, hope someone can point me in the right direction here.

I have a workspace with 5 different c projects, many files are common to all projects, but each project has it's own main.c file.

When I right click on a function call and click on "Goto Implementation", codelite will often find the implementation in a file in one of the other projects, rather than finding it in the same file that is open and I'm working on.

For example:

void foo(void)
{
//do some foo
}

int main(void)
{
foo();
}

if I right click on foo(); and click on Goto Implementation, codelite will often open the main.c from another project and take me to the function in that file.
Is there a way to limit searching to only the current active project ?

Thanks!

Gibbon1
CodeLite Expert
Posts: 165
Joined: Fri Jul 22, 2011 5:32 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Goto Implementation jumps to file from other project

Post by Gibbon1 » Fri Jan 18, 2019 1:55 am

I have that problem as well. You can limit the search via the find files dialog, if you are using find in files.

But no way to do that when right click goto implementation.

User avatar
eranif
CodeLite Plugin
Posts: 5840
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Goto Implementation jumps to file from other project

Post by eranif » Mon Jan 21, 2019 5:20 pm

There is no way to make it work as you expect. You can use Alt-G (or from the menu: Search->Find symbol) this will open *all* 'main' methods CodeLite knows about
and it will let you choose between them
Make sure you have read the HOW TO POST thread

Post Reply