If you test all of these out, the <<notworking>> widget will print [undefined]. As near as I can tell, this only happens to widget _args and _contents special variables and only with type. Outside widgets or using other variables, <<capture>> and <<type>> work together as expected. Likewise, this issue does not appear to occur with other macros that delay output, as seen with the <<alsoworks>> widget.
:: Start
<<works>>Hi there yay it's me mario whee!!!!<</works>>
<<notworking>>Hi there yay it's me mario whee!!!!<</notworking>>
<<alsoworks>>Hi there yay it's me mario whee!!!!<</alsoworks>>
Expected behavior.
A clear and concise description of what you expected to happen.
Screenshots.
If applicable, add screenshots to help explain your problem.
Project details.
SugarCube Version: 2.36.1
Included Add-ons: -
Included Libraries: -
Compiler & Version: Twine 2.4.1
Desktop details.
OS & Version: [e.g., Windows 10]
Browser & Version [e.g., Chrome 88 (64-bit), Firefox 85 (64-bit)]
Smartphone/tablet details.
Device: [e.g., iPhone Xs Max]
OS & Version: [e.g., iOS 14.4]
Browser & Version [e.g., Safari 14.4, Firefox for iOS 31]
Additional context.
Add any other context about the problem here.
Describe the bug. This is a weird one, so strap in.
Consider the following widgets:
If you test all of these out, the
<<notworking>>
widget will print[undefined]
. As near as I can tell, this only happens to widget_args
and_contents
special variables and only withtype
. Outside widgets or using other variables,<<capture>>
and<<type>>
work together as expected. Likewise, this issue does not appear to occur with other macros that delay output, as seen with the<<alsoworks>>
widget.To Reproduce:
Expected behavior. A clear and concise description of what you expected to happen.
Screenshots. If applicable, add screenshots to help explain your problem.
Project details.
Desktop details.
Smartphone/tablet details.
Additional context. Add any other context about the problem here.