Xcode9: Off by six error in playground error messages
Originator: | markd | ||
Number: | rdar://34573751 | Date Originated: | 9/21/2017 |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | Version 9.0 (9A235) |
Classification: | UI/Usability | Reproducible: | Always |
Summary: Hi! I've got a playground with a syntax error. I see an error: error: 23432n4kj23nknd.playground:82:5: error: expected declaration ksdfjsdnfjsnjf ^ 23432n4kj23nknd.playground:79:13: note: in declaration of 'AnyGreeble' final class AnyGreeble<Flonk>: Greeble { ^ Those line numbers (82, 79) are actually six lines displaced from the actual error. Playground and screenshot attached. Thanks! Steps to Reproduce: Make a new playground Have an error Get an error message with a line number Expected Results: Line number is the same as the error :-) Actual Results: line number of six too large Version/Build: Version 9.0 (9A235) 10.12.6 (16G29) Configuration:
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!
From a cow-orker: i easily recreated in in a new playground (Xcode 9 GM). i reduced the number of lines in my playground to 5, and it reported the error on the correct line as best i can tell, if the error is ~below~ greater than line 6 it will be reported as line number - 6