neoforged / NeoGradle

Gradle plugin for NeoForge development
GNU Lesser General Public License v2.1
37 stars 23 forks source link

IDE sometimes permanently loop in refresh till restart #44

Open Nightenom opened 8 months ago

Nightenom commented 8 months ago

Occasionally vscode enters into permanent refresh loop because of file watcher for build/neoForm/neoFormJoined<version>/unpacked/config/inject/mcp/client/Start.java Reloading the window has ~50 % chance to stop it, always happens after clean import, during dev some actions may start the loop too (probably something what triggers NG to do neoform setup?) Trace log of vscode java extension messages

marchermans commented 2 weeks ago

I can not reproduce this in the current version, can you check?

Anonymous2416 commented 2 weeks ago

same issue for me

https://github.com/neoforged/NeoGradle/assets/99367774/d1f070ab-69bc-4f7f-8a13-bc8cd0bb5a14

Nightenom commented 2 weeks ago

mitigation in .vscode/settings.json:

"files.watcherExclude": {
    "**/build/neoForm/**": true,
}

issue: everything under build/neoform/<version>/patches gets notified in cycle of neoFormPatch task, example log entry:

2024-06-26 12:58:11.609 [trace] [File Watcher (parcel)]  >> normalized [CHANGED] p:\data\github\BlockUI\build\neoForm\1.20.4-20231207.154220\patches\server\net\minecraft\world\level\block\BaseEntityBlock.java.patch