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 » Thu Dec 24, 2015 11:33 pm

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: 5995
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 » Sat Dec 26, 2015 8:57 am

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 » Sun Jan 03, 2016 7:57 pm

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: 5995
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 » Sun Jan 03, 2016 9:28 pm

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 » Sun Jan 10, 2016 9:39 pm

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: 5995
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 » Sun Jan 10, 2016 9:46 pm

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 » Sun Jan 10, 2016 9:55 pm

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: 5995
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 » Sun Jan 10, 2016 10:05 pm

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 » Sun Jan 10, 2016 10:21 pm

I have the following 5 compilers:

clang
clang++
cobra
gnu g++
gnu gcc

User avatar
eranif
CodeLite Plugin
Posts: 5995
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 » Sun Jan 10, 2016 10:50 pm

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