@@ -111,13 +111,14 @@ def _compile() -> Dict[str, Any]:
111111 "mounts" : [],
112112 "volumes" : {}
113113 }
114- lean_runner .mount_project_and_library_directories (project_dir , run_options )
115- lean_runner .setup_language_specific_run_options (run_options , project_dir , algorithm_file , False , False )
116114
117115 project_config = project_config_manager .get_project_config (project_dir )
118116 engine_image = cli_config_manager .get_engine_image (
119117 project_config .get ("engine-image" , None ))
120118
119+ lean_runner .mount_project_and_library_directories (project_dir , run_options )
120+ lean_runner .setup_language_specific_run_options (run_options , project_dir , algorithm_file , False , False , engine_image )
121+
121122 message ["result" ] = docker_manager .run_image (engine_image , ** run_options )
122123 temp_manager .delete_temporary_directories_when_done = False
123124 return message
@@ -153,8 +154,7 @@ def _parse_python_errors(python_output: str, color_coding_required: bool) -> lis
153154 errors .append (f"{ bcolors .FAIL } Build Error File: { match [0 ]} Line { match [1 ]} Column { match [2 ]} - { match [3 ]} { bcolors .ENDC } \n " )
154155 else :
155156 errors .append (f"Build Error File: { match [0 ]} Line { match [1 ]} Column { match [2 ]} - { match [3 ]} \n " )
156-
157- for match in re .findall (r"\*\*\* Sorry: ([^(]+) \(([^,]+), line (\d+)\)" , python_output ):
157+ for match in findall (r"\*\*\* Sorry: ([^(]+) \(([^,]+), line (\d+)\)" , python_output ):
158158 if color_coding_required :
159159 errors .append (f"{ bcolors .FAIL } Build Error File: { match [1 ]} Line { match [2 ]} Column 0 - { match [0 ]} { bcolors .ENDC } \n " )
160160 else :
0 commit comments