@@ -195,9 +195,9 @@ def update_single(self, module: str, path: str) -> Tuple[List[str],
195
195
result = update_single_isolated (module , path , manager , previous_modules )
196
196
if isinstance (result , BlockedUpdate ):
197
197
# Blocking error -- just give up
198
- module , path , remaining = result
198
+ module , path , remaining , errors = result
199
199
self .previous_modules = get_module_to_path_map (manager )
200
- return manager . errors . messages () , remaining , (module , path ), True
200
+ return errors , remaining , (module , path ), True
201
201
assert isinstance (result , NormalUpdate ) # Work around #4124
202
202
module , path , remaining , tree , graph = result
203
203
@@ -230,7 +230,7 @@ def update_single(self, module: str, path: str) -> Tuple[List[str],
230
230
self .previous_modules = get_module_to_path_map (manager )
231
231
self .type_maps = extract_type_maps (graph )
232
232
233
- return manager .errors .messages (), remaining , (module , path ), False
233
+ return manager .errors .new_messages (), remaining , (module , path ), False
234
234
235
235
236
236
def mark_all_meta_as_memory_only (graph : Dict [str , State ],
@@ -271,7 +271,8 @@ def get_all_dependencies(manager: BuildManager, graph: Dict[str, State],
271
271
# are similar to NormalUpdate (but there are fewer).
272
272
BlockedUpdate = NamedTuple ('BlockedUpdate' , [('module' , str ),
273
273
('path' , str ),
274
- ('remaining' , List [Tuple [str , str ]])])
274
+ ('remaining' , List [Tuple [str , str ]]),
275
+ ('messages' , List [str ])])
275
276
276
277
UpdateResult = Union [NormalUpdate , BlockedUpdate ]
277
278
@@ -318,7 +319,7 @@ def update_single_isolated(module: str,
318
319
remaining_modules = [(module , path )]
319
320
else :
320
321
remaining_modules = []
321
- return BlockedUpdate (err .module_with_blocker , path , remaining_modules )
322
+ return BlockedUpdate (err .module_with_blocker , path , remaining_modules , err . messages )
322
323
323
324
if not os .path .isfile (path ):
324
325
graph = delete_module (module , graph , manager )
@@ -353,7 +354,7 @@ def update_single_isolated(module: str,
353
354
manager .modules .clear ()
354
355
manager .modules .update (old_modules )
355
356
del graph [module ]
356
- return BlockedUpdate (module , path , remaining_modules )
357
+ return BlockedUpdate (module , path , remaining_modules , err . messages )
357
358
state .semantic_analysis_pass_three ()
358
359
state .semantic_analysis_apply_patches ()
359
360
0 commit comments