[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: Some questions regarding LSP integration
From:       "Christoph Cullmann (cullmann.io)" <christoph () cullmann ! io>
Date:       2022-02-10 14:24:51
Message-ID: a850b983ec5c34c026e85d993021e8d9 () cullmann ! io
[Download RAW message or body]

On 2022-02-10 14:47, Javier Guerra Giraldez wrote:
> On Thu, 10 Feb 2022 at 00:55, Waqar Ahmed <waqar.17a@gmail.com> wrote:
>> Implementing basic CMake support. One of the features is to
>> automatically copy the compile_commands.json file to the root dir of
>> the project from the "active" build directory / cmake preset. This
>> will solve the problem for all cmake based projects.
>> 
>> >  According to the clangd documentation it's currently not possible to
>> tell clangd where the compile_commands.json file is. Correct ?
> 
> wild guess: isn't that the idea of the "rootIndicationFileNames" field?

Or you just symlink the compile_commands to your src dir, you will need
that anyways to have other command line tooling work out of the box
like clang-format and Co.

That is one reason we propose to use kdesrc-build for beginners,
as described on

https://kate-editor.org/build-it/

as with the proposed options there it will link all stuff
in a way that if you open the projects in Kate clangd and
Co. will just work out of the box.

Greetings
Christoph

-- 
Ignorance is bliss...
https://cullmann.io | https://kate-editor.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic