Open cody-c opened 5 years ago
I had the same problem with .o files, so thanks for this tip.
I had the same problem with .o files, so thanks for this tip.
Yhea that was the parsing error for me, thanks. I used Bear to generate compile_commands.json
btw.
This is a very edge-case issue that I ran into. I'm documenting it here not because it needs to be fixed but rather in case it can help someone else in the future.
Issue: In my makefile I linked directly against a specific version of a static library using it's full path (i.e.
/usr/lib/libsome_library.a
). When running bear on my makefile it treated that direct file link as an include and generated acompile_commands.json
that looked like this:Which in turn got parsed into an include argument and broke Irony with the following error:
The fix is simple, remove the .a file from the list of compile arguments.
Hope this can help someone struggling with the same issue.