-
Notifications
You must be signed in to change notification settings - Fork 27
Diagnostic messages are getting ignored due to relative filepath check #38
Comments
On my machine, clang-tidy only reports absolute filepaths, both on Windows and Linux. What version of clang-tidy are you using? Can you describe the file layout of your project? What do your settings look like? |
I have tried versions of this file with both the absolute filepath for the
Also, for what its worth, the absolute filepath is listed above:
Hope that is enough information, thanks for looking into it! |
The only weird thing that stands out is that you're on clang-tidy 11.0.0, which hasn't been released. Can you try out clang-tidy 10.0.0 and let me know if you have the same problem? I'd compile the master branch myself, but LLVM takes forever to compile on my machine. I see '/code/srv/sd/sdbuf.c'. What folder do you have VSCode open in? In other words, what folder is acting as the root of the project? |
Ah I did not realize version 11 had not been officially released yet. We are doing a lot of work in centos 7 docker containers for which there does not appear to be pre-compiled binaries available so we compiled the latest once (which did indeed take a long time) and use that to build our subsequent images. Rebuilding it with an older version would take a fair bit of time for us as well, but if I have a chance to verify that it works in version 10 for us I will let you know. It does seem likely this was caused by using version 11, in which case I wouldn't think there'd be any urgency for you to devote much time to this (unless it really bothers you) as the majority of people probably wont be encountering it, and I currently have worked around the issue by disabling the offending code block in
Thanks again |
The if statement here:
vscode-clang-tidy/src/tidy.ts
Line 239 in dc19ba9
Is causing diagnostic messages to be ignored due to the fact that the
FilePath
output is only a filename.Command being run
/usr/local/clang/bin/clang-tidy /code/srv/sd/sdbuf.c ...
The diagnostic messages being reported are:
This then fails that check, and causes all messages to be ignored.
The text was updated successfully, but these errors were encountered: