Fixed NoSuchMethodException when running tests on Spigot (Closes #7553)#7558
Conversation
abandonedaccount6235
left a comment
There was a problem hiding this comment.
I don't think it makes sense to add spigot support when we are about to drop spigot support.
|
It's not a high effort change, for the duration of 2.10, and perhaps 2.11 if end of spigot support is delayed, I'd like this to be fixed, but even then if nothing is reverted and the end of support simply consists in not checking if the server is running paper when adding something from it then this would be very good, it would be helpful to me and anybody else looking to support spigot EVEN if skript doesn't do that itself and assuming that it loads with no issues. |
correct me if Im wrong, but tests are ONLY run on Paper. |
The goal of this PR is to handle the scenario in which an addon were to run tests on Spigot since Skript only runs them on Paper. |
In my opinion, Jakes reasons are valid. Even though Skript does plan on dropping support for Spigot, nothing has been said as what version of Skript will be doing so. If the team does plan on dropping support for 2.11 or any version after, regardless, 2.10 still supports Spigot. So we should be fixing any bugs that occur before parting ways. Meaning we need to fix the test environment (this PR) in order to find and fix any bugs/errors. |
|
With that said, the labels need to be changed. Removing |
Its not a bug tho. |
Requested from @sovdeeth Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
I think it's more of something nobody wanted to be bothered to do, spigot support has almost become an optional over the last few updates, that being said I think having spigot tests is ideal for a Spigot-supporting plugin, so if that were to be the plan it would be convenient to have them; some people don't love having many testing environments, I don't mind it at all, it's very helpful since it's fully automated (once you set it up) and makes tests all the more worthwhile since we go from running a few environments to a bunch of them if not ALL of them. TL;DR: if we consider Skript as a spigot plugin then this is a bug. |
|
this isn't a bug, period. That said, using paperlib to have broader support without, like, any downside seems like a fine enhancement. |
up for debate resolved
…ptLang#7553) (SkriptLang#7558) * Added spigot semi-equivalent of the "get chunk at async" method. * Removed listening code as 'getChunkAt' is called synchronously. * Removed unused imports. * Switched to PaperLib method that handles chunk loading. * Removed accidental boolean negation. * Added requested changes Requested from @sovdeeth Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> --------- Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
Description
Added chunk-load wait before running tests (when not in DEV_MODE) that doesn't require PaperMC to Skript.class.
Target Minecraft Versions: any
Requirements: Spigot
Related Issues: #7553