Commit
59790126d8c17b6e2413b8233306c12fc8f224f5
by PseudoKnight
Initialize extensions earlier during plugin load
Moves extension initialization to the plugin's onLoad() method. This enables extensions to process things earlier in the loading process using the new extension onLoad() method.
Moves version assignment earlier so that it can be used for upgrade tasks. This is much faster than loadSelfVersion(), saving tens of milliseconds on the load time. (commit: 5979012)
Commit
84290d0cd9c268ba6a278f250fec34865074abae
by PseudoKnight
Improve bare string exceptions
This prints the bare string that caused the exception, which is useful for debugging from logs, and removes the extra and less useful "Not a statement" exception in these cases. (commit: 84290d0)
Commit
f0bd0bac2ac30b29d6920815322ae2b8eb588d5a
by LadyCailin
Cmdline interpreter mode improvements.
This adds the ability to clear the environment with ~, and also adds the ability to print out a variable just by running a line with the variable. (commit: f0bd0ba)
Commit
8eee562c691ac505ea8c4f80e90f2207975cabdc
by LadyCailin
Swap from using openapi directly to using TypeSpec.
This changes the format of the apps.methodscript.com specification to use TypeSpec. It is an easier to use format, which has several long term advantages over using OpenAPI yaml directly. There are no changes to the client itself, other than to provide an actual object for BuildArtifacts, which simplifies the parsing of the Updater code. The SwaggerGenerator version is also updated to the latest version of 3.0.0 now. (commit: 8eee562)
Commit
7f8657dc03362151849adc835dbc85d9d8e37b9f
by Pieter12345
Generate specific exceptions for using undefined types
- Wrap bare strings in `__type_ref__()` if they are used as a type in syntax. - Handle `__type_ref__()` unknown types in StaticAnalysis typechecking. - Handle `__type_ref__()` unknown types in runtime when StaticAnalysis is disabled.
Avoids getting a set of cryptic exceptions when using an non-existent types. (commit: 7f8657d)
Commit
0211c577e3af157043416a806dafe4adc4386f79
by Pieter12345
Support FQCN types in MethodScript code
Support FQCN in `ms.lang.int @a = 1;`, `try {} catch (ms.lang.Exception @ex) {}` and `proc _a(ms.lang.int @a) {}` syntax. Note that `assign(ms.lang.int, @a, 1)` is not supported due to `assign.postParseRewrite()` running after bare string warning/error generation. (commit: 0211c57)