-
-
Notifications
You must be signed in to change notification settings - Fork 72
Allow developers to control Arguments' CommandSyntaxExceptions #370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
db13e38
Add option to add custom error handling when Argument parse fails
willkroboth dc89c3a
Merge pull request #366 from willkroboth/dev/dev
willkroboth 25b975d
Add Javadocs to new methods and classes
willkroboth e601e74
Add sender and input to ArgumentParseExceptionContext
willkroboth c07603a
Intercept errors during Brigadier's initial parse
willkroboth 66c3284
Attempt serializing custom ArgumentType
willkroboth 6aab75d
Fix ExceptionHandlingArgumentType serialization
willkroboth 17fa93f
Clean up code and add API methods
willkroboth 06aca10
Add InitialParseExceptionArgument to testing arguments
willkroboth 6190486
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth 417fccb
Implement InitialParseExceptionArgument for other applicable arguments
willkroboth bd5fbf8
Reduce code duplication by storing InitialParseExceptionHandlers in a…
willkroboth d591895
Implement NMS#registerCustomArgumentType
willkroboth c2de33a
Clean up code
willkroboth cfc1be4
Make CodeFactor happier (and me a little) by reordering methods in th…
willkroboth ad65892
Fix 1.16.2-3 & 1.16.4-5 ExceptionHandlingArgumentSerializer method re…
willkroboth fea28da
Fix 1.13-1.16 method reflection
willkroboth 84e0f39
Make GitHub Actions check NMS Common builds on all versions it is sup…
willkroboth 6fde891
Merge remote-tracking branch 'origin/dev/argument-exceptions' into de…
willkroboth 15f2b3a
Fix 1.17 registerCustomArgumentType
willkroboth 537cf5a
Fix 1.18 registerCustomArgumentType
willkroboth e5cc28b
Remove unused (and sometimes invalid) imports from NMS_Common
willkroboth b25b3cd
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth eab3466
Clean up after merge
willkroboth f5bef67
Add WrapperStringReader to InitialParseExceptionContext
willkroboth 5e1f02d
Add sender, input, and previousArguments to ArgumentParseExceptionCon…
willkroboth 597d609
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth c68c450
Clean up imports after merging
willkroboth f48dc47
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth ed01fbf
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth df773c9
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth 5a7f377
Fix registerCustomArgumentType in 1.19.3
willkroboth a62ddc3
Add example command for standard testing (Bukkit)
willkroboth 9860822
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth a35913f
Clean up after merge
willkroboth 1b6511a
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth d3d8c34
Fix parameterization of ArgumentParseExceptionHandler
willkroboth bc6b58f
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth ab3d4e0
Hotfix tab-complete for provided suggestions in 1.19.3
willkroboth 92c7625
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth 574b103
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth c8c527b
Fix ArgumentParseExceptionHandlers not getting processed
willkroboth d8e726b
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth 4fe1673
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth d9481cc
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth 703e14c
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth faf5c4e
Refreeze COMMAND_ARGUMENT_TYPE registry after adding custom argument …
willkroboth a187f86
Implement equals, hashCode, toString for WrapperStringReader
willkroboth 08e1592
Add @RequireField for 1.19 NMS
willkroboth 29d82d5
8000
Remove classes for 1.13 and 1.14
willkroboth 5ba3dbd
Fix 1.19 NMS @RequireField annotations
willkroboth 4073c1d
Make Sonarcloud a bit happier
willkroboth 4cae893
Add comments naming obfuscated method names
willkroboth 5b8339e
Add TODOs explaining why Field reflection is not yet checked at compi…
willkroboth 4086694
'fix' (?) javadoc format for added records
willkroboth 54b538d
Implement equals, hashCode, toString for WrapperCommandSyntaxException
willkroboth 245f969
Use VarHandles instead of static Method reflection
willkroboth 37d489b
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth 6b27ebf
Switch dev/argument-exceptions to use CommandArguments instead of Obj…
willkroboth f3af7db
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth 97438e0
Add simple InitialParseExceptionArgumentTest
willkroboth 80b828e
Only mock register ExceptionHandlingArgumentType if it is not already…
willkroboth 677ec3c
Fix MethodHandle reflection for 1_18_R1
willkroboth 3ba0782
Fix MethodHandle reflection for all versions
willkroboth 56ecf24
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth 13f94ea
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth e40d9bb
Refactor variable names in MethodHandles reflection
willkroboth b6cc9f7
Merge remote-tracking branch 'origin/dev/argument-exceptions' into de…
willkroboth c915f7e
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth f5d6c89
Revise reflection in 1_15
willkroboth 1b22e55
Add and use SafeVarHandle#getUnknownInstanceType
willkroboth 0e25e98
Update use of reflection in other ArgumentSerializers
willkroboth 4b42d10
Fix ArgumentSerializer reflection
willkroboth 868985f
Share code between ArgumentSerializers
willkroboth 0a195df
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth 9c27823
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth fde031f
Don't include Object in the platform load log
willkroboth a7570d0
Add simple test for ArgumentParseException
willkroboth deda323
You gotta register the test command to use it!
willkroboth 2e2c5dc
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth 08f5218
Update 1.19.4 NMS
willkroboth 5652dab
Fix frozen field access in 1.19 NMS when testing
willkroboth b13102c
Fix register method access in 1.19 NMS when testing
willkroboth a36f3e0
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth 977a2c8
Merge branch 'dev/dev' into dev/argument-exceptions
willkroboth e3d5679
Provide the parametrized type for SafeVarHandles in ArgumentSerializers
willkroboth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Refactor variable names in MethodHandles reflection
- Loading branch information
commit e40d9bbf6e9b62e877e6d8cc578373f7eb689a7d
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.