![Avatar](https://secure.gravatar.com/avatar/0c010334e821eeb2a968a02eea927e08.jpg?s=64&d=identicon&r=g)
We're using Actipro v2016.1 in our application, and have seen this error out in the wild and reported back through our telemetry. Any sense if this is still a known issue, and/or if there is a known fix?
Here is the exception message/stack:
Both versions must reference the same ITextDocument.
at ActiproSoftware.Text.TextRange.Translate(ITextVersion #bDf, ITextVersion #qCf, TextRangeTrackingModes #oCf, Boolean #cDf)
at ActiproSoftware.Text.TextSnapshotRange.TranslateTo(ITextSnapshot toSnapshot, TextRangeTrackingModes trackingModes)
Here's our method that is calling ActiproSoftware code:
private static TextRange FindRangeInDestination(ITextSnapshot destination, TextSnapshotRange source)
{
var translatedRange = source.TranslateTo(destination, TextRangeTrackingModes.Default).TextRange;
if (!destination.TextRange.BordersOn(translatedRange))
{
return translatedRange;
}
return TextRange.Intersect(source, destination.TextRange);
}
The ITextSnapshot being sent as the destination parameter is
SyntaxEditor.ActiveView.CurrentSnapshot
[Modified 5 years ago]