In IDEA, how to auto remove .attach_pidxxx file

Eric Wang :

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?
CrazyCoder :

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).

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=94708&siteId=1