Commit f0d5e0d
committed
incremental: fix errors not being deleted upon re-analysis
Previously, logic in `Compilation.getAllErrorsAlloc` was corrupting the
`failed_analysis` hashmap. This meant that on updates after the initial
update, attempts to remove entries from this map (because the `AnalUnit`
in question is being re-analyzed) silently failed. This resulted in
compile errors from earlier updates wrongly getting "stuck", i.e. never
being removed.
This commit also adds a few log calls which helped me to find this bug.1 parent ba78d79 commit f0d5e0d
3 files changed
+83
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3102 | 3102 | | |
3103 | 3103 | | |
3104 | 3104 | | |
3105 | | - | |
| 3105 | + | |
3106 | 3106 | | |
3107 | 3107 | | |
| 3108 | + | |
3108 | 3109 | | |
3109 | 3110 | | |
3110 | 3111 | | |
| |||
3113 | 3114 | | |
3114 | 3115 | | |
3115 | 3116 | | |
3116 | | - | |
3117 | | - | |
| 3117 | + | |
3118 | 3118 | | |
3119 | 3119 | | |
3120 | 3120 | | |
3121 | | - | |
| 3121 | + | |
3122 | 3122 | | |
3123 | 3123 | | |
3124 | 3124 | | |
| |||
3135 | 3135 | | |
3136 | 3136 | | |
3137 | 3137 | | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
3138 | 3145 | | |
3139 | | - | |
3140 | | - | |
3141 | | - | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
| 3149 | + | |
| 3150 | + | |
3142 | 3151 | | |
3143 | | - | |
3144 | | - | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
3145 | 3156 | | |
3146 | 3157 | | |
3147 | 3158 | | |
| |||
3158 | 3169 | | |
3159 | 3170 | | |
3160 | 3171 | | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
3161 | 3177 | | |
3162 | 3178 | | |
3163 | 3179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3590 | 3590 | | |
3591 | 3591 | | |
3592 | 3592 | | |
3593 | | - | |
| 3593 | + | |
3594 | 3594 | | |
3595 | | - | |
| 3595 | + | |
3596 | 3596 | | |
3597 | 3597 | | |
3598 | | - | |
3599 | | - | |
3600 | | - | |
| 3598 | + | |
| 3599 | + | |
| 3600 | + | |
3601 | 3601 | | |
3602 | 3602 | | |
3603 | | - | |
| 3603 | + | |
3604 | 3604 | | |
3605 | 3605 | | |
3606 | 3606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
0 commit comments