[swift-dev] Trouble minimizing test case: code completion

Greg Parker gparker at apple.com
Sat Dec 12 01:55:06 CST 2015


> On Dec 11, 2015, at 10:43 PM, Drew Crawford via swift-dev <swift-dev at swift.org> wrote:
> 
> I'm experiencing a bug where code completion from an OSX framework target is not available in its test target.  I'm trying to report this in the tracker, but I'm having trouble minimizing the test case.
> 
> Where I'm at:
> 
> I have minimized the project down to 800LOC, but it is still too big to post publicly (or even privately, really).  The problem seems to be that minimizing further prevents the bug from occurring at all.  Even small minimizations, like removing a comment, seem to lose the bug.
> 
> My (completely unsubstantiated) theory is that I am hitting some kind of "exponential cliff", where code completion is some O(f(n)) for f a very bad function, but by reducing the n just a few lines of code, f(n) becomes computable again.
> 
> I'm wondering if anyone has other suggestions for minimizing the test case, or other diagnostic data that may shed light, as I am at a dead end here.

File the bug report with what you have. An 800 line demonstration is better than no demonstration at all. 

In the bug report you can describe the reductions that you tried that didn't work. That might help whoever gets it next.


-- 
Greg Parker     gparker at apple.com     Runtime Wrangler




More information about the swift-dev mailing list