@@ -228,6 +228,9 @@ def _start_compilation_queue(self, engine, files_to_compile: list) -> None:
228228 main_process .log_message .connect (
229229 lambda level , msg : _handle_log (self , level , msg )
230230 )
231+ main_process .compilation_started .connect (
232+ lambda info : _handle_compilation_started (self , info )
233+ )
231234 main_process .compilation_finished .connect (
232235 lambda code , info : handle_finished (self , code , info )
233236 )
@@ -236,8 +239,21 @@ def _start_compilation_queue(self, engine, files_to_compile: list) -> None:
236239 )
237240 main_process ._gui_connected = True
238241
239- # Compiler chaque fichier
242+ # Charger les patterns d'exclusion depuis ArkConfigManager
243+ exclusion_patterns = main_process .get_exclusion_patterns ()
244+ excluded_count = 0
245+
246+ # Compiler chaque fichier avec vérification des exclusions
240247 for file_path in files_to_compile :
248+ # Vérifier si le fichier doit être exclu
249+ if main_process .should_exclude (file_path ):
250+ self .log_i18n (
251+ f"⏩ Fichier exclu: { os .path .basename (file_path )} " ,
252+ f"⏩ File excluded: { os .path .basename (file_path )} " ,
253+ )
254+ excluded_count += 1
255+ continue
256+
241257 if not os .path .exists (file_path ):
242258 self .log_i18n (
243259 f"⚠️ Fichier non trouvé: { file_path } " , f"⚠️ File not found: { file_path } "
@@ -285,6 +301,13 @@ def _start_compilation_queue(self, engine, files_to_compile: list) -> None:
285301 )
286302
287303 # break # Un seul fichier à la fois pour l'instant
304+
305+ # Afficher le résumé des exclusions
306+ if excluded_count > 0 :
307+ self .log_i18n (
308+ f"⏩ { excluded_count } fichier(s) exclu(s) selon les patterns de ARK_Main_Config.yml" ,
309+ f"⏩ { excluded_count } file(s) excluded according to ARK_Main_Config.yml patterns" ,
310+ )
288311
289312
290313def cancel_all_compilations (self ) -> bool :
@@ -491,6 +514,17 @@ def _handle_output(self, message: str) -> None:
491514 self .log .append (message )
492515
493516
517+ def _handle_compilation_started (self , info : dict ) -> None :
518+ """Handle compilation started signal from MainProcess."""
519+ file_path = info .get ("file" , "" )
520+ engine = info .get ("engine" , "" )
521+ if file_path and engine :
522+ self .log_i18n (
523+ f"🚀 Démarrage compilation: { os .path .basename (file_path )} avec { engine } " ,
524+ f"🚀 Starting compilation: { os .path .basename (file_path )} with { engine } " ,
525+ )
526+
527+
494528def _handle_error (self , message : str ) -> None :
495529 """Handle error output from MainProcess."""
496530 if message :
0 commit comments