-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
clang: python bindings, test_code_complete_availability fails #37765
Comments
Any idea why this isn't failing on other platforms? Who owns this functionality? |
The most likely reason is that nobody else is running those tests. I'm not aware of who the owner of Python bindings is. The previous time the completion tests were broken the patch was merged by ilya-biryukov [1] (who was the one making the original change breaking the tests). I see that I've failed to link the new patch [2]. [1] https://reviews.llvm.org/D39838 |
Sorry, there doesn't seem to be enough interest in getting this fixed for the release. I won't block on it. |
Could we backport it to 7.0.1 now? |
Is the request here to merge r342897? |
Yes, please. |
Merged: r345000 |
mentioned in issue #38454 |
Extended Description
This is a regression since 6.0*.
======================================================================
FAIL: test_code_complete_availability (tests.cindex.test_code_completion.TestCodeCompletion)
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/clang-python-7.0.9999/work/clang-python-7.0.9999/bindings/python/tests/cindex/test_code_completion.py", line 70, in test_code_complete_availability
self.check_completion_results(cr, expected)
File "/var/tmp/portage/dev-python/clang-python-7.0.9999/work/clang-python-7.0.9999/bindings/python/tests/cindex/test_code_completion.py", line 14, in check_completion_results
self.assertIn(c, completions)
AssertionError: "{'const', TypedText} || Priority: 40 || Availability: Available || Brief comment: None" not found in ["{'P', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'Q', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'namespace', TypedText} | {' ', HorizontalSpace} | {'name', Placeholder} | {'=', Equal} | {'namespace', Placeholder} || Priority: 40 || Availability: Available || Brief comment: None", "{'using', TypedText} | {' ', HorizontalSpace} | {'namespace', Text} | {' ', HorizontalSpace} | {'identifier', Placeholder} || Priority: 40 || Availability: Available || Brief comment: None", "{'asm', TypedText} | {'(', LeftParen} | {'string-literal', Placeholder} | {')', RightParen} || Priority: 40 || Availability: Available || Brief comment: None", "{'typedef', TypedText} | {' ', HorizontalSpace} | {'type', Placeholder} | {' ', HorizontalSpace} | {'name', Placeholder} || Priority: 40 || Availability: Available || Brief comment: None", "{'using', TypedText} | {' ', HorizontalSpace} | {'qualifier', Placeholder} | {'::', Text} | {'name', Placeholder} || Priority: 40 || Availability: Available || Brief comment: None", "{'extern', TypedText} || Priority: 40 || Availability: Available || Brief comment: None", "{'static', TypedText} || Priority: 40 || Availability: Available || Brief comment: None", "{'inline', TypedText} || Priority: 40 || Availability: Available || Brief comment: None", "{'short', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'long', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'signed', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'unsigned', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'void', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'char', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'int', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'float', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'double', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'enum', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'struct', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'union', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'const', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'volatile', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'bool', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'class', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'wchar_t', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'typename', TypedText} | {' ', HorizontalSpace} | {'qualifier', Placeholder} | {'::', Text} | {'name', Placeholder} || Priority: 40 || Availability: Available || Brief comment: None", "{'_Nonnull', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'_Null_unspecified', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'_Nullable', TypedText} || Priority: 50 || Availability: Available || Brief comment: None", "{'operator', TypedText} || Priority: 40 || Availability: Available || Brief comment: None"]
Ran 120 tests in 1.141s
FAILED (failures=1)
The text was updated successfully, but these errors were encountered: