Skip to content

Instantly share code, notes, and snippets.

@ggreer
Created November 9, 2015 22:38
Show Gist options
  • Save ggreer/fc7c7b5523aca7c40b81 to your computer and use it in GitHub Desktop.
Save ggreer/fc7c7b5523aca7c40b81 to your computer and use it in GitHub Desktop.
Can't perform mapping from offset (1241) 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-25, 1: 26-26, 2: 27-63, 3: 64-106, 4: 107-107, 5: 108-129, 6: 130-130, 7: 131-195, 8: 196-227, 9: 228-261, 10: 262-266, 11: 267-307, 12: 308-328, 13: 329-350, 14: 351-384, 15: 385-420, 16: 421-454, 17: 455-490, 18: 491-586, 19: 587-608, 20: 609-641, 21: 642-653, 22: 654-749, 23: 750-771, 24: 772-803, 25: 804-873, 26: 874-887, 27: 888-899, 28: 900-952, 29: 953-1005, 30: 1006-1037, 31: 1038-1067, 32: 1068-1099, 33: 1100-1110, 34: 1111-1126, 35: 1127-1132, 36: 1133-1146, 37: 1147-1160, 38: 1161-1204, 39: 1205-1230, 40: 1231-1231, 41: 1232-1237, 42: 1238-1239, 43: 1240-1240,
font preferences: Effective font families: [Crisp]: Wrong offset: 1241. Should be in range: [0, 1240]
java.lang.IndexOutOfBoundsException: Wrong offset: 1241. Should be in range: [0, 1240]
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:169)
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