Page 1 of 1

Wrong behavior of Goto implementation

Posted: Sat Aug 01, 2020 2:29 pm
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!.

Re: Wrong behavior of Goto implementation

Posted: Sun Aug 02, 2020 6:04 am
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

Re: Wrong behavior of Goto implementation

Posted: Sun Aug 02, 2020 1:37 pm
by DaHu
Eranif, thanks for your fix. It seems to solve the issue.

What is the purpose of the Language Server plugin?.

Thank you!.