You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 a compile_commands.json that looked like this:
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.
The text was updated successfully, but these errors were encountered: