Camouflage exception

With 1035 when first opening a file:


Error message: Attempt to add a fold region that is the same as existing
or intersects one. Old FoldRegion (18150:18200). Trying to add
FoldRegion (18182:18273)
java.lang.Throwable

at com.intellij.openapi.diagnostic.Logger.error(Logger.java:14)

at com.intellij.openapi.editor.b.n$c_.a(n$c_.java:29)

at com.intellij.openapi.editor.b.n.addFoldRegion(n.java:52)

at
ravet.intellij.plugins.camouflagePlugin.helpers.CodeFolder$1.run(CodeFolder.java:39)

at com.intellij.openapi.editor.b.n.runBatchFoldingOperation(n.java:20)

at
ravet.intellij.plugins.camouflagePlugin.helpers.CodeFolder.foldRegion(CodeFolder.java:32)

at
ravet.intellij.plugins.camouflagePlugin.helpers.CodeFolder.foldOrRefoldRegionN(CodeFolder.java:25)

at
ravet.intellij.plugins.camouflagePlugin.helpers.CodeFolder.plainSystemCollapse(CodeFolder.java:131)

at
ravet.intellij.plugins.camouflagePlugin.intentions.AbstractCamouflageIntention.foldBlockStatement(AbstractCamouflageIntention.java:193)

at
ravet.intellij.plugins.camouflagePlugin.intentionsFolding.FoldOneIfStatementIntention.foldIfStatement(FoldOneIfStatementIntention.java:31)

at
ravet.intellij.plugins.camouflagePlugin.intentionsFolding.FoldAllIfStatementsIntention$1.visitIfStatement(FoldAllIfStatementsIntention.java:20)

at
ravet.intellij.commons.visitors.IfStatement_Visitor.visitElement(IfStatement_Visitor.java:13)

at
ravet.intellij.commons.visitors.AbstractVisitor.doVisitChildren(AbstractVisitor.java:22)

at
ravet.intellij.commons.visitors.IfStatement_Visitor.visitElement(IfStatement_Visitor.java:18)


at
ravet.intellij.commons.visitors.AbstractVisitor.doVisitChildren(AbstractVisitor.java:22)

at
ravet.intellij.commons.visitors.IfStatement_Visitor.visitElement(IfStatement_Visitor.java:14)

at
ravet.intellij.commons.visitors.AbstractVisitor.doVisitChildren(AbstractVisitor.java:22)

at
ravet.intellij.commons.visitors.IfStatement_Visitor.visitElement(IfStatement_Visitor.java:18)

at
ravet.intellij.commons.visitors.AbstractVisitor.doVisitChildren(AbstractVisitor.java:22)

at
ravet.intellij.commons.visitors.IfStatement_Visitor.visitElement(IfStatement_Visitor.java:18)

at
ravet.intellij.commons.visitors.AbstractVisitor.doVisitChildren(AbstractVisitor.java:22)

at
ravet.intellij.commons.visitors.IfStatement_Visitor.visitElement(IfStatement_Visitor.java:18)

at
ravet.intellij.commons.visitors.AbstractVisitor.doVisitChildren(AbstractVisitor.java:22)

at
ravet.intellij.commons.visitors.IfStatement_Visitor.visitElement(IfStatement_Visitor.java:18)

at
com.intellij.psi.JavaElementVisitor.visitFile(JavaElementVisitor.java:68)

at
ravet.intellij.plugins.camouflagePlugin.actions.AutomaticClassMultiFolder.foldIfs(AutomaticClassMultiFolder.java:89)

at
ravet.intellij.plugins.camouflagePlugin.actions.AutomaticClassMultiFolder.processTheFile(AutomaticClassMultiFolder.java:60)

at
ravet.intellij.plugins.camouflagePlugin.actions.AutomaticClassMultiFolder.editorCreated(AutomaticClassMultiFolder.java:34)

at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.intellij.util.EventDispatcher.a(EventDispatcher.java:18)

at com.intellij.util.EventDispatcher.a(EventDispatcher.java:41)

at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:44)

at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:6)

at $Proxy15.editorCreated(Unknown Source)

at com.intellij.openapi.editor.b.d.a(d.java:1)

at com.intellij.openapi.editor.b.d.createEditor(d.java:43)

at com.intellij.openapi.fileEditor.b.a.d.f(d.java:32)

at com.intellij.openapi.fileEditor.b.a.d.(d.java:36) at com.intellij.openapi.fileEditor.b.a.a.]]>(a.java:71)

at com.intellij.openapi.fileEditor.b.a.b.createEditor(b.java:28)

at com.intellij.openapi.fileEditor.b.f.b(f.java:250)

at com.intellij.openapi.fileEditor.b.f.access$900(f.java:616)

at com.intellij.openapi.fileEditor.b.f$3.run(f$3.java)

at com.intellij.openapi.command.impl.a.executeCommand(a.java:38)

at com.intellij.openapi.fileEditor.b.f.a(f.java:88)

at com.intellij.openapi.fileEditor.b.f.access$1400(f.java:266)

at com.intellij.openapi.fileEditor.b.f$7.run(f$7.java:1)

at com.intellij.openapi.command.impl.a.executeCommand(a.java:71)

at com.intellij.openapi.fileEditor.b.f$6.run(f$6.java:1)

at com.intellij.ide.a.a.a.a(a.java:33)

at com.intellij.ide.a.a.a.c(a.java:12)

at com.intellij.openapi.project.a.b$5.run(b$5.java:1)

at com.intellij.util.LaterInvocator$FlushQueue.run(LaterInvocator.java:19)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)

at com.intellij.ide.q.b(q.java:11)

at com.intellij.ide.q.a(q.java:85)

at com.intellij.ide.q.dispatchEvent(q.java:141)

at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Please sign in to leave a comment.