IntelliJ destroys class with XML
Answered
Hello, it's not the first time it has happened for me. And it looks like it happens when there's two projects opened at the same time.
And I also really don't know what action causes it. It just randomly happens.
So in second project my classes are converted into xml of other project. (Not all classes)
How do I solve this?
https://hasteb.in/ahusuwux.xml
An example into what my class was converted to
Please sign in to leave a comment.
Looks like it has something to do with git.
Also looks like it just replaces classes with ones from other project.
I've figured out, that it's the VCS of IntelliJ. When opened the file in another text editor it shows the real class, so I'm guessing it is a bug of IntelliJ?
I am afraid I cannot understand the issue.
May you describe it from the beginning? What projects do you have, what happens to changelists file, are there any related errors in idea.log, git log, or maybe build log?
Okay, deleting cache in IntelliJ folder solved it. But it's something developers of IntelliJ could look into
Basically, I'm not sure which actions caused it. I had two projects open in intelliJ. And at some point intellIJ decided to change some of the classes from other project into what seems to be a git workplace xml. But it only showed that inside IntelliJ, on other text editors it showed real classes. I fixed it by deleting cache.
Same issue as in https://stackoverflow.com/questions/54958519/java-codes-are-converted-to-xml-after-restarting-android-studio
Does it happen in IntelliJ IDEA? What is your IDE version?
May you share the logs folder compressed and specify the time the issue is reproduced?
My intelliJ is a latest one community version (2019.3.3)
I cannot tell you when it reproduced, because when I deleted cache, logs was there.