1. Builds
  2. CommandHelper (master)
  3. Build #4030

CommandHelper Build #4030

This is not a stable download!

We recommend the use of released versions whenever possible.

View Stable Downloads
Date10 months ago
2ca7f5e0Fix several complex_try raw compile exceptions (#1254) Fix several raw compile exceptions caused by invalid try/catch MethodScript syntax. Note that the checks performed in this optimization method should eventually be split into postParseRewrite or the try keyword parsing and typechecking. Fixes #1253.pieter1234510 months ago
78be6f01Document ba_put and ba_get signedness Update documentation to include that `ba_put_X` and `ba_get_X` for bytes, shorts, integers and longs uses signed values. pieter12345a year ago
714a6a00Fix boilerplate failure pseudoknighta year ago
2afb49e9Add fallback to method not in older Spigot versions pseudoknighta year ago
60a08061Add potion_splash event (Closes #791) pseudoknighta year ago
cce9d74bAddress deprecation warnings in tests pseudoknighta year ago
af47c7d9Add missing minecart types to set_entity_spec() pseudoknighta year ago
bd2bfd0fFix missing newlines in register_command example pieter12345a year ago
a96d3afbFix sugared foreach() syntax parsing - Fix `foreach(... in ...)` and `foreach(... as ...)` syntax parsing. Bug was introduced in build 4024. - Make `foreach` use `__statements__` as in-between rewrite node instead of `sconcat`. No functional changes. pieter12345a year ago
69f6baa6Don't parse __autoconcat__ to sconcat in strict mode Parse `__autoconcat__()` to the new `__statements__()` instead of `sconcat()` in strict mode. `__statements__()` takes arguments of any type and returns `void` for typechecking, so compile errors will be generated in cases where `__autoconcat__()` used to insert `sconcat()`s, or in other words, where the user has either forgotten to put some `.` concat, or where the user has made a mistake. This change does not affect non-strict mode, as automatically inserting concats is a feature there. Alias syntax should also remain possible in strict mode, but only when the whole alias is nicely concatenated together by the user. Inserting multiple arguments/statements will cause the code block to be interpreted as a statements block and not as an alias redirect. pieter12345a year ago
e36e76dfUpdate ResourceManager.java Provide a more detailed description in res_create_resourceladycailina year ago
6a68260eMerge pull request #1250 from Lildirt/hanging_place Add hanging_place eventmichael smitha year ago
cbb47d72Add hanging_place event lildirta year ago
612736e5Merge pull request #1249 from Lildirt/attack_cooldown Added pattack_cooldown().michael smitha year ago
1b3af529Brace ternary and add CRELengthException to throwables. lildirta year ago
3942d278Added pattack_cooldown(). lildirta year ago
f5ecef53Bump junit from 4.12 to 4.13.1 (#1248) Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1. - [Release notes](https://github.com/junit-team/junit4/releases) - [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md) - [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>dependabot[bot]a year ago
70a3bc51fix: pom.xml to reduce vulnerabilities (#1243) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JAVA-ORGYAML-537645snyk bota year ago
41c54ddfAdd HIDE_DYE item meta flag pseudoknighta year ago
2c666b7dAdd block_explode event pseudoknighta year ago
b780a89bFix split() for strings ending with the split Allow `split()` (and non-regex `reg_split()`) to match the split on the last possible part of the string as well. Fixes `split('b', 'ab')` resulting in `{'ab'}`, rather than `{'a', ''}`. pieter12345a year ago
cdc6c62aMerge pull request #1240 from Murreey/day-functions Add get/set functions for world daymichael smitha year ago
2cac88e3Add get_world_day murray coghilla year ago
ed12160bAdd set_world_day murray coghilla year ago
5a471148Fix cmdline install tool unsupported OS check `OSUtils.GetOS()` cannot return null, so the previous check never triggered. pieter12345a year ago
ea2e3e27Fix entity_unleash reason in event docs pseudoknighta year ago
7b0aad6fAdd support for Minecraft 1.16.2 pseudoknighta year ago
55a5e0a6Fix NPE in LangServ while generating environment (#1237) Fix NPE in LangServ while generating the environment without having a profiles file in the MethodScript directory. This fix creates an empty ProfilesImpl, such that any usage of the Profiles object will simply be like if the profiles file were empty.pieter12345a year ago
60f238b7Handle exceeding max string size in string_multiply - Detect when exceeding max string size in `string_multiply` and throw a `RangeException` when that happens. - Optimize `string_multiply` implementation. Fixes #1234. pieter12345a year ago
4ef81cc4Fix smart strings being rewritten to non-strings Rewrite smart strings to either a `concat()` of their string and variable parts, the string itself if no variables are present, or a `string()` cast variable if it consists of a single variable. This ensures that smart strings will always have have the `string` type in user code. Fixes #1232. pieter12345a year ago
1dd871eeFix '@' escaping in smart strings Pass literal `\` as literal `\\` to `__smart_string__`, so that `__smart_string__` can disambiguate between `"\@"` and `"\\@"`, rather than getting the same input for both. As this function is an internal compiler function, and users that do use it would now have to pass double escaped `\` into the function to make it work properly, the function has also been renamed to `__smart_string__` to fit the other compiler functions. Fixes #1229. pieter12345a year ago
566f8c72Add entity_unleash event (#1227) malonnnna year ago
bf4419a9Move static final function names to function classes - Move static final function names to the static final `NAME` field in their corresponding function classes. - Add a test that validates that when a `NAME` field exists in a function class, it will return the same value `func.getName()` returns. pieter12345a year ago
bcf811d9Centralize function name references Replace all hard-coded string function names and `new funcClass().getName()` with a static final field in the `Function` class. This puts all 'static' function references in one place, allowing for shared function name caching and an easier way to find all references to a certain function. pieter12345a year ago
3512ac46Persist running `x_new_thread` threads over recompiles (#1224) Make threads remove themselves from the active threads map when they finish execution, rather than when the construct containing the thread ID string gets garbage collected.pietjea year ago
1747e2f5Merge pull request #1223 from Pieter12345/delay-keyword-compile-errors Allow keywords to be part of other syntaxpietjea year ago
980bd983Don't remove if keyword on process error Prevent the `if` keyword from removing itself from the AST when it fails to parse. This allows us to generate an error for it later, if it is not handled as part of some other syntax. pieter12345a year ago
1dcd0cb8Don't rewrite AST on try keyword process error Rewrite the `try` keyword processor to not make changes to the AST unless it can finish parsing without exceptions. pieter12345a year ago
f496a780Allow keywords to be part of other syntax Allow keywords to be part of other syntax than their keyword processing code is written for. An example is code `array(static: 1)`, which generates a compile error when attempting to process the keyword `static`, while it is actually part of valid `array()` syntax. Fixes #1220. pieter12345a year ago
f44e6f58Create AbstractCompileException This exception should be used as parent exception for compile exceptions, and can be useful to handle any compile exception in a single catch clause. pieter12345a year ago
0b00fc75Accept null arg in psend_block_change() to send existing block pseudoknighta year ago
7d6c37a7Fix cast exception for fireworks in projectile events pseudoknighta year ago
9c887c8dAdd 'unexpected keyword/label' compile errors Add "unexpected keyword" and "unexpected label" compile errors to static analysis. The caught cases are considered syntax errors and already caused a more generic 'fallback' compile error in static analysis. pieter12345a year ago
68e56fe9Add class name conventions ladycailina year ago
5b26f52aresource -> Resource *Probably* no one was using this? The impact should be very low at this point at least, but the longer we wait, the more impact it will have, so I'm going ahead and making this hard cut now. ladycailina year ago
e83eed22Fix NPE in static analysis on re-including empty files Fix a NullPointerException that occurs in static analysis when a file is included after an empty file has been dynamically included. Fixes #1221. pieter12345a year ago
1789f79aProc arguments handling optimization Set passed proc arguments first and then fill in the default values for the remaining arguments, rather than setting all default values and overwriting them with the passed proc arguments. pieter12345a year ago
18d26d2eFix proc @arguments order Fix procedure `@arguments` order in the case that the procedure contains more arguments than the procedure call passes to it. This is only noticable when default argument values are given, since otherwise the order wouldn't matter. Fixes #1197. pieter12345a year ago
b752e1bbFix post parse AST rewriting for single-function scripts Fixes post parse AST rewrites not using the rewritten AST for scripts with a single root function that is rewritten. Fixes #1219. pieter12345a year ago
7df115a3More feature for multithreading (#1214) * More feature for multithreading * Fix docs * Fix x_thread_is_alive thrown * Separation x_is_interrupted([id], [clearFlag]) * Interrupted status -> interrupt status * Fix docs core.functions.Threading * Fix docs x_clear_interrupt and x_is_interruptedudartsev anatoliya year ago
f4b78d7fFix bugs in localization ui ladycailina year ago
1a5ff308Add CRIMSON_FUNGUS and WARPED_FUNGUS tree types pseudoknighta year ago
c8c2794dAdd 'anchor_spawn' boolean to player_spawn event pseudoknighta year ago
52b1b1c8Add compass item meta pseudoknighta year ago
eba81c00Add SWAP_OFFHAND click type in inventory_click event pseudoknighta year ago
4b7613f9Add Strider's 'saddled'; Item Frame's 'fixed' and 'visible' to entity_spec() pseudoknighta year ago
6ecc8df6Fix legacy material builder on pre-1.16 pseudoknighta year ago
093c41e0Manage baby state for piglin, zoglin, and hoglin. Fixes wrapper class for zombified piglin. pseudoknighta year ago
deab85b9Update entity_explode to reflect changes in the underlying event. A null entity is no longer possible. pseudoknighta year ago
0fe660dbAdd support for Minecraft 1.16 pseudoknighta year ago
bc3f00a0Add MCEffect.INSTANT_POTION_BREAK. Remove unused id value from enum. pseudoknighta year ago
625ea38eMake Script's 'right' field a local variable pseudoknighta year ago
784191d9Fix color() docs not listing color names pseudoknighta year ago
41eb7fbeStatic analysis optimization Increase static analysis performance by creating less unnecessary collections. pieter12345a year ago
d835316eUpdate portal events to reflect 1.15.1. Add creationallowed event data. Fix searchradius and creationradius support in 1.13.2. pseudoknighta year ago
bbd3adacAdd support for SQL Server in query and the PN (#1212) ladycailina year ago
e6fe6c2aFix header issue in telemetry.ini Use UTC time in the telemetry event ladycailina year ago
889d8652Add metric for static analysis ladycailina year ago
11c49181Update tree_grow event documentation (#1211) Document missing keys.pietjea year ago
7afbf9d8Lazily get keyword name from annotation. The name was only used for exception messages, yet this method can be called multiple times per line, which was noticeable in profiling. This improves compile time around 6%. pseudoknighta year ago
d37f1a70Fix duping when getting held item meta on block_place. The item's tags were being modified on read, causing this and probably other lesser issues. This affected shulker boxes, bee nests, beehives, and shields. pseudoknighta year ago
675fab07Re-use environment for compilation (#1209) * Re-use environment for compilation This is an optimization which uses the same environment to compile multiple msa scripts, rather than creating a new environment every time. Environment creation reads and parses a few files, so this is an expensive operation. * Create StaticRuntimeEnv for static final functionality - Create StaticRuntimeEnv and move functionality from GlobalEnv to this class if it is static and final accross compile units. - Replace reflection in RandomTests test with Mockito, as this allows for the accessed field to be made final like it should. * Use a fresh environment per script Clone the environment for every (msa) script. Since StaticRuntimeEnv returns itself when cloned, its contents act like a cache. * Move test code out of production code Use Mockito to mock unused environment objects instead. * Use cheaper newline replacement in read() There's no need to replace "\n" with "\n".pietjea year ago
ca0531dcCheck for associative array usage in spawn_particle Fixes #1210 ladycailina year ago
726dd6a8Add new methods in BukkitMCArmorStand ladycailina year ago
cc39b8f0Speculative fix for case sensitivity in InjectedPlayers ladycailina year ago
067118a0Fix NPEs in CClassType (#1208) * Fix NPEs in CClassType The CClassType invalidType is cached in a thread-unsafe way. This causes problems when LangServ is performing an operation on the same CClassType, since one thread can start using the Mixed[1] created by the other thread before it is populated with data, getting null when reading its first element. * Switch LangServ back to cmdline mode LangServ is currently running in EMBEDDED mode, which is a refactoring mistake. This commit changes it back to CMDLINE mode.pietjea year ago
d8def74aStatic Analysis patch (#1207) * [SA] Fix exception on invalid typeless variable assign - Fix exception during scope graph generation for assign(var, val) with an invalid variable type. - For default or AUTO declarations, still require the value to be instanceof Mixed to prevent things such as void assigns. * [SA] Fix NPEs in requireIVariable() and requireClassType() Fix NPE in StaticAnalysis.requireIVariable() and StaticAnalysis.requireClassType() that occurs when passing in invalid syntax. Eventually, the parse has to catch these errors and halt compilation such that the AST in further steps only contains valid terms. For now, catch possible NPEs in the later stage and print invalid term classes instead such that it doesn't crash.pietjea year ago
1b754e6aUse cache instead of FunctionList lookups (#1206) Cache the required environments for each function in CFunction and use that for lookups where possible. Also don't do FunctionList lookups where the function is already cached. This makes the flow as follows: 1. postParseRewrite() caches all existing functions. 2. Other compiler steps use the cached functions, or get null when they don't exist. 3. checkFunctionsExist() does a lookup in the FunctionList if the function is not cached, and generates the compile exception if it doesn't exist.pietjea year ago
d7897501Merge branch 'master' of github.com:EngineHub/CommandHelper pseudoknighta year ago
9f294f4eOptimize binds to get Event from BoundEvent when possible. pseudoknighta year ago
ccb1a64eImproved registering/unregistering commands. - unregister_command() will now remove all aliases and prefixed variants of the command, so it is symmetrical with register_command(). - unregister_command() now supports unregistering other plugin's commands. - register_command() will now remove aliases that are no longer in the array, and add aliases that are added to the array. - Improved documentation and examples. pseudoknighta year ago
3661ebd7Merge pull request #1205 from Pieter12345/master Fix exception target for single include() exceptionsmichael smitha year ago
47a242a8Fix exception target for single include() exceptions pieter12345a year ago
5c503dbfStatic analysis (#1198) * Add basic static type checking framework This is still a WIP. A few points to work on: - A solution with less code in Function classes is preferred. - To get the type of IVariables (which are non-existent in the parse tree?), some sort of scoping simulation should be added. - Functions should be able to optimize based on the argument types that they receive. This allows for example sconcat() to not toString() its parameters when passed at least one statement that returns void. * Fix broken javadoc * Move function name validation to its own method Move function name validation out of link() and link() before optimization. * Fix or() typechecking implementation Support 0 to n arguments, rather than 2. * Add static analysis framework Functions that have scoping behavior or functions that make declarations / references to variables/procs/etc should override the linkScope() method. Variable references are already checked at this point, but declarations are not. Comes with a boolean to do or don't do static analysis. This is necessary to run optimization tests that are semantically incorrect. * Implement variable declarations - Creates declarations in the scope graph for variables passed to assign(). - Throws a compile error on variable declarations in places where that variable is already defined. - Converts typeless assigns into declarations of type AUTO when variables are not yet declared, but are being assigned to. * Implement ControlFlow scopes * Implement closure scopes * Implement bind scope * Implement proc scope Proc declarations are being made (without signature), but references are not checked yet. This commit is mainly about the proc declaration scope behavior. * Disable static analysis for 'invalid' tests These tests exist to test other things. Static analysis isn't necessary here. * Disable static analysis for composite functions Composite functions come with an inj...pietjea year ago
3ef53379Clean log tests (#1202) * Clean log tests * Clean tests with dyn()udartsev anatoliya year ago
eeb3b33aThrow NPE on clear_task(null). Fixes #1201 ladycailina year ago
cff540beUpdate public suffix list ladycailina year ago
9e938ad7Fix getting offline players by name in offline mode pseudoknighta year ago
e680b563Merge pull request #1199 from Anatoliy057/patch-1 Delete duplicates in entity_specmichael smitha year ago
822aa4e1 Delete duplicates in entity_specudartsev anatoliya year ago
268cfd4eCorrect exception message for integer() (Fixes #1193) pseudoknight2 years ago
010a2544Update make_effect(). This adds data support for material and facing names, and improves documentation. pseudoknight2 years ago
53916597Fix reflect_type, add copy button to code on site. Update jQuery. Exclude LLVMFunctions from trying to be site-deployed. Add documentation on options for bind. Rename getSuperclasses/InterfacesForType to getTypeSuperclasses/Interfaces. ladycailin2 years ago
e2ab8089Fix new assignment not getting the defined target. pseudoknight2 years ago
309df09dGet CommandSender for executeas() and scriptas(). This allows for injected players that are currently offline, which is already a possibility for closures. Also now checks if executeas() has the minimum number of arguments and updates the docs. (Fixes 1194) pseudoknight2 years ago
f111a7a8Fix extraneous bare string warnings in tests pseudoknight2 years ago
2c6dbab2pass current MCCommandSender on null for executeas (#1195) * pass current MCCommandSender on null for executeas * CH syntax requirements * use current env not the closuresluke fairchild2 years ago
0a50d664Implement Booleanish in remaining classes ladycailin2 years ago
b8a07c42Add reflect_type, class_type, and Typing documentation. As part of writing examples for the documentation, I came across the error in #1192, which allowed me to reliably reproduce it, so this fixes #1192 also. ladycailin2 years ago
5813d34eFix negative array index lookup overflow messages (Fixes #1188) pseudoknight2 years ago
52316a72Fix incorrect ivar redefined error message in loops. pseudoknight2 years ago
64bc0956Fix documentation in reflect_pull ladycailin2 years ago
1e51e2b1Add include_dir(). ladycailin2 years ago
62468ea6Checkstyle ladycailin2 years ago
324626c2Add .msfileoption support. Add file options to reflect_pull. ladycailin2 years ago
c70037a5Add more tests for define_object ladycailin2 years ago
095dc258Checkstyle ladycailin2 years ago
c54b7011Procudure -> Procedure ladycailin2 years ago
dd3c6627Handle void correctly in the procedure type hinting Fixes #1191 ladycailin2 years ago
eeb36e7eUpdate issues link from youtrack to github ladycailin2 years ago
debbde05Fix iclosure retaining unused cloned variable list. Also adds an iclosure test. pseudoknight2 years ago
bd424bfcFix error for remove_recipe() on Spigot versions earlier than 1.15.2 pseudoknight2 years ago
71e7ca23Add player prefilter to entity_damage_player event (#1189) pseudoknight2 years ago
8ff888ddAdd cmdline mode fuzzer ladycailin2 years ago
afd97f94Create .cache folder first if it doesn't exist ladycailin2 years ago
9fc14f1bUpdate readmeladycailin2 years ago
55ebb57aUpdate readmeladycailin2 years ago
64ef2de8Add remove_recipe(). (#1187) * Add remove_recipe(). * doc clarification Co-authored-by: Lildirt <lildirt@lildirt.com>lildirt2 years ago
8799c64cAdd pflying(), pblocking(), psprinting() and is_entity_sleeping(). These are more readable than using pinfo(). pseudoknight2 years ago
62849f8eImprove set_blockdata docs pseudoknight2 years ago
1ffa65d0Add entity immunity functions pseudoknight2 years ago
ef8ea789Add "model" item meta key for matching functions pseudoknight2 years ago
87bf7727Don't rely on appspot for the site to load. Need to replace this longterm with apps.methodscript.com, but this is a short term fix, and a better approach regardless of which particular site we rely on. ladycailin2 years ago
08d13dc6Nag nag nag. ladycailin2 years ago
3c799335Add support for telemetry This branch adds the ability to send telemetry data to Azure Application Insights. This proxies through apps.methodscript.com however, so in addition to the basic telemetry framework, this also includes the swagger framework, which both the server and the client have autogenerated code for. See the LadyCailin/apps.methodscript.com repo for the server side of this. Telemetry is diabled by default, but nags the user to enable it where relevant.ladycailin2 years ago
596a64b5Fix cmdline file access security checks (#1183) - Bypass Security.CheckSecurity(File) checks in cmdline mode. - Move existing in-cmdline-mode checks before Security checks, since Security checks can throw an IOEx that shouldn't have to occur in cmdline mode.pietje2 years ago
3a7df5ecAdd missing CommandHelperEnvironments (#1184) Add CommandHelperEnvironment `@api` annotation arguments for Minecraft dependent functions, such that these functions can no longer be used in cmdline mode (and crash due to NoClassFoundDefErrors).pietje2 years ago
c1fa0522CheckStyle (#1182) Fix CheckStyle violations.pietje2 years ago
7b89531bAdd x_thread_join ladycailin2 years ago
dfa23310Parallelize startup and deduplicate work at startup. This shaves off about half a second on my system. ladycailin2 years ago
1e4034bfAdd player prefilter to pressure_plate_activated event. pseudoknight2 years ago
e052ce22Improve target for unexpected end curly braces. Fixes EmptyStackException when encountering more than one unexpected end curly brace. pseudoknight2 years ago
d118a918fix: Fix bug #1180 misspelled class name (#1181) The DuplicateObjectDefintionException.java class is misspelled, it should be DuplicateObjectDefinitionException.java This commit fixes the class name. Resolves: #1180alejandro casado quijada2 years ago
7833b862Finish writing my sente ladycailin2 years ago
33c054cdAdd cycle tool, to test the startup and shutdown cycle ladycailin2 years ago
1be2ece4Add / at the end ladycailin2 years ago
87341338Add reflect_pull('dir') ladycailin2 years ago
b733ab3bCheckstyle ladycailin2 years ago
2064220aAdd initial llvm framework. This currently mostly just includes the LLVM installer, but also includes a first pass at actually compiling a simple mscript program. The biggest issue right now is actually just figuring out the llvm ir necessary, so I've short circuited this right now, making it currently unusable, but neither the wrapper IR nor the exit() function itself are properly implemented yet anyways. ladycailin2 years ago
dd8b5258Fix puuid() returning invalid UUID for invalid name. Optimize get_offline_players(). pseudoknight2 years ago
c86736dfFix bug where errors in events in cmdline would fail to render the error properly ladycailin2 years ago
5026fe9aFix hidden function issue on the site Fixes #1175 ladycailin2 years ago
90f7bef0Fix class load warnings for extension dependencies pseudoknight2 years ago
7592c6e8Set alias functions to CommandHelperEnvironment pseudoknight2 years ago
6be24775Ensure server type is set for fast startup modes pseudoknight2 years ago
ef32fe0dImprove clarity of player event warning. Saying it's "missing" is misleading, and the cause is unlikely to be an NPC anymore. pseudoknight2 years ago
15614fdeImprove API docs for clear_commands(), spawn_entity(), and player_interact pseudoknight2 years ago
de11f40cFix spelling pseudoknight2 years ago
b1511e00Add phantom size to entity_spec pseudoknight2 years ago
c06d22feFinish work on search bar on the site ladycailin2 years ago
a02a5bdbfix: pom.xml to reduce vulnerabilities (#1177) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JAVA-COMMONSCODEC-561518snyk bot2 years ago
c21eb045checkstyle ladycailin2 years ago
d7b8e99eSite search is 80% complete now ladycailin2 years ago
b063add0Update switch() documentation (#1176) pietje2 years ago
74d14857Override deepClone in CByteArray to allow cloning byte_arrays ladycailin2 years ago
1101071dUpdate VersionFrontPage Update link to bug tracker.ladycailin2 years ago
1cc870d4Warn on use of variable named pass/password Also, allow PATCH http verb, though it looks like java still prohibits that at a deeper level, so need to do some playing dirty to finish making that work. ladycailin2 years ago
fe99506fUpdate Sponsorsladycailin2 years ago
ce840aadMerge pull request #553 from PseudoKnight/master Ignore fake player entities for eventsmichael smith2 years ago
75f9234dIgnore fake player entities for events pseudoknight2 years ago
533b5ab9Overload getResources in the DynamicClassLoader Fix bug in is_proc ladycailin2 years ago
f3aa3954Update Sponsorsladycailin2 years ago
7f765b61Update sponsors page ladycailin2 years ago
8a212c3fUpdate pom.xml to use enginehub.org with https pseudoknight2 years ago
eb697191Fix import pseudoknight2 years ago
998b5cf0Update deprecation logging at compile time to CompilerWarning. Improves visibility in VSCode. pseudoknight2 years ago
2bf991b2Update sponsors ladycailin2 years ago
18dc2828Fix interpreter mode stopping on compile error (#550) - Fix in-game interpreter mode from disabling when the executed code results in a compile error. - Prevent players from being set to interpreter mode through the CommandHelperInterpreterListener.execute() method.pietje2 years ago
cc89f729Bump checkstyle from 8.28 to 8.29 (#549) Bumps [checkstyle](https://github.com/checkstyle/checkstyle) from 8.28 to 8.29. - [Release notes](https://github.com/checkstyle/checkstyle/releases) - [Commits](https://github.com/checkstyle/checkstyle/compare/checkstyle-8.28...checkstyle-8.29) Signed-off-by: dependabot[bot] <support@github.com>dependabot[bot]2 years ago
0fa2489dMerge pull request #548 from Pieter12345/master Add get/set_skull_owner functionsmichael smith2 years ago
701f4a79Add get/set_skull_owner functions These functions can be used to get/set/clear the skull owner on player heads. pieter123452 years ago
e68358bfBukkitGetCorrectBlockState optimization Divide into a Container or not-Container check to do roughly half the checks on average. pieter123452 years ago
d7a653d2Fix BukkitMCBlock returning wrong BlockState pieter123452 years ago
5fdf61edFix cases where a branching implementation error is incorrectly detected pseudoknight2 years ago
e4a5d39fFix quantity remaining when attempting to add empty items to a full inventory pseudoknight2 years ago
c2a2cc2fEnable all event functions in cmdline pseudoknight2 years ago
874130eaAdd to the sponsors page ladycailin2 years ago
bfe75c0bRemove log4j dependency. ladycailin2 years ago
cd0ef419Update CheckStyle (#547) * Fix obvious JavaDoc syntax errors No functional changes. * Update CheckStyle Update CheckStyle to be compatible with the latest version. This prevents users from getting errors from IDE CheckStyle plugins that use the latest CheckStyle version. pietje2 years ago
e73a7649Quote argument in bash launcher ladycailin2 years ago
31084c29Add new gamerules for 1.15.2 pseudoknight2 years ago
298ed5c0Merge pull request #546 from Pieter12345/master Fix NPE in entity_spec for Endermanmichael smith2 years ago
a6b0edbbFix NPE in entity_spec for Enderman Fix calling entity_spec on an Enderman that is not carrying a block resulting in a NullPointerException. pieter123452 years ago
475ae052Fix TC build pseudoknight2 years ago
50102b59Use https for pluginRepositories pseudoknight2 years ago
fcaac78dRemove remnants of old documentation deployment pseudoknight2 years ago
07d13cdfUse https for repositories pseudoknight2 years ago
5be884b1Fix misleading documentation pseudoknight2 years ago
a74a09c4Set nested array parent when creating array using labels. Fixes old string representation for parent array being returned even after nested arrays are modified. pseudoknight2 years ago
78d3173eUpdate sponsors page ladycailin2 years ago
8f853814Update Advanced_Guide Define UTF-8 as the standard source file encoding.ladycailin2 years ago
97f543e7Update Crypto.java Sha-1 has now been totally broken, so make a note of this in the documentation.ladycailin2 years ago
7d5c44e1Update PlayerManagement.java (#545) Pfacing() documentation was incorrect. It indicated yaw 0 is dead west and 90 is north, but all the testing I'm doing is showing 0 as south and 90 west, etc. Same for pfacing(F). It says 0-West, 1-South, 2-East, 3-North. My testing shows F0=South, F1=West, F2=North and F3=East.jjkrause2 years ago
ea07e0feAdd lockable block functions pseudoknight2 years ago
f1f9cd93Merge pull request #544 from Pieter12345/master Add affectedBlocks to piston_retract eventmichael smith2 years ago
3e6eccc5Add affectedBlocks to piston_retract event Add affectedBlocks key to the piston_retract event. This is used when slime or honey blocks are pulled, pulling adjacent blocks with them. pieter123452 years ago
c88780cdAdd separate light level functions for sky and block sources pseudoknight2 years ago
330f1cffAdd BEEHIVE SpawnReason for 1.15.1 pseudoknight2 years ago
e51603d8Fix bug in StringUtils.HumanReadableByteCount. There's an interesting story behind this, see https://programming.guide/worlds-most-copied-so-snippet.html for the details if you're curious. Also, I have proper attribution for the code snippet now as well. ladycailin2 years ago
7f001718Add support for Minecraft 1.15 pseudoknight2 years ago
b6aa64b8Fix bare string warnings in sample scripts pseudoknight2 years ago
06a064dcSupport virtual inventories for get_inventory_name() pseudoknight2 years ago
85f41eeeAdd vex charging to entity_spec() pseudoknight2 years ago
706a3c64Update docs for player_interact ladycailin2 years ago
804aad2aCheckstyle ladycailin2 years ago
4e96d88dUpdate public-suffix.dat ladycailin2 years ago
aa617823Begin work on a built-in webserver ladycailin2 years ago
e614b254Add support for particles that require additional data in Area Effect Clouds. Make particle data creation more forgiving. pseudoknight2 years ago
01e37d42Add timeout to GCUtil. It really is just best effort to call System.gc, so we can't make this work in a generic way, without a JNI integration perhaps. ladycailin2 years ago
7cd37d00Reverse debug flag in GCUtil ladycailin2 years ago
6f79faf2Debug build for GCUtil ladycailin2 years ago
a1a86eb7Begin work on CGI directions in IIS ladycailin2 years ago
444167e7Ignore keywords again when checking bare strings pseudoknight2 years ago
e9735c84Check only native types in Construct for isInstanceOf(). (#543) This is optimal in cases we can expect it to not be a UserObject.michael smith2 years ago
da19ddd0Fix core error when trying to set an ocelot type in 1.14 in deprecated spawn_mob() pseudoknight2 years ago
98c85f4eAdd a fallback for getting a player entity when its missing from a world's entity list. pseudoknight2 years ago
50ff6758Document deprecated MC functions better pseudoknight2 years ago
1b71b624Add CGIBin example ladycailin2 years ago
a8235180Add several entity attribute functions. Also fixes item attribute meta when modifier name is null. pseudoknight2 years ago
c444b1d5Add BlockUntilGC method. This wraps System.gc(), but provides a way to actually ensure that a garbage collection has actually run. This is no still guarantee that a given object has been garbage collected, but is as good as it can get from a java code perspective. There are a few places where System.gc() has been changed to use this new method instead. ladycailin2 years ago
7aee86ecExclude dependency conflict. The conflict causes NoSuchMethodError for Spigot methods in BukkitMCItemMeta. Relocation alone can't resolve this. Initially included for lsp4j, com.google.common.collect doesn't appear to be used in the functionality LangServ is using at the moment, and so it should be safe to exclude it for now. This also reduces the jar size. pseudoknight2 years ago
337b9808Support attribute modifiers in item arrays pseudoknight2 years ago
6f7e278bAdd Nilleke Dark theme ladycailin2 years ago
2478f798Add dark mode to the website. Actually, this is more like "dark theme" because the mechanism is a generic theming mechanism, which should be pretty straightforward to add other themes to down the road. Simply add a new theme css file in resources/css/themes, and add a link to it in the place specified in frame.html (ensuring that the data- attribute is there). The rest should figure itself out on its own. ladycailin2 years ago
23bb6264Scrub it in both places... ladycailin2 years ago
e9d2a9f1Scrub password from error message ladycailin2 years ago
43d03996Update docs for extraParameters in MySQL connection ladycailin2 years ago
d5ff95bbAdd proper separator for extra parameters ladycailin2 years ago
93d736d7Add support for arbitrary parameters in mysql persistence ladycailin2 years ago
fe09cbfaBump mysql connector from 8.0.16->8.0.18 ladycailin2 years ago
7c73cae7Add get_cmd_completions() pseudoknight2 years ago
758ad8c0Add documentation for running as a CGI script. This is not advertised, since this is mostly just proof of concept, but for completeness sake, this is the documentation for how to set it up, if that becomes useful to link to people in the future. ladycailin2 years ago
b72cfc54Add better grouping in prefs files ladycailin2 years ago
e9c11a99Fix incorrect warnings of missing players in events. pseudoknight2 years ago
ecfcde82Fix numArgs for enchant_item() and change arrow damage to doubles pseudoknight2 years ago
4a6cc6feFix exception matching in old try() function format pseudoknight2 years ago
e9160333Update Architecture page ladycailin2 years ago
c7f4aab2Expand edit-prefs command a bit ladycailin2 years ago
ff15ef91Add edit-prefs command, which opens the prefs directory in a text editor By default, vim/VSCode is used depending on platform, but this can be overridden with environment variables, or by command line parameter. Also fixed bug where the java version in the windows wrapper was wrong. ladycailin2 years ago
a77ca4b9Use exe wrapper on Windows There was a bug with the old batch->powershell->java wrapper when it came to quoted arguments. To fix this became a rabbit hole, and it ended up being easier to just revist the C# wrapper. This removes the ClickOnce installation, so this is just a simple wrapper executable. Still need to revisit the installation mechanisms later to re-add double click support in windows, but for the time being this is good enough as a replacement in cmdline. ladycailin2 years ago
7350575eImprove bare string detection and limit to one warning per file pseudoknight2 years ago
6c596d94Add villager experience/level and panda genes to entity_spec pseudoknight2 years ago
9118c597Support categories with spaces in them. For some reason, Java's Preferences class parses spaces as if they were =, so categories with spaces in them don't work right. If the key simply starts with left bracket, then we skip the whole value. ladycailin2 years ago
b8cd9e15Add help-topic command, which reads Learning Trail topics This functionality is also available to extensions, through the getHelpTopics() function in the Extension interface. ladycailin2 years ago
ae406b32Support grouping in preference files Add a few groups to the preferences.ini file also, to take advantage of this new feature. Groups are sorted alphabetically, and within groups, items are sorted alphabetically, though within the group, another sort order may be given to override this. This allows for more precise sorting of values, and for larger preference files, makes them much easier for users to read. Values without a group will be placed at the top of the file. ladycailin2 years ago
d252b26cUse simple name for exceptions on API page pseudoknight2 years ago
d46cb4bbLower-case material enums for blockdata pseudoknight2 years ago
60e3cf22Add array_get_rand() pseudoknight2 years ago
1e08b46cFix startup on Java 9+ again pseudoknight2 years ago
0563305cUpdate Statistics.javaladycailin2 years ago
bc763968!!@val == @val ladycailin2 years ago
4ecd6740Add ImmutableKeyword ladycailin2 years ago
e620ee2bAdd ImmutableKeyword ladycailin2 years ago
56adaca4Add documentation for immutable classes/fields ladycailin2 years ago
1f076095Checkstyle ladycailin2 years ago
5043191dAlways do ExtensionManager init, since we need to for cmdline tools ladycailin2 years ago
8c94a049Preliminarily support untitled files in LangServ Also modify_event does not need CHEnv. ladycailin2 years ago
f2fe6cd7Add SemVer2, an implementation of Version that supports Semantic Versioning This is currently only used in MSVersion, and is not intended to necessarily be a replacement for SimpleVersion, as it is more strict, and only useful when a platform can dictate the version number format. This will come in useful later, however. ladycailin2 years ago
325b6dfdCheckstyle ladycailin2 years ago
9fe1287fAdd support for method line numbers (ish) in ClassDiscovery The line number the method declaration is on isn't actually available in class files, so it's not possible to get that directly, but we can get a relatively close proxy, the line number of the first executable statement. This is good enough for most purposes, which is to direct users attention to roughly where the code is defined. This will hopefully be good enough for most purposes, because it's the best we can do without actually parsing java source code. ladycailin2 years ago
9a00f477Make array_index_exists work with negative numbers in normal arrays ladycailin2 years ago
6d5d7e73Fix bounds exception when a brace is used inside brackets (CMDHELPER-3165) pseudoknight2 years ago
a90f47b7Merge pull request #542 from PseudoKnight/master Fix issues w/ multiple contiguous symbols in assignment (CMDHELPER-3174)michael smith2 years ago
2d949910Fix issues w/ multiple contiguous symbols in assignment (CMDHELPER-3174) pseudoknight2 years ago
4c847390Fix serializing closures with labels in them ladycailin2 years ago
6f6f5b75Disabling logging of compiler warnings in interpreter mode pseudoknight2 years ago
9fd1bcbcFix core error when compile error affects branching pseudoknight2 years ago
3d7d61dfFix NPE when foreach() given invalid argument format pseudoknight2 years ago
69497b37parseXML first, so the server content-type doesn't matter ladycailin2 years ago
a0527fbfUse the current protocol ladycailin2 years ago
1fe82b46Continue work on localization Still several tasks to be done before this can be crossed off, but the matching is pretty good now on the front page. Remaining tasks detailed in src/main/java/com/ls/tools/docgen/l10n/TODO.md. Also fixed a bunch of examples that were throwing compiler warnings due to bare strings. ladycailin2 years ago
aace269aFix unacceptable typos pseudoknight2 years ago
1b3a412eCorrectly create associative arrays in a few places pseudoknight2 years ago
340b111aAdd new compiler warnings for deprecated functions pseudoknight2 years ago
991b4861Add PATROL and RAID entity spawn reasons pseudoknight2 years ago
ba52fc84Merge pull request #541 from PseudoKnight/master Support executing closures in variables using function syntax.michael smith2 years ago
80b0fd55Add more closure tests pseudoknight2 years ago
7e489298Support executing closures in variables using function syntax. This is an early implementation that makes `@closure(@arg1, @arg2)` equivalent to `execute(@arg1, @arg2, @closure)`. Also fixes LangServ incorrectly checking procedures as functions. pseudoknight2 years ago
62e6867eImprove handling of improperly formatted docs(). This prevents the vscode extension and json-api mode from entirely breaking when given an extension with bad docs, and gives a more helpful message in vscode. pseudoknight2 years ago
4d123ef4Checkstyle ladycailin2 years ago
257909e8Add switch_ic, an ignore-case version of switch ladycailin2 years ago
621c79bbAdd support for varying priorities of warnings Different warnings are classified differently in the LangServ, including the low category, which prevents the issues from showing up in problem lists. ladycailin2 years ago
9991bdbdUse event name target instead of bind function when event does not exist pseudoknight2 years ago
291befb1Prevent extension startup in LangServ pseudoknight2 years ago
49256148Add better logging for an Error thrown in optimize ladycailin2 years ago
e7c7abe2Don't loge on exceptions in document link ladycailin2 years ago
2034cb78Stop compiling on change, and do compile on save only. A delay needs to be implemented, otherwise for larger source files, this causes useability issues, since it would attempt to be compiled once per character typed. Creating a delay is necessary, so it waits until no changes have been made for a delay, and only then compiling once. In the meantime, it will just have to be compile on save. ladycailin2 years ago
032a0dacSupport multiple paths in base-dir ladycailin2 years ago
e5e1ec1aAdd compiler warning for functional usage of operators This commit adds a compiler warning for when functional notation is used for a function that supports an operator syntax. This only occurs in strict mode, and is still suppressable. ladycailin2 years ago
1a24743bFix dor() when no values are truthy pseudoknight2 years ago
2cbffbd3Add an optional player argument to sudo() pseudoknight2 years ago
7eaaf558Checkstyle ladycailin2 years ago
f1617cf4Use proper document models on change Previously, we just always read from the file system to get the document truth, but that caused issues, and also required users to save to get the compilation hints. Now, the document is only read from disk if the client isn't managing it, otherwise, it reads it from the internal cache which is managed by the client for open files. ladycailin2 years ago
cb1c84b5Update tellraw functionality. This fixes ptellraw() for non-ops, adds tellraw() for running from console, adds default selectors, and updates documentation and examples to explain the differences. pseudoknight2 years ago
2763fcd8Remove and ignore test file ladycailin2 years ago
219480d1Remove compile time caching of includes. This is too aggressive of a change for now. However, I am keeping the warning if the file doesn't exist (which is now suppressable). ladycailin2 years ago
1446d8a3Compile included files at compile time. Also add DocumentLink support in the Language Server. This is implemented in a generic way, so extensions can take advantage of this, and if I missed any functions, it should be trivial to add them to the system later as well. ladycailin2 years ago
27c15796Fix build and typos pseudoknight2 years ago
f19e1948Properly support msa files in LangServ ladycailin2 years ago
305ccd99Keyword errors don't stop compilation Also added object related keywords, which currently all give compile errors. This could break code, but it was going to break sooner or later anyways. Also fixed issues with file options in most of the native classes. ladycailin2 years ago
8be301d1LangServ now scans the full workspace on the low priority queue. This allows for compile errors to be shown in all files, not just the ones that are open. Fix concurrency issue in NativeTypeList. ladycailin2 years ago
0b7ee4b0Add checking of bare strings. In strict mode, this is a compile error, in non-strict mode, it's a suppressable warning.Add checking of bare strings. ladycailin2 years ago
964e9433Don't startup extensions in json-api or verify cmdline modes. This increases the number of current extensions that are usable in these modes. pseudoknight2 years ago
d51c0e52Add support for stdio based language clients ladycailin2 years ago
6771f58eEnable compiler warnings and fix but in json-api Compiler warnings were just printed to the log, but couldn't be returned in a usuable format by the language server. Now, in addition to logging, the warnings are added to the compiler environment, and can be retrieved later. Unfortunately, this meant that the lexer needed access to the Environment, so a new parameter needed to be introduced, and that caused lots of code changes. Additionally, older extensions that lacked the MSExtension annotation would cause issues when loading, because that caused the json-api command to fail. This fixes it so that if the identifier would be missing (thus causing a NPE), we generate an identifier based on the jar name. The VSCode Extension only loaded the language server after the json-api call completed successfully, so this fixes that issue as well, if the user has older extensions. ladycailin2 years ago
15ecf79aMove target to string in regex functions Also offset column by -2. This is probably done in the wrong place in the code, but this is a quick fix that can quickly be reverted once the compiler itself is fixed. ladycailin2 years ago
78f4cd03Implement a basic language server. This includes support for code completion, as well as error checking! There are a few issues still, for instance, event and object completion is not working, I'm not entirely sure why not, but that can be solved later. ladycailin2 years ago
28b18d38Add player statistic functions pseudoknight2 years ago
642834dbContinue work on the language server. The basic RequestMessage framework is complete, and we succesfully read in most of the initialize method parameters. It's quite a large method though, and converting the typescript to java is tedious, so there is still more work to be done before the request itself is finished, but the framework is complete and works well, so it's just a matter of finishing the conversion. After that, I need to work on the framework to handle responses, and that's the next big task. ladycailin2 years ago
3d85856aAdd documentation about how to use extensions ladycailin2 years ago
bddf2dedUse cached Function in CFunction (#540) michael smith2 years ago
e257473bSupport void in booleanish (falsey value) ladycailin2 years ago
514f4c87Add support for enums in JSONUtil ladycailin2 years ago
7b19bd85Disable ElementSignature for now There is an unaccounted for signature type, if a method returns a non static inner class, in an outer class which contains generics, this breaks processing, and causes a StackOverflowError. Therefore, since this functionality isn't directly needed, I'm just disabling it for now. Before it can be re-enabled, this bug will have to be fixed. The binary name that it fails on is something like: "()Lobj/Name<TT;>.InnerClass" ladycailin2 years ago
770e1f17Fix player() in events where the player is offline pseudoknight2 years ago
8b888a57Begin the basic structure of the LanguageServer I have also created a basic json->java object->json mapper utility. It has very basic support, but it is in some ways an improvement above gson, and allows for generic support in a bit of an easier way. Due to type erasure, there are still serious problems with really supporting this unfortunately, but this is probably the best that can be done. One remaining task is to implement enums support, before the work on implemenation of the language server protocol can begin in earnest. ladycailin2 years ago
c20276f9Improve operation time when getting a list of types (#539) TreeSet is much faster since it doesn't have to hash the CClassType. It might even be faster than ArrayList in this case.michael smith2 years ago
522b5b49checkstyle ladycailin2 years ago
36034740Fix 2 bugs in cmdline utilities ladycailin2 years ago
5bbc3930Checkstyle ladycailin2 years ago
deb202adDon't use concurrent hash map v2.0 ladycailin2 years ago
ae6d1340Don't use concurrent hash map ladycailin2 years ago
595f2b5cCache getAnnotation result ladycailin2 years ago
3059810eUse cached CClassType earlier in isInstanceOf() (#538) This avoids getting the FullyQualifiedClassName from the annotation again.michael smith2 years ago
5b78b4e2Git push origin masterMerge branch 'Pieter12345-trigger_support2' ladycailin2 years ago
7742ab0dUpdate to newer code styles ladycailin2 years ago
2afb174cMerge branch 'trigger_support2' of https://github.com/Pieter12345/CommandHelper into Pieter12345-trigger_support2 ladycailin2 years ago
b33c2f06Merge branch 'master' into trigger_support2ladycailin2 years ago
84f109c3Trigger Travis CI build The last build timed out. pieter123453 years ago
5b5c7753Merge branch 'master' into trigger_support2pietje3 years ago
70d872c4Hide trigger function Since the trigger() function is completely broken at this time, nothing depends on it. Its documentation should not be on the API for the time being. Hiding this function will also allow us to change its behaviour and implement it properly without breaking peoples scripts. pieter123453 years ago
4522cbe0Fix severe NPE on trigger() + add broadcast_message trigger support - Using the EventBuilder class always resulted in an exception since its static code block threw a NullPointerException. This was caused by attempting to find a BindableEvent implementation for an (in)direct child through only its interfaces, instead of its interfaces and interfaces of (in)direct superclasses. - Add trigger() support for the broadcast_event event. pieter123453 years ago
c3f25a5cRemove CommandHelperEnvironment from the standalone environment ladycailin2 years ago
9bc6382cGive the Main class some TLC All cmdline tools are in the new @tool format, and the docgen for the tool should be back to being complete, and should also be more accurate as well. The verify tool has a few more options added now, particularly it was too difficult to load extra extensions previously, but with the new format, this was easy to do, and is now done. ladycailin2 years ago
5004af66Add a check for environment in the compiler This considerable change now adds a distinction between embedded and core functions. Embedded functions have a dependency on CommandHelperEnvironment, and core functions are available everywhere. Now the compiler makes a distinction between the two, allowing for compile time errors for functions that aren't available in that environment. However, there is a need in some cases to compile against other environments, so the tooling and compiler infrastructure has been modified to support the notion of a target environment, not the current runtime environment, hence the size of this change. Additionally, some tooling, such as the verify tool takes advantage of this distinction, to allow users to specify what environments they actually want to compile against. ladycailin2 years ago
f5efbed6Update the Metrics class for bStats pseudoknight2 years ago
9f03cd22Add missing item meta into documentation pseudoknight2 years ago
3228e449Rewrite item meta documentation pseudoknight2 years ago
89f1f509Add update operation and fork operation Also created a framework to easily wrap github api functionality. The update operation is accessed from the File menu, and essentially is a git pull on the local repo. The fork operation forks the master repo on github, clones it locally, then loads it in the UI. Next up is creating a mechanism to make commits and then make a PR back to the master repo. ladycailin2 years ago
d741a9d9Add github auth to L10N app. Mostly this was just about expanding support in the OAuth functions to be more robust. It should correctly support more OAuth implementations now. ladycailin2 years ago
e69603ddCheckstyle ladycailin2 years ago
961cc3e5Add default url for translations db ladycailin2 years ago
2c25df01Continue tweaking segment generation, implement filters ladycailin2 years ago
def3892dCheckstyle ladycailin2 years ago
c7d8e9eaThe basic features of the l10n ui work, segments are replaced The basic features of the UI are all completed now, including the machine translation integration with azure. There are still a few minor features that need implementing, particularly the segment search feature, the segment filters, and the help file needs to be brought up to speed. The basic replacement logic for the site is implemented as well, and should start working if pointed to a translation DB in the settings, however, the replacement is still not working in several edge cases. Additionally, the site deployment pipeline will need to be updated with the translation DB link once it exists. The logic to select the language needs to be implemented as well. Futher, there are still lots and lots of segments that shouldn't be in the DB, and so I need to add some more filters to get rid of several hundred more. By and large however, the segmentation logic is complete, and anyways bogus segments are a lower priority. The main blocker at this point is the re-application logic on the site. There are a few other things on the website that bypass the segmentation logic currently, particularly menu items and other strings that are defined in frame.html. I think the best approach here is to just manually create entries for them. The UI can probably be modified to add a hidden UI to add new segments, such that it hampers people enough to not casually add segments, but still allow the rare cases where that makes sense to easily and consistently occur, and take full advantage of the UI's validity checking. ladycailin2 years ago
c61d9310Update recipes to support 1.14 recipe types, input choices, recipe book 'group', cooking 'experience', and 'cookingtime'. This also finally removes legacy support for '0:0' format. pseudoknight2 years ago
9c6095cbAdd and improve command tabcompleter examples pseudoknight2 years ago
21c1d57eFix 1.13.2 compatibility pseudoknight2 years ago
0eac533eLoad extension classes synchronously. CMDHELPER-3179 pseudoknight2 years ago
c0ccab3bLog error message when the incorrect jar is used pseudoknight2 years ago
e4e791f0Add get|set_blockdata() functions that support blockdata arrays pseudoknight2 years ago
5c43a363Add item matching examples for inventory functions pseudoknight2 years ago
4f98c63aFix error during compile when proc is not given ivars after classtypes pseudoknight2 years ago
f0a6eaeeUpdate SourceVersion for annotation processors pseudoknight2 years ago
c61bbac2Checkstyle pseudoknight2 years ago
dde3854bLaunch l10n-ui in new process ladycailin2 years ago
3b14bed5Checkstyle ladycailin2 years ago
85df0cdcL10N Interface is useful now! Changing settings and saving works now, which is enough to move on to the next step, which is making a local deployment of the site use the translations. There are still a lot of steps to go back and finish up, but I want to get this validated first, so I'm moving on. ladycailin2 years ago
89017ed2Merge pull request #536 from EntryPointKR/master Add all_materials() functionmichael smith2 years ago
47190413Using isLegacy() instead of startsWith() entrypointkr2 years ago
2b28b20fAdd all_materials() function entrypointkr2 years ago
231c27d8L10N - Summary segment display works now ladycailin2 years ago
b624e3faFix concurrency issue in async_read ladycailin2 years ago
f818c132Fix wrong import ladycailin2 years ago
7010d012Continue work on localization UI ladycailin2 years ago
44351ec8First pass at creating UI for localization Most of the periphrial UI components are in place, but a few minor things still need doing. ladycailin2 years ago
baae127eContinue tuning segments ladycailin2 years ago
8fdc1d47Fix NPE when the item is null (#535) junhyeong lim2 years ago
a530bb0eContinue tuning segmentation logic ladycailin2 years ago
3852734eNearly finished with segmentation. Still need to do a comprehensive review, but by and large it appears to be correct now. ladycailin2 years ago
cc45597dGeneration of the memory files is nearly complete. Still remaining to do is to finish the segmentation. After that, the remaining total tasks are to write a localization interface for localizers to use, and of course make the site use the translations. Finally, we need to go through all the summary file translations, and decide if a translation is eligible for machine translation or not. Strings that have no values that need to be kept in english can be marked as such, and all locales will accept the machine translation for that string. Then, a tool to actually do the machine translation for the eligible values needs to be written. ladycailin2 years ago
a8d201beFix composite function stack trace ladycailin2 years ago
047831b1Fix unknown target in CompositeFunction (#534) * Fix unknown target in CompositeFunction * Not can be cached * Change to catching exception for setTarget * Only set if target file is unknown junhyeong lim2 years ago
2da3ea62Merge pull request #533 from EntryPointKR/master Fix api usage of offers in item_pre_enchantmichael smith2 years ago
304395a3Fix api usage of offers in item_pre_enchant entrypointkr2 years ago
ff0407f0Fix example in get_values ladycailin2 years ago
eb6f95ccAdd profiling of compilation of individual files ladycailin2 years ago
458a3500Begin work on site translation framework. This is still not done, and the generated memories are not currently useable. However, this is a good enough of a stopping place for now. Still to do is to parse tables, which will solve most of the remaining problems on the translation memory side. Still to do is write out the individual pages memories, as well as of course set the site itself up to start using the translations, but this is a good start on the process. ladycailin2 years ago
2c1e900aAdd ptellraw, which is a simple wrapper around /tellraw ladycailin2 years ago
467bd445Fix listing dynamic enums in documentation pseudoknight2 years ago
8268c0e5Add fireworks "strength" and "effects" to entity_spec() pseudoknight2 years ago
0c1d0b2cFix TC build status badge pseudoknight2 years ago
8f6841faUpdate build status badge pseudoknight2 years ago
3b5cb360Add resource_pack_status event pseudoknight2 years ago
9866ea7eAdd html description to api function pages Fix line length in SiteDeploy, and collapse lambdas. ladycailin2 years ago
847174baMerge pull request #532 from jb-aero/trade Recognize Wandering Traders as Merchantsmichael smith2 years ago
c2f6c414Recognize Wandering Traders as Merchants jb-aero2 years ago
6426a8a4Add autoReconnect=true to mysql profile ladycailin2 years ago
21ecde57Fix more outdated links in documentation pseudoknight2 years ago
ff36a0c7Fix some event documentation pseudoknight2 years ago
9b6461a0Fix numArgs for set_mob_effect() too pseudoknight2 years ago
ea3a36f0Fix numArgs to allow set_peffect icon parameter usage. (#531) bardi harborow2 years ago
78bd06fdDeploy jar to root as well ladycailin2 years ago
3fd99549Totally remove githook ladycailin2 years ago
43fca260Remove githook ladycailin2 years ago
c37e83a6Add "result" to player_bed_event event pseudoknight2 years ago
d3136aaeAdd Statistics class Also fixed a bug with SiteDeploy where a bad example prevented all the functions from generating. ladycailin2 years ago
903f256dFix bug in http_request and parse_date ladycailin2 years ago
e2058a10Add map_implode ladycailin2 years ago
88a283dfFix build issues in other platforms ladycailin2 years ago
e491b771Add pre-push commit hook to build first ladycailin2 years ago
3796bd70Add complex example to parse_args ladycailin2 years ago
72962e0bFix iclosure() execution polluting the stacktrace pseudoknight2 years ago
8a62aeb0Fix outdated links and Minecraft item ids in docs pseudoknight2 years ago
7b7e3dc9Allow ~console for scriptas() and executeas() pseudoknight2 years ago
691d1d42Fixed issue where ArgumentParser failed to validate long args ladycailin2 years ago
beb2cca4Change default of USE_COLORS to always be true Not sure why it was dependent on OS before, but it works perfectly fine in modern versions, so we'll default to "useful". ladycailin2 years ago
380aa4fdFix capitalization on documentation replacements pseudoknight2 years ago
091e7893Update Execution_Queueladycailin2 years ago
fba650bbFix sprintf() when given a dynamic array of arguments pseudoknight2 years ago
7aafe064Fix infinite loop in array_rand() when number arg exceeds array size pseudoknight2 years ago
72019b9eMerge branch 'master' of github.com:EngineHub/CommandHelper ladycailin2 years ago
a6489999Word wrap pre blocks ladycailin2 years ago
a4f4888cAdd Crossbow meta to item arrays pseudoknight2 years ago
3609fed4Add EXPLOSION SpawnReason and disableRaids GameRule for 1.14.3 pseudoknight2 years ago
8803dd93Update VersionFrontPage recommenededladycailin2 years ago
6d4ed81fUpdate VersionFrontPage Update info for Windows installation.ladycailin2 years ago
be70ba8fCheckstyle ladycailin2 years ago
4757e6f5Now the jar uploads itself with site-deploy Meta. ladycailin2 years ago
2dbd7073Fix bug that prevented some pages from being generated ladycailin2 years ago
e9e7d41fFix bug that prevented many pages from uploading ladycailin2 years ago
b61a184eProvide directions for testing site deploy locally Also have the FrontPage automatically redirect to VersionFrontPage, instead of requiring selection of the version. Add a link to the version directory in the VersionFrontPage. ladycailin2 years ago
f5bc5d67Merge pull request #530 from PseudoKnight/master Fix void handling for proc return types and assignmentmichael smith2 years ago
ebe6fb12Ignore returned value's type when procedure's returnType is auto pseudoknight2 years ago
38d94b78Fix void handling for proc return types and assignment pseudoknight2 years ago
039763a1Fix operator order documentation and add operator associativity (#529) * Fix Array Subindices operator order + Missing || - Array Subincides operator order should be between Unary and Postfix (to be consistent with the compiler's current behavior). - Add missing || symbol for OR. It could depends on the Markdown parser whether this will work. * Remove empty list entry This fixes an error in alternate colorizing the list rows. * Add associativity to operator order docs pietje2 years ago
e8a4cefaAdd support for overriding the id_rsa location ladycailin2 years ago
2940abeaAdd override-post-script to site-deploy ladycailin2 years ago
e62742cfUpdate azure-pipelines.ymlladycailin2 years ago
f3ca081dUpdate azure-pipelines.ymlladycailin2 years ago
9382b583Update azure-pipelines.ymlladycailin2 years ago
ca6d2f1bUpdate azure-pipelines.ymlladycailin2 years ago
e835c36dUpdate azure-pipelines.ymlladycailin2 years ago
2a6b3965Update azure-pipelines.ymlladycailin2 years ago
ca6b3019Update azure-pipelines.ymlladycailin2 years ago
b0c07dfaUpdate azure-pipelines.ymlladycailin2 years ago
a2ca5f56Update azure-pipelines.ymlladycailin2 years ago
b2fc818aUpdate azure-pipelines.ymlladycailin2 years ago
a2aab12eUpdate README.mdladycailin2 years ago
203eb286ALL_UNNAMED -> ALL-UNNAMED ladycailin2 years ago
e06c4679Add cmdline-args util, for future compatibility. ladycailin2 years ago
28715f4bCheckstyle fix ladycailin2 years ago
729341f8Add cmdline support for Windows. This temporarily removes GUI based support for .ms files, since that was unreliable. It will be re-added at a later date. This adds support for a mscript command in cmd.exe, as well as a PowerShell module, Invoke-MethodScript. The command syntax for these are slightly different, for the cmdline tools, you must use the -Tool switch, rather than the -- switch, but otherwise, it is identical to the unix based system. ladycailin2 years ago
2066f5c5Add "model" key to item meta to manipualte vanilla's CustomModelData tag for resource packs. pseudoknight2 years ago
c01443beMove null check before type check. pseudoknight2 years ago
16b5ac50Fix duplicate branding when MSLog prints messages to screen pseudoknight2 years ago
d492668aLog a warning about using Java version above 8 and fix related initial loading errors. pseudoknight2 years ago
56b405c3Disallow void assignments explicitely, instead of stacktracing ladycailin2 years ago
2ba2eeadImprove environment cloning on procedure calls. This moves cloning into execute(), avoids the overhead of cloning the IVariableList, and some other minor improvements. This also removes a duplicate proc test. pseudoknight2 years ago
627bacc7Fix CVoid check order in IVariable constructor, and create a new constructor for when the value's type does not need to be checked. This improves performance, particularly with procedure calls, by not performing isInstanceOf() unecessarily, which is slower than it once was. pseudoknight2 years ago
8732754eFix convertor intializing before class discovery pseudoknight2 years ago
a2d26f92Remove unused imports pseudoknight2 years ago
a61f13c5Comment out broken Mixed argument check for now. This code doesn't appear to have worked for over seven years and is currently just slowing down script evaluation time, particularly when isInstanceOf() was added in this workhorse section of the code. It might not even be needed, or should possibly be done at compile time only. In any case, we haven't depended on it for several years. pseudoknight2 years ago
168e2667Fix array_remove() returning a Java null when an associative array index doesn't exist pseudoknight2 years ago
2a183b54Move dynamically registered listeners back to regular listeners for now. pseudoknight2 years ago
8f68ededDo code maintenance on CommandHelper and AliasCore. A lot of this code was ancient and had built up cruft over the years. So, this cleans up a number of unused or redundant bits of code (especially in AliasCore.alias(), which is heavily rewritten to be more readable and maintainable), moves logging to the plugin logger where appropriate (avoids issues like double tagging in Spigot), and improves line lengths. pseudoknight2 years ago
cf219831Use the plugin logger when possible pseudoknight2 years ago
abfdf9dcUse eval when we don't use the return value pseudoknight2 years ago
7f9d5ad4Add temporary fix to "Using undefined variable" runtime error message during compile pseudoknight2 years ago
c022369fAdd missing SHEARED spawn reason pseudoknight2 years ago
d16b2fd2Add execute_array ladycailin2 years ago
9a16aba2Fix player event documentation formatting pseudoknight2 years ago
e2a8697bFix some block_break issues pseudoknight2 years ago
ebfef602Fix refactor mistake "CHLog" -> "MSLog" (#527) pietje2 years ago
fde15a9aFix and update more out-dated documentation pseudoknight2 years ago
860b809eBuild against Spigot 1.14.2 pseudoknight2 years ago
e65233b9Fix ClassCastException when setting potion meta for an arrow in 1.14 pseudoknight2 years ago
6cde22d5Fix bug in iclosure() Fix bug in iclosure() returning the wrong type of closure given an empty closureladycailin2 years ago
c66c7267Update assign(NotAnIvar, ...) error message (#525) pietje2 years ago
1a11de25Loosen restrictions on spawnable entity types with spawn_entity() and fix exception for an invalid hanging spawn location. pseudoknight3 years ago
553b7555Add SPECTRAL_ARROW to entity_spec and fix arrow/trident handling on 1.14. Spigot's Arrow class was basically renamed to AbstractArrow, which Arrow, Trident, and SpectralArrow extend. Also, TippedArrow was renamed to Arrow. This makes it tricky to support both 1.13 and 1.14 here, so I've just implemented all the AbstractArrow methods in each entity abstraction class, and no longer extend MCArrow to avoid cast exceptions. pseudoknight3 years ago
45d2d45dFix getting Lectern inventory pseudoknight3 years ago
97deebd7Address deprecated BroadcastMessageEvent constructor in 1.14 pseudoknight3 years ago
8b6a629eFix site deployment on Windows pseudoknight3 years ago
34faf08cFix heap_dump() where only hprof file suffix is allowed pseudoknight3 years ago
2dd1e8c0Add arrow "damage" to entity_spec pseudoknight3 years ago
2f3ff7cfUpdate Datahandling docs (#524) - Fix + extend proc() docs (proc name is not optional). - Fix closure docs (they take variables, not variable names). - Use `params` for proc and closure parameters. This is what they actually are and this is consistent with bind(), which calls them custom_params.pietje3 years ago
f5c7327eFix docs for nameof ladycailin3 years ago
7bc6e2b3Replace deprecated entity max health methods pseudoknight3 years ago
c02f6ef4Add set_keep_spawn_loaded() function for worlds pseudoknight3 years ago
d0d4a9d9Update regen_chunk's deprecation and operational status pseudoknight3 years ago
73537941Unwrap InvalidProfileException so that it can be caught further up the stack (CMDHELPER-3175) pseudoknight3 years ago
9a2d06a4Fix broken links and add missing Prefilters page in documentation pseudoknight3 years ago
7cbdf86fMerge pull request #523 from EngineHub/1.14 1.14 Supportmichael smith3 years ago
dccb4302Fix a few entity management issues. - Fix OCELOT and MUSHROOM_COW entity_spec in 1.13.2. - Add DROWNED to entity_spec, which was already in the docs. - Clarify the removal of LINGERING_POTION in docs. pseudoknight3 years ago
4852ddc0Move control flow functions to ControlFlow class (#521) Control flow functions were divided over BasicLogic, DataHandling and Echoes. This commit creates one class with all control flow (branching) functions. - Move control flow functions to ControlFlow. - Move corresponding test cases to ControlFlowTest. - Fix 120 character line limit in moved code.pietje3 years ago
394f88a0fix: pom.xml to reduce vulnerabilities (#522) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JAVA-MYSQL-174574snyk bot3 years ago
19bf62b8Fix foreachelse documentation (#520) The optional 'key' argument was missing.pietje3 years ago
dbcb5d47Add new banner pattern: GLOBE pseudoknight3 years ago
de3d87a4Add foxes and mushroom cows to entity_spec() pseudoknight3 years ago
58020789Fix enabling plugin on 1.13.2 servers pseudoknight3 years ago
911deb10Add support for Minecraft 1.14 The following breaking changes exist for all servers: - Virtual inventories can no longer be larger than 54 in size. - You can no longer create virtual beacons. The following breaking changes exist for 1.14 servers only: - Villager professions have completely changed. - The "creationradius" and "searchradius" in entity_portal_travel and player_portal_travel have been removed. - Ocelots can no longer be tamed or sit. - The following materials are removed but will be converted in legacy item arrays or when using set_block(): CACTUS_GREEN, DANDELION_YELLOW, ROSE_RED, SIGN, WALL_SIGN. - TIPPED_ARROW and LINGERING_POTION entity types no longer exist and will be converted to ARROW and SPLASH_POTION respectively. In addition, shoot_projectile() has been rewritten to be more consistent and support almost all entities. pseudoknight3 years ago
2cb51828Checkstyle ladycailin3 years ago
40be0834Add nameof() ladycailin3 years ago
04746507Fix error reporting bug ladycailin3 years ago
3b7110d5Checkstyle ladycailin3 years ago
25a19a4adefine_object now accepts superclasses and interfaces ladycailin3 years ago
5ef3f89eRemove whitespace from logo ladycailin3 years ago
2b31771c`@var =` now throws a proper compiler error ladycailin3 years ago
793c0773Merge branch 'master' of github.com:EngineHub/CommandHelper ladycailin3 years ago
a05dfbe6Add test for closure(), and fix bug related to that ladycailin3 years ago
f7f46eb5Add tracking info to an Error, so we can see what's causing it ladycailin3 years ago
c298e458instanceof -> isInstanceOf, add unit test for define_object ladycailin3 years ago
32ddbf8fContinue work on native code, normalize indentation ladycailin3 years ago
bec22722Checkstyle ladycailin3 years ago
2a849b28Create UnqualifiedClassName Elements that are not yet fully defined, but can't be defined yet can now use UnqualifiedClassName. This can't be used during normal use, but can be used in the middle of compilation. This solves the bootstrapping problem that is faced when a class definition extends/implements a class that hasn't been defined yet, and so thus cannot be fully qualified. Once the classes have all been initially defined, we can go back through the list of ObjectDefinitions and call qualifyClasses, which will fully qualify the previously unqualified class names, and throw an appropriate exception if any of them are unknown. Also, rename Objects to ObjectManagement, to match the theme. ladycailin3 years ago
62eb4e30Adjust compiler to pass commas through for ObjectDefinitions. Begin work on ObjectDefinitionKeyword to rewrite classic class definitions into the functional declaration. Implements keyword is nearly supported, but only in the happiest path, more test cases are needed, and certainly there are some currently unsupported cases. The tests are Ignored for now, since they still fail. ladycailin3 years ago
9dfbabf5Support windows newlines in modules file ladycailin3 years ago
e304652eUse a more efficient mechansim for scanning for Functions/Events Also, use a simpler (but no more efficient) method for loading jarInfo.ser ladycailin3 years ago
c43380a6Seriously improve startup time from cmdline ladycailin3 years ago
21a7103eWhen loading classes from ClassReferenceMirror, use the default CL Don't use the loader that loaded the CRM class, it doesn't know about dynamically added extensions. ladycailin3 years ago
455979b0Update README.mdladycailin3 years ago
5d227a1fAccidentally a line ladycailin3 years ago
9303034fUpdate README.mdladycailin3 years ago
c8235b4eProvide a stopgap measure for isInstanceof CFunction ladycailin3 years ago
d2063678Provide a stopgap measure for isInstanceof CFunction ladycailin3 years ago
b89f8b4aCache CompilerEnvironment in AliasCore, and use it in alias() Additional changes have been made in the core classes, after some further thinking on the situation. ladycailin3 years ago
e2887b41Update README.mdladycailin3 years ago
f30b06cbUpdate README.mdladycailin3 years ago
3ee1bdf1Use isInstanceOf everywhere. (#518) * Use isInstanceOf everywhere. This changes the code everwhere to use .isInstanceof instead of instanceof, since this is needed for user objects to work. However, the code is *incredibly* slow, so much so that RandomTests takes 60 seconds on my computer. I added some caches, but that didn't really work well enough either. So the next thought is to add this to the jarInfo perhaps, but even still, once user classes are added,that will increase startup time even more, so I think this has to be solved in a more general way. I think the next step is to very closely examine the code path of isInstanceOf, and see what steps are there today, and figure up if any can be removed, replaced with more efficient mechanisms, or at least further cached. This will serve as the basis of the continued work on objects, but until this is fixed, it utterly kills the runtime performance, and simply cannot be merged in to master. * Add some caches to speed things up in the course of operation * Add minor optimization to CClassType If both compared classes are native, and one extends the other, we can reliably say it is an instanceof, so just use the native java instanceof mechanism. This only helps a tiny bit, but it does help, so this will stay, even though this is not the correct solution. * Probable fix for slowness. This commit caches the native class along with the FQCN, which can be used to seriously speed up the lookup elsewhere, particularly when using instanceof. The only exception to this is DynamicEnums, but there are so few of those that it doesn't cause enough of a performance hit. This speeds up RandomTests by an order of magnitude, but there were other performance increases that should have helped some as well (though not an order of magnitude.) The end result is that this should actually be a bit faster than the original code anyways. * Add better logging when the NoClassDefError is thrown ladycailin3 years ago
9b1fc862Update README.mdladycailin3 years ago
327949d1Expand the native class library, and add more detail to the design docs ladycailin3 years ago
33ba80bbFix core error when setting a single trade to a merchant pseudoknight3 years ago
ab5eba9fIgnore this deprecation pseudoknight3 years ago
d46d14a4Add better logging when getting a broken BlockState from item meta pseudoknight3 years ago
775d757cFix format errors in event documentation pseudoknight3 years ago
b1ad0396Fix optimizer-test error when comp_read was used Also clarify documentation in a few places. ladycailin3 years ago
4f688776Checkstyle ladycailin3 years ago
93875304Improve trace, remove uselessly verbose debug startup logs ladycailin3 years ago
0b710903Add array_push_all, x_find, string_contains_ic. Also fixed a bug in parse_args, and rewrote string_contains as a CompositeFunction. ladycailin3 years ago
3594c5c4Don't use profiles in the standalone environment if they don't exist ladycailin3 years ago
2d41ef20Revert changes in ArgumentValidation. This proved to have devastating consequences to the performance of the system, and for the time being, reverting this is the best course of action. Something downstream of isInstanceOf is taking far too long, and for a method that would be called extremely frequently, this needs to be heavily optimized before it can be widely used. ladycailin3 years ago
f1cd232aDon't enumerate types without typeof, just check for typeof. ladycailin3 years ago
d08de403Include a compiler environment in AliasCore ladycailin3 years ago
a1427057Continue working on Objects ladycailin3 years ago
0515a362CHLog->MSLog Also make the categories/modules loaded dynamically, instead of depending entirely on the enum. This now allows categories to be defined elsewhere in code, including in extensions. Continue work on Objects as well. ladycailin3 years ago
756e3c3bUpdate NewObjects Add roadmap for inner classes.ladycailin3 years ago
89254c24Continue working on the functional approach to object creation. define_object and new_object are new functions, which will serve as the foundation of the object management system. They will not be used directly, the compiler will support specific syntax sugar for these methods, but the methods themselves are separated from the compiler. Currently, defining the class works, (it successfully puts an empty class into the ObjectDefinitionTable) though most of the rest of the system works with the NativeTypeList, rather than the ObjectDefinitionTabble, which is a problem that must be corrected before most things will recognize user defined classes. new_object does not work yet, but progress has been made at least. Additionally, FileOptions has added a copyright and license field, as well as an UltraStrict compiler option. This will be used in the future to make a super pedantic mode, and will be used in all native classes to ensure perfect compliance with all standards. It is not necessarily recommended for use in user code, but none-the-less will be available and advertised. ladycailin3 years ago
103cb548Use super not @super ladycailin3 years ago
8fb54fafObject table (#517) I am going ahead and merging this in to master, as it will be too difficult to manage two different branches for that long. So instead, I am going to do a slow rollout, while making some features available sooner than others, though until the features are all ready, they should not be used, and are subject to complete change. "The features" refers to anything at all related to objects. * Begin work on creating the ObjectTable object chain. This will eventually be the underlying mechanism which holds the defintion of all objects. The first step is to create the structure, the second step is to be able to fill it in with native classes. There are several other steps after this to make it useable, but these are the steps necessary to make it complete. After it is complete, the next step will probably be to just allow native types to provide properties, but this will require quite a bit of work, especially when it comes to ensuring that all the necessary info is available through annotations, and parameters are all compatible with Mixed, etc. However, finishing the ObjectTable will be a great first step. * Add ObjectHelpers. Support generic parameters in NonInheritsImplements. Begin work on a POJOConversion framework, which will allow the exposed methods in a native object to use POJOs, while transparently in the background, the values are converted to and from Mixed values for use in user code. This should make the code much easier to write, and much faster as well. It may also assist in the future if there is a need to map third party classes into the ecosystem. * Expand on the object model in the design docs Also write the design docs for dependency injection. * Wrote more on topics, write some of the standard library. Several more sections have been added to the objects design doc, as well as a small section about manifests and annotations. In addition to this, a new cmdline tool, new-type has been a...ladycailin3 years ago
daf2cabcAdd "color" to potion item meta pseudoknight3 years ago
9bad4e20Bump version of checkstyle ladycailin3 years ago
b1264f75Update front page with VSC link ladycailin3 years ago
02126bc4Add compile check for unexpected symbols ladycailin3 years ago
c3628ab5Add Closure.executeClosure, and deprecate .execute .execute required the programmer to ensure that the FunctionReturnException was caught, and if not caught, would cause errors. By default, one does not catch runtime exceptions, so executeClosure does that, and if one is thrown, returns it as a value. Additionally, some deprecated code was cleaned up, and a bugfix in site-deploy was made. ladycailin3 years ago
d776c66eAdd exceedingly basic support for annotations. They do nothing yet. ladycailin3 years ago
a1b5c5e9Expand further on the UnitTest design doc ladycailin3 years ago
33b2902aMove hypot to use the bundled code paradigm ladycailin3 years ago
c483aea0Add hypot function ladycailin3 years ago
b1853e2bAdd design doc for unit testing ladycailin3 years ago
faa60253Add design doc for unit testing Also update the Style Guide with more details, and add a package name to FileWriteMode. ladycailin3 years ago
b85e9cd1Move more cmdline tools out of the if/else chain ladycailin3 years ago
435c098dAdd json-api cmdline tool, to print api.json locally ladycailin3 years ago
34871956Fix bug in cmdline documentation ladycailin3 years ago
b7439c9eFix a bug in site-deploy and syntax highlighter ladycailin3 years ago
4dcd9f27checkstyle ladycailin3 years ago
eda91d55Fix parsing bug for httpVersion in http_request ladycailin3 years ago
7b8726e9Revert strict mode change, as it has further reaching impact than expected ladycailin3 years ago
4d9f8bf3Implement no bare-strings in strict mode. Additionally, implement a runtime setting to enable strict mode. This is mostly useful in the interpreter, but can also be used by other code. ladycailin3 years ago
78c30268Show different colors for restricted functions in api tool ladycailin3 years ago
92c2955dAdd runtime option that totally disables eval() ladycailin3 years ago
ea0363ffRemove get_runtime_setting and other minor changes ladycailin3 years ago
b6a1b336Add runtime settings. Primarily, this adds the ability to check and set runtime settings. Generally speaking, this is a very generic mechanism though, but currently console and remove_runtime_setting now use this mechanism. ladycailin3 years ago
dc1d0373Add compilerOption file option setup Currently, AllowAmbiguousCommands is the only option, but if present, this disables the ambiguous command checking for that script. In general, it is now also set up so that in the future, more compilerOptions can easily be added. ladycailin3 years ago
ea32c2a0Fix ambiguous alias definition in sample code pseudoknight3 years ago
7e3cda6bFurther clarify valid lengths for scoreboards pseudoknight3 years ago
69b7daf1Add functions to manage the player list header and footer pseudoknight3 years ago
410fc3b8Throw a helpful exception when errant new lines are in a persistence key pseudoknight3 years ago
659a3c28Implement array_index_exists per the specification. Previously, it only accepted one element, but the documentation stated that it should support dereferencing multi dimensional arrays. Now the documented behavior is implemented. Ironically, due to the way the code functioned, the example showing that code was correct, but for the wrong reason. ladycailin3 years ago
0c174369Finish implementing branch statements generically (#516) Finish implementing branch statements generically This allows for new functions to define themselves as branch functions in a more precise way, and allows for dead code removal in all cases.ladycailin3 years ago
b11eceebCheckstyle ladycailin3 years ago
6e95fcaaAdd BranchStatement and VariableScope. Neither of these are used yet, and not all the functions that need to implement them do. Still to be implemented are (at least) dowhile, while, foreach, foreachelse, for, proc, closure, (iclosure, rclosure), and probably some others. Once all of these functions implement these, then the compiler/runtime can be modified to start using them. The BranchStatement implementation will have less impact (none, other than catching user bugs), but the VariableScope implementation will have a LARGE impact, and needs to be more carefully implemented. Since many BranchStatements will also be VariableScopes, it is worth going ahead and implementing that part of the logic though. ladycailin3 years ago
9f7caf7bFix a bug in foreach ladycailin3 years ago
b74c4900Highlight @arguments differently in vimladycailin3 years ago
46f59931anyDoubles now checks for double-like strings This will eventually be the basis of the doubleish type, but for now this will apply to everything. ladycailin3 years ago
b24666baExpose prompt_char as a java function ladycailin3 years ago
bb995738Provide a dynamic method to add cmdline tools. This allows better categorization and organization of cmdline tools, but most importantly, it allows for extensions to snap in tools. Both the old and the new mechanism are currently supported, but in the future, these will all be ported to the new system. ladycailin3 years ago
e5ff148aClean up DataSource classes Also add always_trace, which works like trace, but always shows, regardless of debug-mode. ladycailin3 years ago
934848eaCheckstyle ladycailin3 years ago
6c5b7542Delete obsolete DocGen UI, update UI tool Update Help file in PNViewer to link to the new website. ladycailin3 years ago
22b465ceAllow regex search in api tool and interpreter ladycailin3 years ago
60a58799Update public-suffix.dat ladycailin3 years ago
113705d5Add help command to interpreter, which is like the api cmdline tool The api tool gave help information about functions, and now this functionality is available directly within the interpreter. The documentation itself has also been substantially improved, with support for removing html tags, doing some wiki formatting, and formatting tables in a more console friendly way. The underlying code is accessible publicly through the Interpreter class, and may be used elsewhere in the future. ladycailin3 years ago
2efc14ffUpdate LICENSE.txtladycailin3 years ago
a00162d9Add a Booleanish interface. (#514) Add a Booleanish interface. This allows objects to specifically declare that, while not booleans themselves (except CBoolean), they do have a way to convert to a truth value. This distinction allows functions like if and for to formally declare that they accept a Booleanish value, but others, will only accept an actual boolean value. As it stands today, everything accepts booleanish values, and that is unfortunate, but that will be addressed when strong typing is added, so that it will reduce most of the errors that would be runtime. There are a few other refactorings in this PR, mainly the change from Static.getBoolean to ArgumentValidation.getBoolean. Also added an Iterator class, which functions as the old ArrayAccessIterator, but in a slightly more generic way, working with Iterable objects instead. Iterable is just an amalgam of ArrayAccess and Sizeable, and ArrayAccess no longer extends Sizeable, which now allows for things that don't inherently make sense to be iterable still have array access, without Sizeable.ladycailin3 years ago
50fbeb72ArrayAccess is not Sizeable ladycailin3 years ago
d6dedaecDocumentation updates ladycailin3 years ago
67fa0606Add legal disclaimer ladycailin3 years ago
1d990798Grab the modules list from the jar directly This prevents needing a re-install each time the module list changes, which I'm sure it will continue to do. ladycailin3 years ago
a0b8b5c6Fix missing interface declaration ladycailin3 years ago
c4ae56e3Add a Booleanish interface. This allows objects to specifically declare that, while not booleans themselves (except CBoolean), they do have a way to convert to a truth value. This distinction allows functions like if and for to formally declare that they accept a Booleanish value, but others, will only accept an actual boolean value. As it stands today, everything accepts booleanish values, and that is unfortunate, but that will be addressed when strong typing is added, so that it will reduce most of the errors that would be runtime. ladycailin3 years ago
1f0e10aaAdd java.util to the allowed packages ladycailin3 years ago
4842ccd3Update public-suffix data ladycailin3 years ago
ba44e226Remove references to Main from code that shouldn't actually use it ladycailin3 years ago
8428acabNative clamp (#513) Make clamp() work as a composite function Moving forward, this is the most ideal way to code general purpose functions that don't specifically require platform support. This should make these functions portable if the backing engine is changed from Java to something else, as well as once things like compilation to native are supported, etc, these will be automatically picked up once the underlying functions are all supported. clamp() is a good example of a function for this, as it has no external dependencies, is purely a math based function, has a simple implementation, but takes full advantage of the optimization system. There are also improvements to the ArgumentParser, along with a few bug fixes in that area. ladycailin3 years ago
24154e67Checkstyle ladycailin3 years ago
db7182abAdd build-extension tool to cmdline tools This allows for systems with git and maven installed to quickly and easily pull down and build extensions. Assuming the extension is properly set up with git and maven, the only need is to provide the clone url to the tool. The tool will then git clone the repo, and use maven to build it, and finally, copy the artifact into the chose extension directory, defaulting to the current installation's directory. This commit also fixes a couple of bugs. First, there was a potential memory leak in CommandExecutor, as well as the fact that it closed System.out/err. This would, I believe, have minor impact, as only a few things would have used the buggy modes, but it did affect the site-deploy tool, as well as shell_adv. Secondly, when running in Java version 9 or above, every startup would warn of reflective access. When launching MethodScript with the mscript shortcut, it now provides the proper command line parameters to suppress this warning. This would not help when using the jar directly, and anyways is not a permanent fix, but in the meantime should be less annoying until Java 9+ is officially supported. ladycailin3 years ago
0da70ce2Add debug logging to SQLite retry ladycailin3 years ago
3aaeaed9Fix and optimize entities_in_radius(), and avoid unnecessary chunk loading. The chunk radius was off by one and would miss entities on the outside chunks. It would also ignore any entities in the same block location as the center location. Chunks were also being loaded by this and some other functions, causing unexpected performance problems. pseudoknight3 years ago
16d1c45eFix seealso path for function docs ladycailin3 years ago
c5c30872Various more fixes for http_request ladycailin3 years ago
25a26555Support Brotli encoding in http_request Also allow decompression to be skipped in the options. Speed up provisional-build by skipping code coverage calculations. ladycailin3 years ago
082e0c0aCheckstyle fixes. Also, after further consideration, fixed the bug I just introduced. ladycailin3 years ago
f35e4da9Various improvements and bugfixes in http_request ladycailin3 years ago
bdbe7d99Possible fix for unit test failures on Travis ladycailin3 years ago
50f46129Add extra logging for diagnostics ladycailin3 years ago
16ec0099Add requiredExtensions directive, and implmnt compiler warning for name ladycailin3 years ago
b6ffd402Ignore failing unit test while investigation is ongoing ladycailin3 years ago
b20d8708Docgen updates Also fixed a bug in FullyQualifiedClassName that affected vim syntax highlighter generation, and added unit tests for that. ladycailin3 years ago
cb84d45dRename public-suffix.txt->dat ladycailin3 years ago
d650aae7Update Permissions_Settingsladycailin3 years ago
4c327a28Update public-suffix.txt. Also, created a mscript to simplify doing this in the future. ladycailin3 years ago
165f16f0Add x_write, for cmdline use only ladycailin3 years ago
0a7f9d6bFix reflect_pull() for dynamic enums (#512) michael smith3 years ago
4d7bbbf0Update Exceptions docs ladycailin3 years ago
4189a598Correctly handle SOE in includes. Also, add more detailed information to the profiler message for include, and add includes to the stacktrace. ladycailin3 years ago
8f3478adRe-wrap SOE in closure's execute also ladycailin3 years ago
39e5f225Re-wrap SOE and use CRESOE, so we get more useful errors and can generally support this in the exception system. This might need to be added to the execute method as well. ladycailin3 years ago
48e260d8Fix site-deploy Now, in addition to fixing the actual issue (in a way that that won't happen again), we now also print out usable error messages. For whatever reason, Logger was not working, so instead of fixing that, it has simply been removed, and made to work with the existing paradigm anyways. This should make it easier to diagnose errors within the documentation itself in the future. ladycailin3 years ago
06fe308aProperly pass column information through the exception system Previously, the causedBy section of the exceptions were not properly printed in the default unhandled exception handler. Now, the column information that is passed through is properly printed (though I think the column information itself is still not accurate, but this is a problem in the compiler, not the exception system). Also added "at" to the beginning of each stack trace line, which brings the format more in line with other languages stacktrace prints. ladycailin3 years ago
b24b6dc4Add ValueType semantics This allows objects to mark themselves as value types. Currently, all primitives are marked as such. In the future, the compiler may be able to further optimize these types, particularly if true compilation is added. For now, this is unused, and the compiler treats everything as pass by reference, but this is not ideal. At least going forward now, the ValueType class is established, and other classes can go ahead and start marking themselves as such. Eventually, this mechanism can probably be exposed to user classes, but for now it is internal only. ladycailin3 years ago
dbeef875Checkstyle ladycailin3 years ago
bae58755Fix compiler bug when dealing with bad breaks Previously, when using the break(1) format, if the integer wasn't atomic, then this would cause a java stack trace. Now it causes a normal compile error. ladycailin3 years ago
2c40de74Add a more helpful error message ladycailin3 years ago
5128f80dCatch Error too This allows us to always (at least attempt) to print an error message. While OOME will still leave us in a precarious state, we should at least attempt to print out a helpful error message. ladycailin3 years ago
4964181dConstruct to mixed2018 (#511) This set of changes completes the goals of the original construct-to-mixed branch. Function unfortunately worked with Constructs, rather than the Mixed interface. This was a violation of the Dependency Inversion Principal, which has prevented several critical improvements to the language. The problem is that in Java, there is not multiple inheritance, so while normal classes could easily extend Construct and then be added into the ecosystem, for other types of classes, where it's impossible to extend Construct (particularly because they are already extending another class, which is true in at least the cases of enums and exceptions), these objects simply could not be added into the ecosystem. Now, everything accepts and for the most part deals with Mixed, which is an interface. This has the unfortunate side effect of breaking binary compatibility with extensions, but this change has been in the works for at least three years. As part of this change, implementing enums was used as a test case. That has now also been done, and barring a few bugs, seems to mostly work. This allows access of enums as first class objects, rather than as arrays of strings as previously implemented through reflect_pull. The PR opens lots of possibilities in the future, and so is a welcome change to the base, but there are a few short term goals after this PR is merged: * Move exceptions into first class status. Currently they are implemented as arrays, but this is a shoehorn and not ideal. * Write up documentation for Enums. There is some documentation already available, and this may be mostly correct, but it should at least be read through to ensure it is correct, and then linked to the learning trail. It's also possible to iterate enums with foreach, and so this should be added as an example in various places. * There are still a few bugs with enums, particularly it is not possible to assign an enum class to a variable. ClassType @s = ArraySor...ladycailin3 years ago
676db513Fix docs for uuid ladycailin3 years ago
6cb2e611Add NativeObjectArchitecture design doc This is in conflict with the NewObjects design doc, and these conflicts need to be thought through and one or the other changed. My current thinking is to use the style defined in the NativeObjectArchitecture doc, but I need to think more on this. ladycailin3 years ago
9fc3c9ebRefine cross casting docs ladycailin3 years ago
020ebe2aRefine ObjectUsage docs ladycailin3 years ago
1ff50aabCreate documentation for Object Usage. This defines the design and syntax for how objects can be used. ladycailin3 years ago
33140f6dAdd "special casing" blurb to design ethos page ladycailin3 years ago
798a8630Ignore VFSTest file while Travis is failing ladycailin3 years ago
d277e00aSwitch to using windows agent for azure buildladycailin3 years ago
7aa092c8Update README.mdladycailin3 years ago
300cff38Update README.mdladycailin3 years ago
c05414c6Checkstyle ladycailin3 years ago
ff751656Continue work on VFS ladycailin3 years ago
eab485efAdd glob matching to VirtualGlob, and enable unit tests ladycailin3 years ago