Skip to content

Commit 930659d

Browse files
authored
feat: registery based diagnostician (#1077)
* feat: add a Dagnostics registry that controls severity An Diagnostic registry is now responsible for adding a severity instead of the diagnostic itself. The registry is the default diagnostics assessor. Diagnostics no longer have an own severity field as a result. * Rename error to new * Diagnostics config option * feat: add registry serializer Added the option to load a diagnostics configuration Added tests for the configuration Added the basic api to print the configuration * feat: add command line option to parse plc_diagnostics A new parameter (`--error-config`) can now be used to include a json file with the default behaviour for errors * feat: add an explain flag to the compiler Error messages now show the error code in the report At the end of the compilation a hint is shown to use the new explain flag for more info * feat: add the possiblity to print the error config The error configuration can now be printe using `plc config diagnostics` Added documentation about the new commands to the book * Make sure windows runs on 1.75 * Reword some errors
1 parent b3e27f2 commit 930659d

File tree

522 files changed

+2750
-2332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

522 files changed

+2750
-2332
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
name: Test Windows
6868
runs-on: windows-2022
6969
env:
70-
toolchain-version: 1.70.0
70+
toolchain-version: 1.75.0
7171
llvm-version: 14.0.6
7272
steps:
7373

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/target
22
/target-watch
3+
/output
34
/.idea
45
**/*.rs.bk
56
**/*.un~

0 commit comments

Comments
 (0)