# incremental: fix crash when introducing syntax error · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/b21becb2a6a82b4ac65e98fa0094a7786cbbfdc3)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: b21becb2a6a82b4ac65e98fa0094a7786cbbfdc3

Requested commit: b21becb2a6a82b4ac65e98fa0094a7786cbbfdc3

Commit: b21becb2a6a82b4ac65e98fa0094a7786cbbfdc3

Tree: 3f34547059ff6e207e17ccf64d0ce68cf0728220

Author: mlugg

Committer: mlugg

## Message

```
incremental: fix crash when introducing syntax error

Clearing the analysis roots was very clever and all, but not actually
valid. We need to avoid *any* reference to the analysis errors if there
were any fatal files, and that includes sorting the errors!

Resolves: #22774

```

## Parents

- [3031d813874f6d6ad9ae4b793e3af6cdf632fa66](https://git.cafe/gitcafe/zig/commit/3031d813874f6d6ad9ae4b793e3af6cdf632fa66?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/b21becb2a6a82b4ac65e98fa0094a7786cbbfdc3?format=markdown)
