Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In IDEA, how to auto remove .attach_pidxxx file

After run Java test case (TestNG test, if it matters) in IDEA, a file named .attach_pid<xxx> (e.g .attach_pid16153) will be created, under project root.

They are still there even after test case finished.

And After a while, there will be a lot such files, and I have to remove them by hand.

The questions is:

  • Is there a config to remove them automatically after the unit test or other type of run/debug terminated?
like image 272
user218867 Avatar asked Feb 08 '19 18:02

user218867


1 Answers

This file appears because of the known Java bug.

The bug is already fixed for Java 12.

JetBrains developers have backported this fix into JetBrains Runtime and the fix is delivered in IntelliJ IDEA 2019.1 EAP version (to be released in the end of March 2019).

like image 147
CrazyCoder Avatar answered Oct 10 '22 08:10

CrazyCoder