Repository navigation
This update fixes parsing and analysis bugs, adds more missing 516 features, and improves performance. Also, new sleep analysis modes collaborated on by Cyberboss, CabinetOnFire, and ZeWaka are available.
Core
Core updates apply to all components.
- Remove special handling of files named
tgstation.dme. If needed, setenvironmentinSpacemanDMM.toml. - Parse for-key-value loops (by ZeWaka, #447, and LemonInTheDark, #469).
- Fix crash on out-of-range bitshifts in constant evaluation.
- Fix bugs with
##token pasting and empty arguments: - Fix preprocessor
fexistsgiving inaccurate results on.dmepaths outside the working directory (by ZeWaka, #478). - Mark
vector()as a constant constructor (by LemonInTheDark, #468). - Add builtins:
- Gracefully resume parsing after previously fatal tree-scope parsing errors:
/var/1 = 1, such as from/var/OPEN = 1whereOPENis a macro.- Tree-scope
..(), which has no effect. - Tree-scope empty blocks, such as from indented block comments, which have no effect.
- Improve accuracy of "check for extra indentation" note location on certain rare parse errors.
- Optimize parsing by interning keywords and other builtin strings.
Language Server
- Add hover and go-to-definition for
/typepath::variablesyntax (by ZeWaka, #477). - Add hover for
__FILE__and__LINE__(by Cyberboss, #358). - Fix go-to-definition failing on variables named
list,alist,input,locate, andpick. - Optimize the object tree browser and enable it by default.
- Distinguish constants, constructors, and methods in the object tree browser.
Debugger
- Update Auxtools debug server from v2.3.5 to v2.3.8.
- Change the default debug engine to Auxtools. Extools is unmaintained since 2021 and support will be removed in a future release.
DreamChecker
- Fix crash on
switch(rand(..))containingif(x to INFINITY). - Fix undefined vars and procs not being caught if a var or proc with the same name exists globally.
- Fix the output type of
operator[]calls being the same as the input type (#480). - Improve "unreachable code" warnings to handle
continueandbreak(by LemonInTheDark, #475). - Add
SpacemanDMM_should_not_call_parentopt-in warning (by Lucy, #455). - Add new
SpacemanDMM_should_not_sleepmodes, configured by settingdreamchecker.sleep_analysis_version:sleep_analysis_version = 1is the old default.sleep_analysis_version = 2catches many more cases but has false positives (by CabinetOnFire and Cyberboss, #472).sleep_analysis_version = 3catches a few more cases than1but has many fewer false positives than2, and is the new default (by ZeWaka, #479).
- Add flag definitions for
filter(type="displace")(by Krashly, #445). - Add warning for using the indexing operator on types without
proc/operator[](by LemonInTheDark, #397). - Add warning for
list.Find()with no arguments (by ZeWaka, #460).
dmm-tools
- Fix loading
.dmiicon states with backslashes or quotes in their name, such as in fonts. - Add
icon-smoothing-2025render pass to support tgstation's newest system (by Lucy, #454). - Optimize blitting somewhat.