Skip to content

[HR] Blocked-compilation audit judges the whole solution on passes that did not touch it #23861

Closed

Description

@dr1rrb

Current behavior

When a hot-reload pass produces no rude edits and no metadata updates,
HotReloadManager.ProcessSolutionChanged runs a last-chance audit,
GetCompilationErrors(solution), over every project of the solution, reading
TryGetCompilation — i.e. whatever compilation state happens to be cached, without ever
forcing a real compile.

Two problems:

  1. The pass is judged on projects unrelated to its change-set: observed live, a
    no-op pass over the per-request hot-reload info file completed Failed with ~2,400
    errors coming from seven libraries the pass never touched (their errors were phantom —
    see the analyzer-flavor issue 🦨 [HR] Workspace selects analyzer flavors for the SDK compiler, not its embedded Roslyn — generators silently missing #23860), while the user's actual change had
    already applied successfully.
  2. Because that pass can be the one correlated to the originating UpdateFile request
    (the info file is the correlator), the request reports failure for a change that was
    applied
    — a user-facing "failed" for a successful operation.

Expected behavior

The audit keeps its purpose — "your edited file does not compile, that is why there is no
delta" — but only judges the projects owning the pass's changed files (documents and
additional documents). When the change-set resolves to no known project, the audit is
skipped (NoChanges). The "Hot reload blocked by N compilation error(s)" line names the
audited projects and edited files.

Environment

src/Uno.HotReload/HotReloadManager.cs — (rudeEdits.IsEmpty, updates.IsEmpty) == (true, true)
branch + GetCompilationErrors.

Activity

  1. added 2 commits that reference this issue on Jul 23, 2026
    9a5c0cd
    0ee1d93
  2. added a commit that references this issue on Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions