codelite icon indicating copy to clipboard operation
codelite copied to clipboard

[Bug]: lsp cannot go to line of symbol

Open gzhang91 opened this issue 2 years ago • 7 comments

What happened?

A bug happened!

when i open this symbol, it will expan this file, but cannot know which line it go to image

Version

Self compiled

Operating system

Windows 10

Steps to reproduce

No response

Relevant log output

No response

gzhang91 avatar Feb 21 '23 07:02 gzhang91

clicking the line (the inner line) -> does not take you to the location?

eranif avatar Feb 21 '23 08:02 eranif

cannot

gzhang91 avatar Feb 21 '23 08:02 gzhang91

os: windows10 --> ssh to ubuntu22

cannot, i compile with bear -- make, does this generation compile_commands.json is valid ?

i had click many times image

gzhang91 avatar Feb 21 '23 08:02 gzhang91

I am not familiar with bear...

eranif avatar Feb 21 '23 08:02 eranif

I am not familiar with bear...

how to generator comile_commands.json file, i had trid with follow, but it failed. does it only support cmakelists.txt ??

image

image

image

gzhang91 avatar Feb 21 '23 09:02 gzhang91

Thanks for the detailed information. Can you increase CodeLite log level and check the output in %appdata%\CodeLite\logs\lsp.log & %appdata%\CodeLite\logs\codelite.log? increase log level from: settings -> preferences -> misc, set it to "Debug"

eranif avatar Mar 03 '23 21:03 eranif

FYI: the problem does not seem to be in the compile_commands.json file, but rather with the translation from the remote workspace path and the local machine ( I am assuming that you are using Remote over SSH workspace here)

eranif avatar Mar 03 '23 21:03 eranif