Navigating to protocol var definition doesn't work

Originator:maxime.chapelet
Number:rdar://47283015 Date Originated:January 15 2019, 3:46 PM
Status:Open Resolved:
Product:Xcode Product Version:10.x
Classification:Bug Reproducible:Always
 
Summary:

When I do Navigate > Jump to Definition from a protocol var, it doesn't work.

Steps to Reproduce:

Open attached project with Xcode 10.x and navigate to Protocols.swift file.

When I do Navigate > Jump to Definition, or ctrl + cmd + click, or ctrl + cmd + J :
- on Test.isSetFunc, Xcode opens a popover where you can navigate to Test.isSetFunc or Implementation.isSetFunc, as expected
- on Test.isSetVar, nothing happens
- on Implementation.isSetFunc, Xcode navigate to Test.isSetFunc, as expected
- on Implementation.isSetVar, nothing happens.

I have also posted this issue on Apple Developer Forums here :
https://forums.developer.apple.com/thread/112708

Expected Results:

When I do Navigate > Jump to Definition, or ctrl + cmd + click, or ctrl + cmd + J :
- on Test.isSetVar, Xcode should open a popover when you could navigate to Test.isSetVar or Implementation.isSetVar
- on Implementation.isSetVar, Xcode should navigate to Test.isSetVar

Actual Results:

When I do Navigate > Jump to Definition, or ctrl + cmd + click, or ctrl + cmd + J :
- on Test.isSetVar, nothing happens
- on Implementation.isSetVar, nothing happens.

Version/Build:

Xcode 10.0 and Xcode 10.1

Configuration:

macOS 10.14.2
MacBook Pro (15-inch, 2017)

Comments


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!