Open a fresh baseplate in Roblox Studio, enable trace logging in the Rojo plugin, and click Connect
Make any change to ref_properties' default.project.json (I added a newline)
Observe the output, and notice that the subscribe response contains null for all the Ref properties specified with attributes in ref_properties' default.project.json:
I noticed this behavior in some test failures after #843 was merged: https://github.com/rojo-rbx/rojo/actions/runs/9605402645/job/26492956529#step:7:762. This makes it impossible for the Rojo plugin to live update a Ref property, could cause problems once rbx_dom_lua gains better ability to represent optional values, and can currently cause test failures on macOS due to seemingly inherent noisiness in FSEvents.
To reproduce:
rojo plugin install
rojo serve
on theref_properties
test projectdefault.project.json
(I added a newline)null
for all theRef
properties specified with attributes in ref_properties'default.project.json
:I noticed this behavior in some test failures after #843 was merged: https://github.com/rojo-rbx/rojo/actions/runs/9605402645/job/26492956529#step:7:762. This makes it impossible for the Rojo plugin to live update a Ref property, could cause problems once rbx_dom_lua gains better ability to represent optional values, and can currently cause test failures on macOS due to seemingly inherent noisiness in FSEvents.
One reason this could happen is because deferred Ref property application appears to not influence the returned result of patch application (i.e.
PatchApplyContext.applied_patch_set
), but rather only influences the tree: https://github.com/rojo-rbx/rojo/blob/7e2bab921aa71f76d07d0424e4bb4064e8b7c995/src/snapshot/patch_apply.rs#L246-L299It will also be worth investigating patch computation, to see if Ref properties specified via attributes are erroneously detected as removed there.