Page 1 of 2
Goto Declaration/implementation does not work
Posted: Thu Dec 24, 2015 11:33 pm
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
Re: Goto Declaration/implementation does not work
Posted: Sat Dec 26, 2015 8:57 am
by eranif
Please provide an exact steps to reproduce the problem + sample code
Eran
Re: Goto Declaration/implementation does not work
Posted: Sun Jan 03, 2016 7:57 pm
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
Re: Goto Declaration/implementation does not work
Posted: Sun Jan 03, 2016 9:28 pm
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
Re: Goto Declaration/implementation does not work
Posted: Sun Jan 10, 2016 9:39 pm
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
Re: Goto Declaration/implementation does not work
Posted: Sun Jan 10, 2016 9:46 pm
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
Re: Goto Declaration/implementation does not work
Posted: Sun Jan 10, 2016 9:55 pm
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,
Re: Goto Declaration/implementation does not work
Posted: Sun Jan 10, 2016 10:05 pm
by eranif
Do you have g++ installed?
What compilers do you have defined in CodeLite? (settings->build settings-> compilers)
Eran
Re: Goto Declaration/implementation does not work
Posted: Sun Jan 10, 2016 10:21 pm
by s0r2637
I have the following 5 compilers:
clang
clang++
cobra
gnu g++
gnu gcc
Re: Goto Declaration/implementation does not work
Posted: Sun Jan 10, 2016 10:50 pm
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