Closed purejosh closed 2 years ago
Can you share a log of when the issue occurred?
Yeah, let me try and find one. Sorry for the delays.
Here is a truncated log showing a failed reload (I commented out a part of a YML that was important), and the errors show the reason why. I fixed the comment, saved the YML, and reloaded again, and that's where we're stuck. It thinks it's still reloading.
The issue is that uncaught errors cannot allow a safe reload of the plugin, that's why it gets stuck. In the next update I'll catch malformed files and continue loading anyway, this should mitigate most stuck situations.
Terms
Discord tag (optional)
purejosh#2047
What happened?
If I mess up a config in a yml somewhere (which is pretty easy to do) and I use iareload or iazip, it tells me that there was an issue. So, I go and fix that issue. Now, after I've resolved the issues, I am unable to run iareload/iazip again, and the only option I can find is to reload the entire server.
This has been an issue for quite some time, so I apologize if this has either already been fixed and I can't find the answer, or if this is impossible and you've closed many githubs for that reason, but it would be very helpful if there was some type of master/core reload that actually reloaded the entire plugin from a deeper level than just reloading the configs. Some way for us to reset the issue where trying to iareload when there's a yml issue causes a total lockup of the plugin and requires a server restart.
I run a public server with this plugin, and while it adds a lot of features, it does come with the downside that I'm terrified to even issue a simple patch fix live, due to that a simple mistake can force the plugin to go unresponsive to iareload and require a restart. If there's any fixes or advice that you have for getting around the iareload lockup, I would appreciate it.
Steps to reproduce the issue
In a stable, normal environment, make a mistake in a yml file and save it. Run iareload, observe that it fails and the console will very nicely show you where. Fix the issue, save the file, and run iareload again. Observe that the reload fails, as itemsadder thinks the last reload hasn't finished.
Server version
This server is running Paper version git-Paper-111 (MC: 1.19.1) (Implementing API version 1.19.1-R0.1-SNAPSHOT) (Git: 02831e3) You are running the latest version Previous version: git-Paper-387 (MC: 1.18.2
ItemsAdder Version
3.2.3-R9
ProtocolLib Version
5.0.0-SNAPSHOT-b587
LoneLibs Version
1.0.20
LightAPI Version (optional)
No response
LibsDisguises Version (optional)
No response
FULL server log
No response
Error (optional)
No response
ItemsAdder config.yml
Problematic items yml configuration file (optional)
No response
Other files, you can drag and drop them here to upload. (optional)
No response
Screenshots/Videos (you can drag and drop files or paste links)
No response