[Types] detach-bar-modules - #7289
Conversation
Integration Test Results14 tests 6 ✅ 3s ⏱️ Results for commit e6c139e. ♻️ This comment has been updated with latest results. |
8f584a3 to
b13a5b4
Compare
b13a5b4 to
0417977
Compare
0417977 to
5ed91cc
Compare
|
why? |
6ef63d5 to
ccc2169
Compare
Short answer: they aren't engine API, and having them on This came directly out of working on spring-split. When you split Detaching them makes the split cleaner: Totally open to other ideas, this just seemed accurate to me if I was trying for "pure" types for the engine API. |
f04b32f to
f331bbf
Compare
f331bbf to
ed0fd6d
Compare
0393dcb to
8587d66
Compare
|
I don't dislike separating code not sourced from the engine like this. But I kind of do dislike a top-level "Utilities". |
8587d66 to
90f9ef8
Compare
8a312e6 to
1c6c6b9
Compare
1c6c6b9 to
1a561e2
Compare
1a561e2 to
b2e43fc
Compare
b2e43fc to
ec96204
Compare
ec96204 to
b7ca372
Compare
b7ca372 to
a88f00c
Compare
a88f00c to
e822b48
Compare
e822b48 to
c67bd19
Compare
Add Utilities, I18N, Debug, Lava, and GetModOptionsCopy to the System tables in luaui/system.lua and luarules/system.lua so that widgets and gadgets can access them after detach-bar-modules moves them off the Spring table. Also create .emmyrc.json (the EmmyLua analyzer config) with the detached modules in the globals list, plus type stubs for LSP/CLI support. The .emmyrc.json content matches what vscode-recommended-extensions ships, with 5 extra globals (Utilities/Debug/Lava/GetModOptionsCopy/I18N) that only become real top-level identifiers after detach-bar-modules runs. When vscode-recommended-extensions has already merged, -Xtheirs in the cherry-pick keeps this version (the superset). # Conflicts: # .emmyrc.json
|
Superseded by #8403 — recreated with its head on beyond-all-reason instead of the fork; the whole migration stack now lives same-repo. Branch content is identical; review history stays readable here. |
Warning
Superseded — this PR was an earlier mint of the stack. The type-error cleanup
now lands via the current stack tip
fmt-llm#8398.This slice's current counterpart is #8403.
Kept closed for review history; nothing here merges.
Part of BAR type-error cleanup. Rebuilds idempotently from
masterviajust bar::migrate::stylua-cleanup-generate.What it does: Moves BAR-added helpers off the
Springtable into aBARnamespace —Spring.I18N→BAR.I18N, plusBAR.Utilities,BAR.Debug,BAR.Lava, andBAR.GetModOptionsCopy— since they aren't engine API and otherwise break type-checking against theSpringstubs.The
detach-bar-modules-envprereq exposesBARto the widget/gadget sandbox (luarules/system.lua,luaui/system.lua), bootstrapsBAR = BAR or {}ininit.lua/springOverrides.luabefore the detached defs, adds the consolidatedtypes/BAR.luastub, and listsBARas a global in.emmyrc.json. Cherry-picked on top offmtbefore the codemod runs.Branch Topology
All branches in the BAR type-error cleanup stack — see Bulk Migrations for the migration log and how to run
just bar::migrate::stylua-cleanup. Regenerated deterministically byjust bar::migrate::stylua-cleanup-generate. Generated 2026-07-22 19:44:39 UTC.Leaves — each isolates one transform's diff vs
fmt:styluabar-lua-codemod bracket-to-dotbar-lua-codemod rename-aliasesbar-lua-codemod detach-bar-modules<hand curated><hand curated>Rollups — composite branches stacking the leaves and (for
fmt-llm) the env + LLM layers:master