Repository navigation
Conversation
PackageAbi hashes what other packages can see of a package (public signatures, modifiers, inferred types, constant initialisers, module bodies). ModelManagerImpl keeps the last hash per package and only pulls importers into a partial typecheck when it differs, reports every re-checked file in Changes, clears dependents when a new file appears, and gains syncProjectFiles() to reconcile the model with disk. PrettyPrinter no longer indexes an empty buffer, which printing a module hit.
Frotty
added a commit
to Code-Fixxers/WurstScript
that referenced
this pull request
Oct 6, 2026
Drop changes that are split out or independent of the chunk cache and validation cache: the hashtable rewrite and compile-time runner changes (wurstscript#1367), the ABI-gated model invalidation (wurstscript#1368), the EliminateGenerics rewrite, parallel/fused lowering passes, the reachable-only LocalPlayerContextAnalyzer, the w3i cache, the closure-name suffix and timing/micro-optimisation churn. Keeps what -incremental needs: chunk cache, PackageAbi, validation cache, modular Lua translation, the CLI/LSP incremental pipeline and their tests.
Keeps master's unchecked-unit tracking, Jass-name and removal propagation. ABI hashes are stored only after a check that validated, and a package with a config relative in the model propagates to all its users whatever the edit. IncrementalModelOracleTests still fails (config seed 1): an importer keeps its binding into a replaced unit whose public ABI did not change, the known stale-attribute problem in the description.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Split out of #1353. Draft, do not merge as is: a review found that gating importer invalidation on a public-ABI hash is not sound in its current form.
PackageAbi.computeAbiHashhashes what other packages can see of a package.ModelManagerImplkeeps the last hash per package and only pulls importers into the partial typecheck when it changed.syncCompilationUnitnow reports every re-checked file, a newly added file clears its dependents, andsyncProjectFiles()reconciles the model with thewurst/folder.PrettyPrinterno longer indexes an empty buffer (printing a module hit it).Confirmed problems (each reproduced with a throwaway test):
Pfollowed by an edit inKcan report a falseCannot assign Foo to Foo. Fix direction: always clear the attributes of all transitive importers and gate only re-validation on the hash.isPublicfilter never matches a valid constructor), members reached through non-public base classes or modules, interface method bodies (abstractness) andimport initlater.calculateCUsToUpdateevaluatesattrTyp()on a freshly parsed, detached unit and can publish spurious diagnostics.updateModelnow runscalculateCUsToUpdatefor every new file during the initial load; measured load phase is about 2-3x slower at 1000-3000 files.syncProjectFileshas no caller and mishandles.jfiles.Opening it as a draft so the work and findings are not lost; the sound variant gives up most of the benefit.