<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;" bgcolor="#ffffff" text="#2e3436" link="#737373" vlink="#2e3436"><div>That works, thanks (though it's a shame compile_commands.json can't be accessed directly from the build/ dir; most projects use this).</div><div><br></div><div>Now I've managed to crash clangd :-(</div><div><br></div><div>Diggory</div><div><br></div><div>On Mon, 2019-08-12 at 12:34 +0200, Christoph Cullmann wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>On 2019-08-12 12:27, Diggory Hardy wrote:</pre><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>Dear all (but especially Christoph Cullmann),</pre><pre><br></pre><pre>thanks for the great work on the LSP client, which now works quite</pre><pre>well with Rust code!</pre><pre><br></pre><pre>When trying to use this with a C++ project, I have an issue with it</pre><pre>being unable to find header files. With KDevelop I am able to solve</pre><pre>this problem by specifying a project-specific include directory. How</pre><pre>should I solve this with the LSP client? I see no way of configuring</pre><pre>include dirs, either within LSP configuration or the Project plugin.</pre></blockquote><pre><br></pre><pre>This relies on having some compilation database file.</pre><pre><br></pre><pre>e.g. CMake can generate that and you can symlink it into your source </pre><pre>tree</pre><pre><br></pre><pre>see </pre><a href="https://clang.llvm.org/docs/HowToSetupToolingForLLVM.html"><pre>https://clang.llvm.org/docs/HowToSetupToolingForLLVM.html</pre></a><pre><br></pre><pre><br></pre><pre>Greetings</pre><pre>Chritoph</pre><pre><br></pre></blockquote></body></html>