{"action":"created","issue":{"url":"https://api.github.com/repos/krasa/EclipseCodeFormatter/issues/61","labels_url":"https://api.github.com/repos/krasa/EclipseCodeFormatter/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/krasa/EclipseCodeFormatter/issues/61/comments","events_url":"https://api.github.com/repos/krasa/EclipseCodeFormatter/issues/61/events","html_url":"https://github.com/krasa/EclipseCodeFormatter/issues/61","id":100732933,"number":61,"title":"Wrong offset","user":{"login":"wuSam","id":1011823,"avatar_url":"https://avatars.githubusercontent.com/u/1011823?v=3","gravatar_id":"","url":"https://api.github.com/users/wuSam","html_url":"https://github.com/wuSam","followers_url":"https://api.github.com/users/wuSam/followers","following_url":"https://api.github.com/users/wuSam/following{/other_user}","gists_url":"https://api.github.com/users/wuSam/gists{/gist_id}","starred_url":"https://api.github.com/users/wuSam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuSam/subscriptions","organizations_url":"https://api.github.com/users/wuSam/orgs","repos_url":"https://api.github.com/users/wuSam/repos","events_url":"https://api.github.com/users/wuSam/events{/privacy}","received_events_url":"https://api.github.com/users/wuSam/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-13T10:22:39Z","updated_at":"2015-08-13T10:40:55Z","closed_at":"2015-08-13T10:40:55Z","body":"Wrong offset: 12572 textLength: 12495\r\nIntelliJ 15 EAP\r\n\r\n\r\njava.lang.IndexOutOfBoundsException: Wrong offset: 12572 textLength: 12495\r\n\tat com.intellij.openapi.editor.impl.EditorImpl.offsetToLogicalLine(EditorImpl.java:4090)\r\n\tat com.intellij.openapi.editor.impl.EditorImpl.offsetToLogicalPosition(EditorImpl.java:1468)\r\n\tat com.intellij.openapi.editor.impl.SoftWrapModelImpl.offsetToLogicalPosition(SoftWrapModelImpl.java:369)\r\n\tat com.intellij.openapi.editor.impl.EditorImpl.offsetToLogicalPosition(EditorImpl.java:1466)\r\n\tat com.intellij.openapi.editor.impl.EditorImpl.offsetToLogicalPosition(EditorImpl.java:1458)\r\n\tat com.intellij.openapi.editor.impl.CaretImpl$1.run(CaretImpl.java:198)\r\n\tat com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:422)\r\n\tat com.intellij.openapi.editor.impl.CaretImpl.moveToOffset(CaretImpl.java:195)\r\n\tat com.intellij.openapi.editor.impl.CaretImpl.moveToOffset(CaretImpl.java:185)\r\n\tat com.intellij.openapi.editor.impl.CaretModelImpl.moveToOffset(CaretModelImpl.java:139)\r\n\tat krasa.formatter.plugin.EclipseCodeFormatter.restoreVisualColumn(EclipseCodeFormatter.java:131)\r\n\tat krasa.formatter.plugin.EclipseCodeFormatter.formatWhenEditorIsOpen(EclipseCodeFormatter.java:98)\r\n\tat krasa.formatter.plugin.EclipseCodeFormatter.format(EclipseCodeFormatter.java:58)\r\n\tat krasa.formatter.plugin.EclipseCodeStyleManager.formatWithEclipse(EclipseCodeStyleManager.java:214)\r\n\tat krasa.formatter.plugin.EclipseCodeStyleManager.format(EclipseCodeStyleManager.java:110)\r\n\tat krasa.formatter.plugin.EclipseCodeStyleManager.reformatText(EclipseCodeStyleManager.java:73)\r\n\tat com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:133)\r\n\tat com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:113)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$1$1.run(AbstractLayoutCodeProcessor.java:237)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1005)\r\n\tat com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$1.call(AbstractLayoutCodeProcessor.java:234)\r\n\tat com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$1.call(AbstractLayoutCodeProcessor.java:226)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$1.call(AbstractLayoutCodeProcessor.java:230)\r\n\tat com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$1.call(AbstractLayoutCodeProcessor.java:226)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$ReformatFilesTask.a(AbstractLayoutCodeProcessor.java:566)\r\n\tat com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$ReformatFilesTask.access$800(AbstractLayoutCodeProcessor.java:493)\r\n\tat com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$ReformatFilesTask$1$1.run(AbstractLayoutCodeProcessor.java:553)\r\n\tat com.intellij.openapi.project.DumbService.withAlternativeResolveEnabled(DumbService.java:254)\r\n\tat com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$ReformatFilesTask$1.run(AbstractLayoutCodeProcessor.java:550)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1005)\r\n\tat com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$ReformatFilesTask.iteration(AbstractLayoutCodeProcessor.java:547)\r\n\tat com.intellij.util.SequentialModalProgressTask$1.run(SequentialModalProgressTask.java:95)\r\n\tat java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)\r\n\tat java.awt.EventQueue.access$500(EventQueue.java:97)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:709)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:703)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:726)\r\n\tat com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:821)\r\n\tat com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:647)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)\r\n\tat com.intellij.ide.IdeEventQueue.pumpEventsForHierarchy(IdeEventQueue.java:908)\r\n\tat com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:202)\r\n\tat com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:189)\r\n\tat com.intellij.openapi.application.impl.ApplicationImpl.runProcessWithProgressSynchronously(ApplicationImpl.java:645)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressSynchronously(CoreProgressManager.java:354)\r\n\tat com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcessWithProgressSynchronously(ProgressManagerImpl.java:76)\r\n\tat com.intellij.openapi.progress.impl.CoreProgressManager.run(CoreProgressManager.java:283)\r\n\tat com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$4.run(AbstractLayoutCodeProcessor.java:379)\r\n\tat com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$6.run(AbstractLayoutCodeProcessor.java:398)\r\n\tat com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$8$1$1.run(AbstractLayoutCodeProcessor.java:458)\r\n\tat com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)\r\n\tat com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)\r\n\tat com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)\r\n\tat com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$8$1.run(AbstractLayoutCodeProcessor.java:453)\r\n\tat com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:337)\r\n\tat com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:321)\r\n\tat java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)\r\n\tat java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)\r\n\tat java.awt.EventQueue.access$500(EventQueue.java:97)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:709)\r\n\tat java.awt.EventQueue$3.run(EventQueue.java:703)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)\r\n\tat java.awt.EventQueue.dispatchEvent(EventQueue.java:726)\r\n\tat com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:821)\r\n\tat com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:647)\r\n\tat com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)\r\n\tat java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)\r\n\tat java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)\r\n\tat java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)\r\n\tat java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)\r\n\tat java.awt.EventDispatchThread.run(EventDispatchThread.java:82)\r\n"},"comment":{"url":"https://api.github.com/repos/krasa/EclipseCodeFormatter/issues/comments/130609039","html_url":"https://github.com/krasa/EclipseCodeFormatter/issues/61#issuecomment-130609039","issue_url":"https://api.github.com/repos/krasa/EclipseCodeFormatter/issues/61","id":130609039,"user":{"login":"krasa","id":1160875,"avatar_url":"https://avatars.githubusercontent.com/u/1160875?v=3","gravatar_id":"","url":"https://api.github.com/users/krasa","html_url":"https://github.com/krasa","followers_url":"https://api.github.com/users/krasa/followers","following_url":"https://api.github.com/users/krasa/following{/other_user}","gists_url":"https://api.github.com/users/krasa/gists{/gist_id}","starred_url":"https://api.github.com/users/krasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krasa/subscriptions","organizations_url":"https://api.github.com/users/krasa/orgs","repos_url":"https://api.github.com/users/krasa/repos","events_url":"https://api.github.com/users/krasa/events{/privacy}","received_events_url":"https://api.github.com/users/krasa/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T10:40:55Z","updated_at":"2015-08-13T10:40:55Z","body":"fixed"}}