NeoGradle icon indicating copy to clipboard operation
NeoGradle copied to clipboard

IDE sometimes permanently loop in refresh till restart

Open Nightenom opened this issue 2 years ago • 3 comments

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

Nightenom avatar Nov 11 '23 10:11 Nightenom

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

marchermans avatar Jun 24 '24 16:06 marchermans

same issue for me

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

Anonymous2416 avatar Jun 25 '24 20:06 Anonymous2416

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

Nightenom avatar Jun 26 '24 11:06 Nightenom

Cannot replicate after latest ng changes, probably solved in #232, feel free to reopen if someone is still affected

Nightenom avatar Aug 29 '24 17:08 Nightenom