Skip to content

Instantly share code, notes, and snippets.

@ggreer
Created November 6, 2015 02:12
Show Gist options
  • Save ggreer/605d79bb2a49ef6fb423 to your computer and use it in GitHub Desktop.
Save ggreer/605d79bb2a49ef6fb423 to your computer and use it in GitHub Desktop.
Can't perform mapping from offset (325) to logical position even with complete soft wraps cache re-parsing
Details: prefix: 'none', allow caret inside tab: false, allow caret after line end: false, soft wraps: on, soft wraps data: appliance manager state: recalculation in progress: false; event being processed: null; soft wraps mapping info: Current cache: [], entries affected by current update: [], soft wraps affected by current update: []; soft wraps: []
folding data: []
document info: , intervals:
0: 0-33, 1: 34-34, 2: 35-63, 3: 64-64, 4: 65-112, 5: 113-139, 6: 140-165, 7: 166-180, 8: 181-208, 9: 209-236, 10: 237-264, 11: 265-291, 12: 292-319, 13: 320-321, 14: 322-322,
font preferences: Effective font families: [Crisp]: Wrong offset: 325. Should be in range: [0, 322]
java.lang.IndexOutOfBoundsException: Wrong offset: 325. Should be in range: [0, 322]
at com.intellij.openapi.editor.impl.LineSet.findLineIndex(LineSet.java:140)
at com.intellij.openapi.editor.impl.DocumentImpl.getLineNumber(DocumentImpl.java:878)
at com.intellij.openapi.editor.impl.softwrap.mapping.OffsetToLogicalCalculationStrategy.build(OffsetToLogicalCalculationStrategy.java:189)
at com.intellij.openapi.editor.impl.softwrap.mapping.OffsetToLogicalCalculationStrategy.build(OffsetToLogicalCalculationStrategy.java:31)
at com.intellij.openapi.editor.impl.softwrap.mapping.CachingSoftWrapDataMapper.calculate(CachingSoftWrapDataMapper.java:320)
at com.intellij.openapi.editor.impl.softwrap.mapping.CachingSoftWrapDataMapper.offsetToLogicalPosition(CachingSoftWrapDataMapper.java:120)
at com.intellij.openapi.editor.impl.SoftWrapModelImpl$OffsetToLogicalTask.run(SoftWrapModelImpl.java:764)
at com.intellij.openapi.editor.impl.SoftWrapModelImpl.executeSafely(SoftWrapModelImpl.java:694)
at com.intellij.openapi.editor.impl.SoftWrapModelImpl.offsetToLogicalPosition(SoftWrapModelImpl.java:374)
at com.intellij.openapi.editor.impl.EditorImpl.offsetToLogicalPosition(EditorImpl.java:1472)
at com.intellij.openapi.editor.impl.EditorImpl.offsetToLogicalPosition(EditorImpl.java:1464)
at com.intellij.openapi.editor.impl.EditorImpl.offsetToVisualPosition(EditorImpl.java:1458)
at com.intellij.openapi.editor.impl.EditorImpl.offsetToVisualPosition(EditorImpl.java:1451)
at floobits.impl.DocImpl$1.run(DocImpl.java:167)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:337)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:321)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:702)
at java.awt.EventQueue$3.run(EventQueue.java:696)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:861)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:649)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:380)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment