Xcode8: Doesn't reliably on-demand complete inside of a Swift print statement interpolation.

Originator:markd
Number:rdar://27482011 Date Originated:7/21/2016
Status:Open Resolved:
Product:Developer Tools Product Version:Version 8.0 beta 3 (8S174q)
Classification:UI/Usability Reproducible:Always
 
Summary:
video attached. Project attached.

When I try doing on-demand completion (that is, using escape rather than having it in my face), it doesn't work reliably inside of a string interpolation.

The movie shows me trying to get "hat.bounds" (where hat is an NSBezierPath) to complete because I didn't remember the precise name (is it bounds? frame? rect?  splunge?)  It only gave me the option for "color", which isn't even a property of bezier paths.

(obtw, I use black for all my syntax highlighting colors due to my vision correction.  Sourcekit is happily uncrashed.)

Steps to Reproduce:
1. Try something like

let hat = NSBezierPath()
print("hat bounds = \(hat. <escape>


Expected Results:
2. Get a completion for various hattributes

Actual Results:
2. Get a single unrelated completion.

Version:
Version 8.0 beta 3 (8S174q)
10.11.5 (15F34)


Notes:
It's really not that big a deal - just do your completions on another line of code and then copy/paste in to the string interpolation, but
when these kinds of things happen day-in, day-out, it's just another heavy-sigh
death-of-a-thousand-cuts that makes using Xcode unpleasant.


Configuration:


Attachments:
'GrafDemo.zip' and 'no-completion-for-you.mp4' were successfully uploaded.

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!