# How to use LSP with ROOT Header?

**URL:** <https://root-forum.cern.ch/t/how-to-use-lsp-with-root-header/58350>\
**Category:** Newbie\
**Created:** [March 1, 2024, 3:00pm UTC](https://root-forum.cern.ch/t/how-to-use-lsp-with-root-header/58350 "2024-03-01T15:00:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akbar\_Emmanuel\_Diaz](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/akbar_emmanuel_diaz/32/35822_2.png) [@Akbar\_Emmanuel\_Diaz](https://root-forum.cern.ch/u/Akbar_Emmanuel_Diaz)\
**Post date:** [March 1, 2024, 3:00pm UTC](https://root-forum.cern.ch/t/how-to-use-lsp-with-root-header/58350/1 "2024-03-01T15:00:18Z")

</div>

Hi everyone.  
I’m currently trying to use LSP (clangd) working, so i can have auto-completion and suggestions, while coding. Nevertheless, I just can´t make it work with ROOT header files. It is my first time configuring LSP(Clangd) and I’m absolutely lost. How is this supposed to be done?

ROOT Version:6.28.04  
Platform:, Debian 12  
Code editor: Kate.  
Compiler:\_ Not Provided

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [March 1, 2024, 6:30pm UTC](https://root-forum.cern.ch/t/how-to-use-lsp-with-root-header/58350/2 "2024-03-01T18:30:04Z")

</div>

> [@Add "${ROOTSYS}/compile\_flags.txt" files to "official" ROOT binary releases](https://root-forum.cern.ch/t/add-rootsys-compile-flags-txt-files-to-official-root-binary-releases/49502):
>
> I’ve recently started to play with adding [Language Server Protocol (LSP)](https://microsoft.github.io/language-server-protocol/) support to my editor. For C++ code, I am trying to use the [clangd](https://clangd.llvm.org/installation.html) language server. It turns out that there are problems with ROOT binary releases. One gets various errors in form, e.g.: #include "TRandom.h" In included file: 'ROOT/RConfig.hxx' file not found with \<angled\> include; use "quotes" instead #include \<ROOT/RConfig.hxx\> In included file: 'RConfigure.h' file not found It seems I have found a simple…
