-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blame info not working #3443
Comments
There is a known issue in our side with the blame information storage that we do not store blame information for source files which are already stored into the database. We will try to fix it in the next release to store blame information for every source files which were stored previously to the database (with an old version of CodeChecker which doesn't support blame information storage) and do not have blame information. Can you please try to store your results to a new product or to a new database to make sure that this will solve the problem? If not then it will be a different problem. |
Indeed, the same results are being stored with correct blame info into a new product. |
Thanks @csordasmarton, I'll test but I think I'll not patch our production instance so it might take a while to test on a new instance :-) Meanwhile here are some selected lines (only referring to file
It seems paths are not compressed (or canonicalized) i.e. removing EDIT: These long uncompressed paths exist already in the plist files in the results directory. I was thinking that the paths should be canonicalized before being written there. But are plist files generated by codechecker, or directly by clang? |
@jimis plist files for Clang Static Analyzer are generated by the analyzer but for Clang Tidy these are generated by CodeChecker (Clang Tidy is not able to product plist output but only plain text). |
@csordasmarton I still get the warning sometimes, even after cherry-picking your fix to 6.17.0. |
A quick search in my plist files shows that different-but-equivalent paths are present only in clangsa plist files, and not in the clang-tidy ones. Maybe this is Clang's bug. |
Solved by #3488. |
I upgraded to v6.17.0 and I don't see the new blame info button activated. In the logs I see:
I am assuming it's related to using
--trim-path-prefix
.Also related to the fact that some paths are prepended with
'root'
, because ofcodechecker/web/client/codechecker_client/cmd/store.py
Line 688 in 0168f93
I believe that every file is not even found in
__get_blame_info()
and that returns silently:codechecker/web/client/codechecker_client/blame_info.py
Lines 19 to 24 in 0168f93
The text was updated successfully, but these errors were encountered: