Xcode doesn't display comments to ObjC constants in the Quick Help inspector

Number:rdar://36730136 Date Originated:22 Jan 2018
Status:Open Resolved:Yes
Product:Xcode Product Version:Xcode Version 9.2 (9C40b)
Classification:Bug Reproducible:Always
Summary: When there's a doc-comment for a constant in Objective-C code, Xcode is capable of showing a comment in the autocomplete box, but not in the Quick Help Inspector on the right. See the screenshot attached.

Steps to Reproduce:
Take this code sample:

 *  This is a comment to TTTest;
static NSString * const TTTest = @"test";
@interface TestClass : NSObject
@implementation TestClass
- (void)testMethod {
    TTTest; // <----- this line

Move cursor to "TTTest; // <----- this line". See Quick Help Inspector on the right.

Expected Results:
Quick Help inspector shows the "This is a comment to TTTest;" comment. 

Actual Results:
It shows "No Quick Help". It used to work in the past, but then it broke down.
Also, you can start typing "TTTest", and you'll be able to see "This is a comment to TTTest;" at the bottom of the autocomplete box, so it's correctly recognized as a doc comment, it's just not displayed by the Quick Help pane.

Xcode Version 9.2 (9C40b)

macOS High Sierra 10.13.2 (17C205)



Thank you, the issue is resolved!


We believe this issue is resolved.

Please test this issue with the latest Xcode 11 beta release and update your feedback report with your results by logging into https://feedbackassistant.apple.com or by using the Feedback Assistant app.

Xcode: https://developer.apple.com/download/

If the issue continues, please update any logs: https://developer.apple.com/bug-reporting/profiles-and-logs/

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!