xed --line is extremely slow and does not scroll viewport

Originator:ali.rantakari
Number:rdar://19529585 Date Originated:20-Jan-2015
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6.1.1 (6A2008a)
Classification:Bug Reproducible:Always
 
Summary:
The `xed` command's `--line` argument allows you to open a file in Xcode at a specified line number. Technically it works, but is extremely slow (often, several seconds!) and the viewport is not scrolled so that the selected line would be visible.

Steps to Reproduce:
1. Open a file in Xcode and scroll the viewport so that line 2 is NOT visible.
2. In Terminal.app, run "xed --line 2 /path/to/the/file"

Expected Results:
• Xcode opens the file
• Xcode sets the insertion point to line 2
• Xcode scrolls the viewport so that the insertion point is visible
• All of the above happens _quickly_ (i.e. within one second)

Actual Results:
• Xcode opens the file (as expected)
• Xcode sets the insertion point to line 2 (as expected)
• Xcode DOES NOT scroll the viewport so that the insertion point would be visible
• Xcode opens the file quickly (as expected), but it can take several seconds for the insertion point to move to the specified line.

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!