Swift autocomplete on string interpolation adds spurious quote

Originator:sartak
Number:rdar://17117907 Date Originated:2014-06-03
Status:Duplicate of 16397165 Resolved:
Product:Developer Tools Product Version:Xcode 6 beta 1 (Version 6.0 (6A215l))
Classification:UI Reproducible:always
 
Summary:
When typing the following code:

let i = 1
println("\(i)")

When typing the second ) character, the autocompleter gets a little confused and tries to add another quote sign, leading to this invalid line of code:

println("\(i)")"

Steps to Reproduce:
1. Open Xcode
2. File -> New -> Playground
3. Type the following code (without using the autocomplete feature)

let i = 1
println("\(i)")

Expected Results:
Autocomplete offers sensible suggestions

Actual Results:
Autocomplete offers syntax errors

Version:
Xcode 6 beta 1 (Version 6.0 (6A215l))
Mac OS X Mavericks 10.9.3

Notes:


Configuration:
Suggest completions while typing is ON
Use Escape key to show completion suggestions is ON
Automatically insert closing braces ("}") is OFF
Enable type-over completions is ON
Automatically balance brackets in Objective-C method calls is ON

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!