Xcode8 : error in array extension not being displayed correctly
| Originator: | markd | ||
| Number: | rdar://27142383 | Date Originated: | 7/1/2016 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Version 8.0 beta (8S128d) |
| Classification: | UI/Usability | Reproducible: | always |
Summary: I'm adding an extension to Array, scoped by String. I had the syntax wrong. Xcode said "hey, there's an error" but no indication in the editor that anything was wrong. In fact, the only indication was the teeny-tiny little icon in the top bar (which I generally ignore - it's just flickering noise most of the time) I click on the error, and it takes me to the build like with a message "<unknown>:0: error: type 'Element' constrained to non-protocol type 'String'", no indication of where the problem is. Luckily this is a small project so I know where to look video and screen shot attached. Project attached. Steps to Reproduce: 1. Extend Array, limited to arrays of strings, and get the syntax wrong 2. Get an error Expected Results: 3. Xcode shows where the error is Actual Results: 4. Get shuffled to the build log with no indication where the problem is Version: Version 8.0 beta (8S128d) 10.11.4 (15E65) Notes: It's really not that big a deal - just grovel around in the build log, but when it happens day-in, day-out, it's just another heavy-sigh death-of-a-thousand-cuts that makes using Xcode unpleasant. Configuration: Happened often in Xcode 7 too. Attachments: 'useful-error-message.mp4', 'useful-error-message.png' and 'ClassMaker.zip' 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!
screenshot: http://imgur.com/a/6IOJT video: https://vimeo.com/173117054