# stage2: fix incremental compilation handling of parse errors · gitcafe/zig

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

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

Visibility: public

Requested revision: 12087d4cbaab39acadc29716e92765c92b92e28c

Requested commit: 12087d4cbaab39acadc29716e92765c92b92e28c

Commit: 12087d4cbaab39acadc29716e92765c92b92e28c

Tree: bb5447848ff6bdd3477aac5ab193363fd666abcf

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix incremental compilation handling of parse errors

Before, incremental compilation would crash when trying to emit compile
errors for the update after introducing a parse error.

Parse errors are handled by not invalidating any existing semantic
analysis. However, only the parse error must be reported, with all the
other errors suppressed. Once the parse error is fixed, the new file can
be treated as an update to the previously-succeeded update.

```

## Parents

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

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