JSP/JavaScript file editing trouble

There is a funny JSP/JS file in my project. I can't create a newline in it (pressing "Enter" is simply ignored). And there are many assertions... File is attached. Assertion text is below:

Assertion failed: Invalid root element
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at com.intellij.psi.impl.source.tree.SharedImplUtil.findCharTableByTree(SharedImplUtil.java:90)
at com.intellij.psi.impl.source.jsp.CompositeLanguageParsingUtil.a(CompositeLanguageParsingUtil.java:195)
at com.intellij.psi.impl.source.jsp.CompositeLanguageParsingUtil.parseIncludedLanguage(CompositeLanguageParsingUtil.java:288)
at com.intellij.psi.jsp.JspElementType$12.parseContents(JspElementType.java:3)
at com.intellij.psi.impl.source.tree.ChameleonElement.transform(ChameleonElement.java:3)
at com.intellij.psi.impl.source.parsing.ChameleonTransforming.transform(ChameleonTransforming.java:15)
at com.intellij.psi.impl.source.tree.ChameleonElement.getTransformedFirstOrSelf(ChameleonElement.java:40)
at com.intellij.psi.impl.source.tree.SharedImplUtil.getFirstChild(SharedImplUtil.java:81)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getFirstChild(TreeWrapperPsiElement.java:69)
at com.intellij.psi.SingleRootFileViewProvider.findElementAt(SingleRootFileViewProvider.java:158)
at com.intellij.psi.CompositeLanguageFileViewProvider.findElementAt(CompositeLanguageFileViewProvider.java:75)
at com.intellij.psi.impl.source.PsiFileImpl.findElementAt(PsiFileImpl.java:18)
at com.intellij.codeInsight.editorActions.EnterHandler.executeWriteActionInner(EnterHandler.java:196)
at com.intellij.codeInsight.editorActions.EnterHandler$1.compute(EnterHandler.java:2)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePosprocessFormattingInside(PostprocessReformattingAspect.java:194)
at com.intellij.codeInsight.editorActions.EnterHandler.executeWriteAction(EnterHandler.java:12)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:52)
at com.intellij.openapi.application.impl.ApplicationImpl$9.compute(ApplicationImpl.java:0)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.postponeFormattingInside(PostprocessReformattingAspect.java:27)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:140)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:36)
at com.intellij.codeInsight.template.impl.TemplateManagerActions$EnterHandler.executeWriteAction(TemplateManagerActions.java:2)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:52)
at com.intellij.openapi.application.impl.ApplicationImpl$9.compute(ApplicationImpl.java:0)
at com.intellij.psi.impl.source.PostprocessReformattingAspect.postponeFormattingInside(PostprocessReformattingAspect.java:27)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:140)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:36)
at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:51)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:26)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:97)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:57)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:42)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:168)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.b(IdeKeyEventDispatcher.java:144)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:57)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:84)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:53)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)



java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at com.intellij.psi.impl.source.tree.SharedImplUtil.findCharTableByTree(SharedImplUtil.java:90)
at com.intellij.psi.impl.source.jsp.CompositeLanguageParsingUtil.a(CompositeLanguageParsingUtil.java:195)
at com.intellij.psi.impl.source.jsp.CompositeLanguageParsingUtil.parseIncludedLanguage(CompositeLanguageParsingUtil.java:288)
at com.intellij.psi.jsp.JspElementType$12.parseContents(JspElementType.java:3)
at com.intellij.psi.impl.source.tree.ChameleonElement.transform(ChameleonElement.java:3)
at com.intellij.psi.impl.source.parsing.ChameleonTransforming.transform(ChameleonTransforming.java:15)
at com.intellij.psi.impl.source.parsing.ChameleonTransforming.transformChildren(ChameleonTransforming.java:35)
at com.intellij.psi.impl.source.parsing.ChameleonTransforming.transformChildren(ChameleonTransforming.java:47)
at com.intellij.psi.impl.source.tree.CompositeElement.countChildren(CompositeElement.java:178)
at com.intellij.psi.impl.source.tree.CompositeElement.getChildrenAsPsiElements(CompositeElement.java:58)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getChildren(TreeWrapperPsiElement.java:5)
at com.intellij.xml.util.HtmlUtil.getRealXmlDocument(HtmlUtil.java:55)
at com.intellij.lang.jsp.JspFoldingBuilder.buildFoldRegions(JspFoldingBuilder.java:11)
at com.intellij.codeInsight.folding.impl.FoldingPolicy.getElementsToFold(FoldingPolicy.java:426)
at com.intellij.codeInsight.folding.impl.FoldingUpdate.updateFoldRegions(FoldingUpdate.java:24)
at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.a(CodeFoldingManagerImpl.java:4)
at com.intellij.codeInsight.folding.impl.CodeFoldingManagerImpl.updateFoldRegionsAsync(CodeFoldingManagerImpl.java:41)
at com.intellij.codeInsight.daemon.impl.CodeFoldingPass.doCollectInformation(CodeFoldingPass.java:2)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:48)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:10)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:447)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:12)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:22)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:9)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:8)



Attachment(s):
sections.js.jsp
1 comment
Comment actions Permalink

Demetra EAP 5261 (5245 too), Linux version.

0

Please sign in to leave a comment.