Wrong behavior of Goto implementation

CodeLite installation/troubleshooting forum
DaHu
CodeLite Curious
Posts: 6
Joined: Thu May 21, 2020 1:03 am
Genuine User: Yes
IDE Question: C++
Contact:

Wrong behavior of Goto implementation

Post by DaHu »

Hi there,

Goto Implementation is vital for a fast navigation in source code. It has been working flawlessly for years until version 14.0.x.

I have a main.cpp file and multiple pairs of .hpp/.cpp files with the same name.
When I choose Goto Implementation (go to .cpp) in the right click menu it works like Goto Declaration (go to .hpp).

If I visit the .cpp file before Goto Implementation, the jump may perform well but not in all cases.

I wonder if there's something I can do to make this work again as solid as it used to be.

Thank you!.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Wrong behavior of Goto implementation

Post by eranif »

you can try and disable the language server plugin OR reduce it's priority

To reduce the priority (i.e. CodeLite's built in code completion will be used before anything else):
plugins -> language server -> settings

Locate the C++ tab (usually under 'clangd')
reduce the priority to 50

Try it now.

If this does not work, you can disable the language server completely
Make sure you have read the HOW TO POST thread
DaHu
CodeLite Curious
Posts: 6
Joined: Thu May 21, 2020 1:03 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Wrong behavior of Goto implementation

Post by DaHu »

Eranif, thanks for your fix. It seems to solve the issue.

What is the purpose of the Language Server plugin?.

Thank you!.
Post Reply