... | ... | @@ -51,7 +51,7 @@ nix-shell -p bear --command 'bear hadrian/build.sh -c -j12 --docs=none --flavour |
|
|
|
|
|
`ccls` needs a [`compile_commands.json`](https://clang.llvm.org/docs/JSONCompilationDatabase.html) (*JSON Compilcation Database*) file as configuration. This file is mostly a mapping of `*.c` filenames to C compiler arguments.
|
|
|
|
|
|
`compile_commands.json` is generated by [`bear`](https://github.com/rizsotto/Bear), a tool that intercepts all calls to the C compiler.
|
|
|
`compile_commands.json` is generated by [`bear`](https://github.com/rizsotto/Bear), a tool that intercepts all calls to the C compiler. That means, you have to trigger a full rebuild with `bear`, even if you already got a fully compiled GHC project.
|
|
|
|
|
|
# Start and configure VSCode
|
|
|
## Start VSCode in a ghc.nix/nix-shell environment
|
... | ... | |