auxtools debug server: expression evaluation #263
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The changes for the language server are minimal. This will require shipping version 2.0.0 of the debug server:
https://github.com/willox/auxtools/releases/tag/debug-v2.0.0(usehttps://github.com/willox/auxtools/releases/tag/v2.1.0(use https://github.com/willox/auxtools/releases/tag/v2.2.0))There are plenty of compiler features missing on the debug server's end, but it is definitely more than usable so I want to get it published. I plan on going a lot further this all of this, maybe we'll even have hot loading one day.
Noticeable differences from actual BYOND are:
.
accesses as:
accesses and ignore the rules of const.src
. This comes from the fact that there is no static typing, so to access a field onsrc
you have to explicitly usesrc.xyz
syntax.For other limitations, just view the error list: https://github.com/willox/dmasm/blob/9ba328ef8c4e45c64072198e72c412cd9f685609/src/compiler.rs#L45-L76
tl;dr: relatively well-working debug console eval, watch eval, and conditional breakpoints