-
Notifications
You must be signed in to change notification settings - Fork 385
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
[fix] Analysis shouldn't fail on non-existing directory #3943
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the compilation command database contains the build information of a file in a non-existing directory then the pre-analysis phase of CTU shouldn't fail.
Is that okay though? When can that naturally happen and not be a sign of a user error? I am not a fan on this patch.
ae20e63
to
4850392
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a LOG warning or an error (and test it).
4850392
to
97ceeb5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its not your fault, but I'm not thrilled about the reasons behind this patch. If someone runs all their configure and setup scripts inside CodeChecker log
, and logs build commands for temporary files, thats a user error.
I understand that we need to bend the knee on this one. But I'd prefer to ease up on the hard error / exception escape (before proper logging is implemented) as little as possible.
When the compilation command database contains the build information of a file in a non-existing directory then the pre-analysis phase of CTU shouldn't fail.
97ceeb5
to
1aeafb7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I'm happy with where we landed with this all things considered.
When the compilation command database contains the build information of a file in a non-existing directory then the pre-analysis phase of CTU shouldn't fail.