GoTo Declaration doesn't work

CodeLite installation/troubleshooting forum
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: GoTo Declaration doesn't work

Post by eranif »

14.0 exists for Linux. 14.0.1 is not. Note that you can always build CodeLite from sources (on Linux is pretty easy)
Make sure you have read the HOW TO POST thread
borisfa
CodeLite Enthusiast
Posts: 17
Joined: Sun Jul 15, 2018 10:30 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: GoTo Declaration doesn't work

Post by borisfa »

I installed 14.01 from sources but go to declaration still doesn't .
Could you instruct me to finish solving this problem .

Thanks
Boris
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: GoTo Declaration doesn't work

Post by eranif »

If this is Ubuntu, you can do this:

- Install clangd. I have clangd-9 package installed. Here is the origin:

Code: Select all

$apt-cache policy clangd-9
clangd-9:
  Installed: 1:9-2~ubuntu18.04.2
  Candidate: 1:9-2~ubuntu18.04.2
  Version table:
 *** 1:9-2~ubuntu18.04.2 500
        500 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
        100 /var/lib/dpkg/status
- Open language server settings dialog (the one in the picture you posted)
- Click "Add" and fill the following fields:
Enabled: check it
Name: clangd
Command: /usr/bin/clangd-9
Languages: c;cpp;
Connection string: stdio
priority: 90

- Click OK and close the language server settings dialog with OK also (If all is set properly, CodeLite should have started your clangd process)
- Build the code once.

To confirm that CodeLite started clangd:

Code: Select all

ps -ef|grep clangd
Try code completing now
Make sure you have read the HOW TO POST thread
borisfa
CodeLite Enthusiast
Posts: 17
Joined: Sun Jul 15, 2018 10:30 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: GoTo Declaration doesn't work

Post by borisfa »

Works,
topic close
thanks.
Post Reply