entangle icon indicating copy to clipboard operation
entangle copied to clipboard

Fuzzy-patching gives `IndexOutOfBounds` exception

Open rymndhng opened this issue 9 years ago • 1 comments

The fuzzy patching algorithm provided by clj-diff will do this when trying to apply a patch where the shadow has changed.

Should investigate different algorithms or improve clj-diff to work around this.

rymndhng avatar May 06 '15 04:05 rymndhng

Further discovery: this was a flaw in the algorithm I was employing. If a patch gives an IndexOutOfBounds exception, it's generally OK because patching should be fuzzy. However, maybe we need to refine the scope of changes because with a large patch, applying a patch is all or nothing.

rymndhng avatar Aug 01 '15 01:08 rymndhng