workspace.xml file corrupted (Error on line 1: Content is not allowed in prolog) in IntelliJ, how can I fix it?
I am experimenting a very annoying issue using IntelliJ.
I was working on my project (a webapp deployed on a local instance of BEA weblogic application server) and suddenly my PC crash and I restarted it.
Coming back to my project I obtained this error:
Cannot convert project: C:\projects\Main\MyProject\workspace.xml: Error on line 1: Content is not allowed in prolog.
and looking inside the workspace.xml file of my project it contains something like it:
So, I delete it and I restart IntelliJ (I read onlyne that I have to do in this way) so IntelliJ create it and I can open my project again inside IntelliJ but now the problem is that I can't run it (the Run and Debug icons are disabled).
What could be the problem? and how can I try to solve this issue?
I experienced the same error. I deleted the workspace.xml and started 'Invalid Caches/Restart" under "File". Then I had to recreate my Run/Debug Configuration. Then everything works like before.
Corrupted workspace file? : IDEA-153106 - YouTrack, idea/workspace.xml': Error on line 1316: XML document structures must start and how to correct this - I have **no** idea, besides recreating the workspace with workspace/settings and sometimes corrupted git repository using IntelliJ IDEA /workspace-xml-file-corrupted-error-on-line-1-content-is-not-allowed-in-prolog go to your workspace. deleting .idea folder. open your project and import it. Answer：. Just Open Workspace.XMl and check is there any In-Valid XML content. Or else delete all from Workspace.xml and compile again. Answer：. Check first line of xml files in .idea folder. Remove their content if error is given by intellij.
I experienced same problem.you can solve it by deleting ant.xml, then everything will be fine.
File corrupted after crash – IDEs Support (IntelliJ Platform), Hi, today my phpstorm become unresponsive while editing a file and it caused the hole windows to become unresponsive , so i had to Error on line 1: Content is not allowed in prolog. file 'projectname\.idea\workspace.xml': Error on line 1: Content is not allowed in prolog. Please correct the file content. However, project files are not affected by this and should be completely safe with "Safe Write" option - it creates a temporary file with changes which is merged into main file afterwards so all read/write operations are performed with temporary file.
In my case the file encoding of the workspace.xml file was wrong. Converting it back to UTF-8 solved it for me.
Bluescreen/crash (XP,ntfs) causes workspace and opened file(s) to , It appears that the workspace.xml does not have apparent corruption (with the nulls 20 or more errors about "content not allowed in prolog" (most likely invalid XML), and With the fix in place, I can't reproduce the issue in Windows (NTFS) and No project files were corrupted (alhamdulillah) but the IDEA settings and� I run Intellij, and when I try to run an android app, I always have an internal error: Content is not allowed in prolog. I think that I have tried everything to fix it, but nothings works. Before, I did nothing special in AndroidManifest, so I don't know why it isn't working.
PhpStorm Corrupts Its Settings Following Power Off – IDEs Support , IDEs Support (IntelliJ Platform) | JetBrains I have to purge the .idea directory, after which if I reconfigure Without the purge and re-creation of the project, no settings changed after the corrupted dir>\.idea\workspace.xml': Error on line 1: Content is not allowed in prolog. Please correct the file content." To solve the error, just delete the workspace.xml as specified in the error message. It is ok to delete it since you probably already lost all your custom workspace settings when the file got corrupted and you will never be able to save new workspace settings unless you fix the corrupted file.
Intellij Content is not allowed in prolog, I think that I have tried everything to fix it, but nothings works. JDOMParseException: Error on line 1: Content is not allowed in prolog. at org. jdom.input. Or else delete all from Workspace.xml and compile again. File corrupted after crash – IDEs Support (IntelliJ Platform), xml': Error on line 1: Content is not allowed in� Please correct the file content." This is a *major* bug and needs to be addressed ASAP. It appears this bug has existed in other JB IDEs for at least 1 year , so there is really no excuse for it to still be present.
der is no dot in my xml den also it showing org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
- The "Invalid Caches/Restart" seemed to be the important step.
- Delete all the files in .idea folder and use "Invalid Caches/Restart", it will generate the deleted files (no corrupted ones).