Closed SamuelYvon closed 3 years ago
Hey @SamuelYvon , thanks for the report. The first thing I've noticed that the config file is written in YAML, but the current Bear version is only able to read JSON file. (The config file is documented in the citnames
command's man page.)
Thanks! It generated a compile_commands.json
file properly. While it does not work with ccls
, I don't think it's an issue with bear
. As a note, I spotted in man bear
that it says citnames
contains the config template, so this is on me.
Describe the bug Using
bear -- make
on a Microchip PIC project (8 bit MCU) creates an empty compilation database.To Reproduce
An (almost) empty XC8 project will not work.
Expected behavior
A non-empty compilation database.
Environment:
Additional context
make
/xc8-cc
Here is my config file. I could not find a full example of the config file, so I am not sure if this works or is valid syntax. I opened issue #402 because I also cannot see what bear sees my config as.
Before you send...
README.md
file orman bear
? yes--use-cc=xc8-cc
but this option does not seem to work anymore (https://github.com/rizsotto/Bear/issues/286)