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
Thank you for putting this type definition library together. The autocomplete functionality it enables is quite handy!
The Great Reorganization restructured much of DFHack's DF type library. Many types are now defined in new XML files and many XML files were renamed. The update-definitions workflow doesn't start from a blank slate, so definitions that were extracted from files that no longer exist are still included in the published dist/library.
I cleared out the dist/library subdirectories (rm -r dist/library/*/*) and regenerated. That cleaned up the obsolete dist/library/structures files, but it also uncovered a few other "stale" items:
With dfhack_modules and dfhack_funcs back in action, everything in subdirs except console.lua seems to generate correctly. Would it make sense to move console.lua to be next to the "manual" files (i.e., directly in dist/library, not in a subdir), so that everything in subdirs could be regularly deleted in update-definitions (or rake build)?
The text was updated successfully, but these errors were encountered:
Thank you for the great write up! I've been out of the loop for a few months so I'll have to catch up but it looks like you did most of the work for me here 😄 I appreciate that!
I'll make it a point to action everything here in the next few days.
update-definitions should completely re-generate the definitions library if changes are detected, to avoid stale files as mentioned above
Investigate console.lua, I can't remember any details around why it was ignored. Regardless it should be noted as manually written and moved away from the automatically generated files
Thank you for putting this type definition library together. The autocomplete functionality it enables is quite handy!
The Great Reorganization restructured much of DFHack's DF type library. Many types are now defined in new XML files and many XML files were renamed. The
update-definitions
workflow doesn't start from a blank slate, so definitions that were extracted from files that no longer exist are still included in the publisheddist/library
.I cleared out the
dist/library
subdirectories (rm -r dist/library/*/*
) and regenerated. That cleaned up the obsoletedist/library/structures
files, but it also uncovered a few other "stale" items:dist/library/lua/plugins/rename.lua
plugins/rename.cpp
was recently deletedrename.cpp
, but it is probably worth clearing out.dist/library/modules/console.lua
ignored_modules
)?dist/library/modules/dfhack.lua
Possible fix for
dfhack.lua
(re-enable capture ofdfhack_module
anddfhack_funcs
; diff against 2be8ed0):With
dfhack_modules
anddfhack_funcs
back in action, everything in subdirs exceptconsole.lua
seems to generate correctly. Would it make sense to moveconsole.lua
to be next to the "manual" files (i.e., directly indist/library
, not in a subdir), so that everything in subdirs could be regularly deleted inupdate-definitions
(orrake build
)?The text was updated successfully, but these errors were encountered: