Cannot load settings from file grade.xml: content truncated

Answered

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. 

 

0
5 comments

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. 

0

Dear Konstantin Annikov

 

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

0

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

0

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.

Thanks

D

0
Does the same happen in the latest version?
0

Please sign in to leave a comment.