Weird JSP behaviour in #5321

Is anyone else seeing this:

Edit a JSP file.

Hit the space bar

The contents of the file start indenting, about one tab stop every three seconds, until you shut the file or close IDEA.


And each time it indents, it seems to generate this in the log:

2006-06-07 09:42:30,608 ERROR - e.PostprocessReformatingAspect - IntelliJ IDEA (Demetra) #5321 Build #5321
2006-06-07 09:42:30,608 ERROR - e.PostprocessReformatingAspect - JDK: 1.5.0_07
2006-06-07 09:42:30,608 ERROR - e.PostprocessReformatingAspect - VM: Java HotSpot(TM) Client VM
2006-06-07 09:42:30,608 ERROR - e.PostprocessReformatingAspect - Vendor: Sun Microsystems Inc.
2006-06-07 09:42:30,608 ERROR - e.PostprocessReformatingAspect - OS: Windows XP
2006-06-07 09:42:30,608 ERROR - e.PostprocessReformatingAspect - Last Action: EditorUnindentSelection
2006-06-07 09:42:30,608 ERROR - e.PostprocessReformatingAspect - Current Command: Undefined
2006-06-07 09:42:30,624 ERROR - e.PostprocessReformatingAspect - Assertion failed: for not generated items old indentation must be defined
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at com.intellij.psi.impl.source.PostprocessReformattingAspect$7.visitNode(PostprocessReformattingAspect.java:3)
at com.intellij.psi.impl.source.tree.RecursiveTreeElementVisitor.visitComposite(RecursiveTreeElementVisitor.java:9)
at com.intellij.psi.impl.source.PostprocessReformattingAspect$7.visitComposite(PostprocessReformattingAspect.java:17)
at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:112)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.a(PostprocessReformattingAspect.java:115)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.a(PostprocessReformattingAspect.java:73)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.access$100(PostprocessReformattingAspect.java:189)
at com.intellij.psi.impl.source.PostprocessReformattingAspect$5.run(PostprocessReformattingAspect.java:1)
at com.intellij.psi.impl.source.PostprocessReformattingAspect$1.compute(PostprocessReformattingAspect.java:1)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:183)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:147)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.doPostponedFormatting(PostprocessReformattingAspect.java:148)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.doPostponedFormatting(PostprocessReformattingAspect.java:194)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.postponeFormattingInside(PostprocessReformattingAspect.java:131)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:336)
at com.intellij.openapi.command.WriteCommandAction$2.run(WriteCommandAction.java:97)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:23)
at com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:95)
at com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:76)
at com.intellij.ide.structureView.impl.jsp.JspStructureViewBuilder.d(JspStructureViewBuilder.java:69)
at com.intellij.ide.structureView.impl.jsp.JspStructureViewBuilder.b(JspStructureViewBuilder.java:57)
at com.intellij.ide.structureView.impl.jsp.JspStructureViewBuilder.access$300(JspStructureViewBuilder.java:37)
at com.intellij.ide.structureView.impl.jsp.JspStructureViewBuilder$1$1$1.run(JspStructureViewBuilder.java:8)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:354)
at com.intellij.ide.structureView.impl.jsp.JspStructureViewBuilder$1$1.run(JspStructureViewBuilder.java:3)
at com.intellij.util.Alarm$1.run(Alarm.java:86)
at com.intellij.util.Alarm$MyThread$1.run(Alarm.java:229)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:4)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:66)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:12)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:120)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

2 comments
Comment actions Permalink

Yes, I've cought it.

Indents all JSP content except first two lines about one space per every three seconds.
The first two lines were "<%--" and " $Log: $".
CPU activity was high.

0
Comment actions Permalink

Yep.

Even when you don't type anything, the memory counter seems to be having some sort of fit.

I've put a request in

http://www.jetbrains.net/jira/browse/IDEADEV-6281


In the meantime, I've just remapped JSP files as HTML

0

Please sign in to leave a comment.