Intellij IDEA crashed, and now throws an error

后端 未结 10 1924
你的背包
你的背包 2020-12-12 18:08

I work in Intellij IDEA, but my computer freezes so I turn off my computer. (long click power button) When I turned on computer and start IntelliJ IDEA I had this error:

10条回答
  •  情书的邮戳
    2020-12-12 18:31

    I've found on several occasions that "Content is not allowed in prolog" presented when I had an XML file with leading spaces in front of the xml or doc type declarations at the start of the file.

    I had the same symptoms, and was able to solve by closing the project and going through each of the XML files in the project ".idea" folder. In my case, I found that somehow a few hundred lines of leading whitespace had been added to the "workspace.xml" file. I removed the leading whitespace from the file, restarted IDEa and everything worked again.

提交回复
热议问题