On 16 Aug 2021, at 4:20, Jan Erik Moström wrote:

I have the xcode command line tools installed (not the full Xcode package) and apparently it includes a language server for the C language family and Swift.

So today when I had to write some example code in C (long time since that happened the last time) I got all kind of goodies showing up when writing the program. Unfortunately I also get the a warning that "~/Desktop/fib.c:1: 'stdio.h' file not found" for the line

        # include <stdio.h>

What I can't figure out is how to tell bbedit/language server where this file can be found.

How do I do this?

I'll try and make some time some day soon to make a recipe; but meanwhile, I would recommend reading <https://clangd.llvm.org/config> to see how configuration files work for clangd.

However, I recommend that you install clangd newer than the one bundled with Xcode. clangd 12.0.1 (as installed by "brew install llvm" and then symlinked into BBEdit's "Language Servers" support folder) doesn't seem to have any trouble finding the standard headers.

R.

--
Rich Siegel                                 Bare Bones Software, Inc.
<[email protected]>                      <https://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "[email protected]" rather than posting here. 
Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/D1BF0A49-3E42-4336-8EB3-15990D455093%40barebones.com.

Reply via email to