IntelliJ,无法编辑JSP文件

时间:2013-05-07 08:52:54

标签: intellij-idea

我正在使用IntelliJ 12.0.4社区版。

我的问题是我只能打开JSP文件并在其中键入内容。 Backspace,DELETE和其他编辑键不起作用,整个IDE以某种方式挂起,我必须重新启动IntelliJ。

日志文件包含此类条目:

  2013-05-07 10:50:25,028 [  36991]  ERROR - .psi.impl.DocumentCommitThread - IntelliJ IDEA 12.0.4  Build #IC-123.169 
  2013-05-07 10:50:25,028 [  36991]  ERROR - .psi.impl.DocumentCommitThread - JDK: 1.7.0_09 
  2013-05-07 10:50:25,028 [  36991]  ERROR - .psi.impl.DocumentCommitThread - VM: Java HotSpot(TM) Client VM 
  2013-05-07 10:50:25,028 [  36991]  ERROR - .psi.impl.DocumentCommitThread - Vendor: Oracle Corporation 
  2013-05-07 10:50:25,028 [  36991]  ERROR - .psi.impl.DocumentCommitThread - OS: Windows 7 
  2013-05-07 10:50:25,028 [  36991]  ERROR - .psi.impl.DocumentCommitThread - Last Action: EditorEnter 
  2013-05-07 10:50:25,028 [  36991]  ERROR - .psi.impl.DocumentCommitThread - View provider com.intellij.psi.SingleRootFileViewProvider@1558433 refused to parse text with Language: TEXT; base: Language: ANY; copy: Language: ANY; fileType: com.intellij.openapi.fileTypes.impl.AbstractFileType@1573ede 
  java.lang.RuntimeException: View provider com.intellij.psi.SingleRootFileViewProvider@1558433 refused to parse text with Language: TEXT; base: Language: ANY; copy: Language: ANY; fileType: com.intellij.openapi.fileTypes.impl.AbstractFileType@1573ede
    at com.intellij.psi.impl.source.text.BlockSupportImpl.makeFullParse(BlockSupportImpl.java:193)
    at com.intellij.psi.impl.source.text.BlockSupportImpl.reparseRangeInternal(BlockSupportImpl.java:143)
    at com.intellij.psi.impl.source.text.BlockSupportImpl.reparseRange(BlockSupportImpl.java:82)
    at com.intellij.psi.impl.DocumentCommitThread.doCommit(DocumentCommitThread.java:578)
    at com.intellij.psi.impl.DocumentCommitThread.access$600(DocumentCommitThread.java:67)
    at com.intellij.psi.impl.DocumentCommitThread$3.run(DocumentCommitThread.java:460)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1155)
    at com.intellij.psi.impl.DocumentCommitThread.commitUnderProgress(DocumentCommitThread.java:473)
    at com.intellij.psi.impl.DocumentCommitThread.access$500(DocumentCommitThread.java:67)
    at com.intellij.psi.impl.DocumentCommitThread$2.run(DocumentCommitThread.java:352)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:232)
    at com.intellij.psi.impl.DocumentCommitThread.pollQueue(DocumentCommitThread.java:349)
    at com.intellij.psi.impl.DocumentCommitThread.run(DocumentCommitThread.java:293)
    at java.lang.Thread.run(Thread.java:722)

有人有同样的问题吗?

1 个答案:

答案 0 :(得分:1)

我有时会遇到同样的问题。按ALT + TAB ALT + TAB(您也必须抬起ALT键)可以轻松完成最小化和重新打开,解决了这个问题。