Intellj creating duplicate java files ending in "~"

Answered

Intellj sometimes greats many duplicate java files, with “~” added at the end.

I would have guessed that these are temp backups, but neither  closing and opening intellj, or doing a mvn clean, gets rid of them.

They are not visible in intellj project view nor git changes view, but they cause git status to say they are untracked files.

Any ideas what causes this, and how to get rid of them without going into every sub directory and manually deleting each file (which will take a while).

I dont use any tools or applications out side of intellij which might have caused this.

Windows 10, Java 21, Intellij 2024.1.1 community edition.

 

 

0
12 comments

This is not IntelliJ IDEA. Some third-party software is creating such files. Quick google search shows some references to Acronis backup.

0

Possibly, but the strange thing is that ~ was only on the 10 or so java files I recently edited in intellij.  I don't have arconis or any other backup software.

The files keep randomly coming back.  They only appear on java files (not on application.properties for example), and only ones I edit with intellij.

Its only recently started happing, and I updated intellij version recently, so there is a correlation there.

Thinking about it, I also recently have had a lot of merge conflicts which I fixed in the intellij merge conflict editor - ill have to try to reproduce.

I do have notepad++ installed. I tested this by opening then editing a java file, but it doesn't generate any ~ files.

The only intellij plugins I have are codium and codeium 

 

0

Try disabling Settings | Appearance & Behavior | System Settings | Back up files before saving.

3

This issue is still driving me crazy.  Intellij is creating ~ files for every file I edit, then never deleting them.  I have to clear them up every day by hand. I have no other software running which might read or write these files (e.g. no other IDE running), its just windows, intellij, chrome and dbeaver.  

0

Since this doesn't happen for other IntelliJ IDEA users, there must be some software running on your system which does it (or it could be some third-party plug-in).

0

I also have the same issue on WebStorm

0

I have the same problem, could you list your plugins? Maybe some plugin AI plugin create that file for context

0

I have the same issue on GoLand. I'm using the Windsurf Plugin. Could this one be the cause for this? Most of my other plugins are either bundled or JetBrain's, or theme plugins.

 

0

Juan García Do you see improvements by disabling Windsurf plugin first? If the issue persists, disable all non-bundled plugins(Settings | Plugins | ⚙ | Disable all downloaded plugins) and see how it goes?

0

After a few days working with GoLand with Windsurf disabled, I haven't seen any more of these backup files.

 

1
Thank you for the efforts in narrowing down the issue Juan👍️
0

Please sign in to leave a comment.