wmyywm / eclipse-code-formatter-intellij-plugin

Automatically exported from code.google.com/p/eclipse-code-formatter-intellij-plugin
0 stars 0 forks source link

'interval not found' error #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I got a prompt from IntelliJ saying that this plugin threw an exception. I'm 
not sure what user action caused the error.

interval not found: RangeHighlighter: (9148,9218); layer:999; tooltip: Lines 
234-235 changed; []; isValid=true: interval not found: RangeHighlighter: 
(9148,9218); layer:999; tooltip: Lines 234-235 changed; []; isValid=true
java.lang.AssertionError: interval not found: RangeHighlighter: (9148,9218); 
layer:999; tooltip: Lines 234-235 changed; []; isValid=true
    at com.intellij.openapi.editor.impl.IntervalTreeImpl$IntervalNode.a(IntervalTreeImpl.java:141)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl$IntervalNode.access$1500(IntervalTreeImpl.java:51)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.removeInterval(IntervalTreeImpl.java:923)
    at com.intellij.openapi.editor.impl.MarkupModelImpl.removeHighlighter(MarkupModelImpl.java:182)
    at com.intellij.openapi.editor.impl.RangeHighlighterImpl.unregisterInTree(RangeHighlighterImpl.java:68)
    at com.intellij.openapi.editor.impl.RangeMarkerImpl.dispose(RangeMarkerImpl.java:77)
    at com.intellij.openapi.vcs.ex.LineStatusTracker$MyDocumentListener.a(LineStatusTracker.java:455)
    at com.intellij.openapi.vcs.ex.LineStatusTracker$MyDocumentListener.documentChanged(LineStatusTracker.java:382)
    at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:592)
    at com.intellij.openapi.editor.impl.DocumentImpl.access$600(DocumentImpl.java:51)
    at com.intellij.openapi.editor.impl.DocumentImpl$MyCharArray.afterChangedUpdate(DocumentImpl.java:881)
    at com.intellij.openapi.editor.impl.CharArray.replace(CharArray.java:252)
    at com.intellij.openapi.editor.impl.DocumentImpl.a(DocumentImpl.java:446)
    at com.intellij.openapi.editor.impl.DocumentImpl.access$300(DocumentImpl.java:51)
    at com.intellij.openapi.editor.impl.DocumentImpl$4.run(DocumentImpl.java:790)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:117)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85)
    at com.intellij.openapi.editor.impl.DocumentImpl.setText(DocumentImpl.java:797)
    at krasa.formatter.plugin.EclipseCodeFormatter.formatWhenEditorIsOpen(EclipseCodeFormatter.java:88)
    at krasa.formatter.plugin.EclipseCodeFormatter.format(EclipseCodeFormatter.java:55)
    at krasa.formatter.plugin.EclipseCodeStyleManager.formatWithEclipse(EclipseCodeStyleManager.java:129)
    at krasa.formatter.plugin.EclipseCodeStyleManager.reformatText(EclipseCodeStyleManager.java:80)
    at krasa.formatter.plugin.DelegatingCodeStyleManager.reformatText(DelegatingCodeStyleManager.java:158)
    at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:94)
    at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:83)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$2.run(AbstractLayoutCodeProcessor.java:210)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1013)
    at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1$1.run(AbstractLayoutCodeProcessor.java:489)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85)
    at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1.run(AbstractLayoutCodeProcessor.java:484)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:343)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:607)
    at java.awt.EventQueue$1.run(EventQueue.java:605)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
    at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:700)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:525)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Original issue reported on code.google.com by Russell....@gmail.com on 26 Apr 2013 at 2:25

GoogleCodeExporter commented 9 years ago
Never seen that in combination with the formatter. I think it could be a bug of 
IntelliJ's Highligher

Original comment by vojta.kr...@gmail.com on 26 Apr 2013 at 2:28

GoogleCodeExporter commented 9 years ago
It looks like that to me, too; but the error dialog told me that it was an 
exception thrown from the Eclipse Formatter plugin, and gave me a link to the 
plugin website to report it. Can you follow up and add a youtrack issue if you 
think an IntelliJ issue is the root cause?

Thanks

Original comment by Russell....@gmail.com on 26 Apr 2013 at 2:30

GoogleCodeExporter commented 9 years ago
I think it would be just closed as not reproducible.

Original comment by vojta.kr...@gmail.com on 26 Apr 2013 at 2:35

GoogleCodeExporter commented 9 years ago

Original comment by vojta.kr...@gmail.com on 1 Aug 2013 at 11:10