Cannot load settings from file grade.xml: content truncated


Everything was working perfectly fine until I started deployment. My code is running on a Mac and I wanted to deploy it to a windows 10 machine. My project is a React Native project which has node_modules directory.

When I am working with the editor, sometimes I see these messages appear:


After this, the editor starts indexing again and again and does not stop indexing. I have to close it. Doing invalidate caches and restart did not help.

When I open the gradle.xml file, I see that it's empty! Here you can see both files:


After this I see that node_modules is get uploaded to the remote server. But I have excluded it:

Finally I get this mesage Unable to save settings: Failed to save settings. Please restart IntelliJ IDEA


I get this erros again and again and it's always indexing. 



Please update IntelliJ IDEA to 2020.2.3 where similar errors got fixed. 

Right after that, please remove/rename .idea directory in project's root and re-import the project. This should fix the problems. 


Dear Konstantin Annikov


I installed 2020.2.3 and I am facing exactly the same issue described above. 


Does it help to remove/rename .idea directory in project's root and re-import the project.


Hi Konstantin,

I had a similar problem with every time I open my pycharm I get the message about not being able to load the ...\AppData\Roaming\JetBrains\PyCharmCE2022.3\options\filetypes.xml file, and that a content Truncated file content will be created.

There may be a typo in that as I could not copy a single work form the message on my windows machine (Being able to copy and past a message would be helpful too!).

Also, my system is reindexing over and over and over and over. Every time I start the app. I reinstalled, deleted the .idea file, no difference.



Does the same happen in the latest version?

Please sign in to leave a comment.