Windows. When it is indexing gradle project it is deleting jar content from gradle caches

已回答

For a java 8, gradle project:

  • Linux: If it is imported in intellij the project is imported/build and indexed successfully.
  • Windows: it will delete classes from jars(or the jars will be empty) from the caches under <USER_HOME>/.gradle/caches during the indexing. Or maybe it is not downloading some jars at all
  • Terminal: Linux/Windows builds successfully. 

Did you had any issues like that before?

gradlew used with gradle 7.6 version, IntelliJ IDEA 2023.3.2

Deleting <USER_HOME>./gradle and invalidate cache wont help. Tested on multiple windows 10 machines. On any other Linux works ok. 

Turning off the antivirus didnt help.

1

Hello!

Thank you for reporting this!

Could you please let me know if Gradle/IDEA returns any errors while the Project is imported on Windows?

To further investigate this:

  1. Please download Process Monitor
  2. Point to Gradle User Home: Path - begins with - [Path to Gradle User Home] - Include. [Path to Gradle User Home] should be similar to C:\Users\JohnDoe\.gradle
  3. Make sure "Filter →  Drop Filtered Events" option is enabled.
  4. Open the Project in IDEA and wait for import / Gradle Sync to complete
  5. Upload the Process Monitor log (File → Save), IDEA's Logs (Help → Collect Logs and Diagnostic Data) along with the full output from the Build Tool Window.
0

请先登录再写评论。