You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an empty workspace with a single pack.mcmeta version in it:
{
"pack": {
"description": {
"text": "My data pack",
"shadow_color": 123
},
"pack_format": 61
}
}
Reload the window so 1.21.4 is currently loaded and reset the project cache to make sure the cache is clean
✅ Notice that the shadow_color field added in 1.21.4 is correctly recognized
Replace pack format 61 with 57 to select 1.21.3 as loaded version
Reload the window and wait until initialization is done
❌ Notice that there is no "unknown key" warning for the shadow_color field, even after closing and reopening the file
Reset the project cache
✅ Now there is an "unknown key" warning
Analysis
Since the mcdoc symbols are being contributed by the @vanilla-mcdoc dependency, their cache is only cleared when the hashes of those files change (when a new version of vanilla-mcdoc is pushed to the repo), not when the currently loaded version is changed.
The since and until attributes do not cause a type to be marked as "having dynamic data" (with good reason, otherwise almost none of the types could get simplified), however this means that the cached simplified types need to be cleared when changing versions.
The text was updated successfully, but these errors were encountered:
How to reproduce
pack.mcmeta
version in it:shadow_color
field added in 1.21.4 is correctly recognizedshadow_color
field, even after closing and reopening the fileAnalysis
Since the mcdoc symbols are being contributed by the
@vanilla-mcdoc
dependency, their cache is only cleared when the hashes of those files change (when a new version of vanilla-mcdoc is pushed to the repo), not when the currently loaded version is changed.The
since
anduntil
attributes do not cause a type to be marked as "having dynamic data" (with good reason, otherwise almost none of the types could get simplified), however this means that the cached simplified types need to be cleared when changing versions.The text was updated successfully, but these errors were encountered: