Goto Declaration/implementation does not work

General questions regarding the usage of CodeLite
s0r2637
CodeLite Enthusiast
Posts: 10
Joined: Thu Dec 24, 2015 11:23 pm
Genuine User: Yes
IDE Question: C++
Contact:

Goto Declaration/implementation does not work

Post by s0r2637 »

Hi,

I am using Codelite 9.0.0 on Ubuntu 14.04 LTS. I installed it through a Debbian package manager on CodeLite's website for 64-bit OS. I am not able to use the Goto Delcaration or Implementation functionality. Can someone please troubleshoot my problem?

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

Re: Goto Declaration/implementation does not work

Post by eranif »

Please provide an exact steps to reproduce the problem + sample code

Eran
Make sure you have read the HOW TO POST thread
s0r2637
CodeLite Enthusiast
Posts: 10
Joined: Thu Dec 24, 2015 11:23 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Goto Declaration/implementation does not work

Post by s0r2637 »

Hi Eran,

I want to add that even opening a header file from right click doesn't work. It is as simple as this:

Code: Select all

#include <stdio.h>

int main(int argc, char **argv) {
	printf("hello world\n");
	return 0;
}
If you hover the mouse over "stdio.h" and right click, you will see in the list of items at the top "Open include file stdio.h." When you click on this menu, nothings seems to happen. No new tab/window containing the contents of stdio.h appears. I am not able to even find where the "NULL" variable is declared in stdio.h. WHat do you think might be happening? Btw, I build 9.0.6 version from the source files on my Ubuntu 14.04 machine. It behaved the same way.

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

Re: Goto Declaration/implementation does not work

Post by eranif »

Please see the HOW TO POST thread and provide the additional information related to the "Code Completion"
http://forums.codelite.org/viewtopic.php?f=3&t=804

Eran
Make sure you have read the HOW TO POST thread
s0r2637
CodeLite Enthusiast
Posts: 10
Joined: Thu Dec 24, 2015 11:23 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Goto Declaration/implementation does not work

Post by s0r2637 »

Hi Eran:

Sorry for the late reply. Here are the info for the Code Completion related post:

1) You parser include and exclude paths : it is empty; there is no path tree.

2) I am using GNU so clang path does not apply. In any case, the clang search path is also empty.

3) I have already provided you code snippet in the previous post.

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

Re: Goto Declaration/implementation does not work

Post by eranif »

s0r2637 wrote:1) You parser include and exclude paths : it is empty; there is no path tree.
Thats the problem.. you should have something there

What happens when you click on the 'Suggest' button ? it should offer some paths for code completion

Eran
Make sure you have read the HOW TO POST thread
s0r2637
CodeLite Enthusiast
Posts: 10
Joined: Thu Dec 24, 2015 11:23 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Goto Declaration/implementation does not work

Post by s0r2637 »

I clicked on suggest paths, but nothing happens. Also, now when I click on Settings -> Code Completion... I can only see the clang search path options. I don't see the GNU search path options. How do I restore to default or to something that I was seeing before?

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

Re: Goto Declaration/implementation does not work

Post by eranif »

Do you have g++ installed?
What compilers do you have defined in CodeLite? (settings->build settings-> compilers)

Eran
Make sure you have read the HOW TO POST thread
s0r2637
CodeLite Enthusiast
Posts: 10
Joined: Thu Dec 24, 2015 11:23 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Goto Declaration/implementation does not work

Post by s0r2637 »

I have the following 5 compilers:

clang
clang++
cobra
gnu g++
gnu gcc
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Goto Declaration/implementation does not work

Post by eranif »

These are the default compilers.
Please run the setup wizard again from: Help->Run Setup Wizard Wizard

In the compilers page, click on the 'Scan' button and CodeLite will detect the installed compilers

Once, a real compilers are defined by CodeLite, go back to the code completion page (settings->code completion->ctags->search paths) and click on the 'Suggest' button

Eran
Make sure you have read the HOW TO POST thread
Post Reply