-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
"unable to handle compilation, expected exactly one compiler job in '''' " for all files #1183
Comments
Does it work if you remove the |
No, it's the same error still |
@mlangkabel Is there any way for me to debug this further? I looked into the log file but there wasn't anything useful in there. |
It is a Clang issue. If I google for it, I get lots of results. Maybe there is something in there that helps you. My next guess is that it doesn't like the
Here the path to the compiled file is included in the "command". |
Yeah I did google for it, but I didn't see anything pertaining to Sourcetrail or compiledb...
Removing the split, or removing it entirely doesn't affect the error either 😦
I'm creating it myself based on another compiler (GreenHill's ARM C compiler) because other applications don't seem to like it. Basically converting their CLI parameters into what
I also tried that format, same result Is there more verbose debugging I can enable? In the logs there is
but that doesn't really help much when trying to figure out what's breaking |
I also just tried using the clang interface for python (https://pypi.org/project/libclang/) and it parses things just fine, so I feel like the issue is on the sourcetrail side? I'm not fully exercising the clang interface though >>> from clang import cindex
>>> compdb = cindex.CompilationDatabase.fromDirectory('.')
>>> print([i.filename for i in compdb.getAllCompileCommands()])
['/home/user/projects/ghs/the_project/src/uart/uartCommon.c', etc...]
>>> |
Hello, Update: This issue seems to come if the compiler used by sourcetrail does not know a specific compiler flag. |
That's strange, I get the exact same errors even when using the simplest compile_commands file:
Removing the |
Platform:
Linux 5.4.0-73-generic #82~18.04.1-Ubuntu SMP
Sourcetrail version: 2021.1.30 64 Bit, database version 25
Each file fails with two errors:
no input files
unable to handle compilation, expected exactly one compiler job in ''''
This happens on all files when I try to import the project.
Here's an excerpt from my
compile_commands.json
for one of the files:I know that the
compile_commands.json
file is correct, since it works with my IDE clion perfectly (it indexes just fine, references work, macros expand, etc).The text was updated successfully, but these errors were encountered: