Cannot load settings from file
I know this issue has been addressed in other posts (here). But that issue did not address my concerns. Additionally, I see there are open issues in the issues tracker that have not been assigned but not addressed with this same problem.
Every time I re-open PyCharm, I am faced with a blank slate and an error message that reads:
"Cannot load settings from file '/Users/david.greenberg/PythonProjects/tiberius/.idea/workspace.xml': Error on line 12: The element type "HEAD" must be terminated by the matching end-tag "". Please correct the file content"
Yes, I can easily go in and mess about with the XML to fix it...however, when I close PyCharm and reopen it, the problem re-appears. It is quite frustrating because I need to rebuild by Run Configurations every time....grrrrrr
Any ideas?
I'm running OSX Sierra.
请先登录再写评论。
I tried to find the tickets you're referencing but wasn't able. Can you link them here?
If you move the .idea directory out of the way and start over, does everything survive startup/shutdown/restart?
I ran in to this in IntelliJ IDEA. The problem is that the IDE's config is set to only allow the IDE to open a file size less than a specified value. My .iml config file exceeded that size, and so my project would appear empty on load, just as you describe here. Take a look at this guide here:
https://www.jetbrains.com/help/idea/tuning-the-ide.html#configure-jvm-options
Specifically, the property:
idea.max.content.load.filesize=20000
My file was ~50MB, far exceeding the default of 20MB. I bumped my value up to cover the .iml file, closed and reopened the IDE, and everything started working smoothly again!
Thanks for the tip @Rsieve. It indeed solved my problem. My iml was about 80mb in size.
Hy Guys!
I have the same problem. And I don't know how to solve it.
Event Log
Cannot load settings from file 'C:\Users\User\Desktop\Desktop.iml': File C:\Users\User\Desktop\Desktop.iml does not exist
Please correct the file content- How?
Hi,
please submit a request at https://youtrack.jetbrains.com/issues/PY with screenshot and
logs folder zipped from ***Help | Collect logs and Diagnostic Data*** attached.