@@ -35259,7 +35259,8 @@ function get_line_info(compiler, line) {
3525935259 */
3526035260function is_project_file(line, prefix) {
3526135261 // For absolute paths we only consider the ones prefix with 'work_dir'
35262- if(external_node_path_namespaceObject.isAbsolute(line)) {
35262+ if (external_node_path_namespaceObject.isAbsolute(line)) {
35263+ debug_log(`is_project_file: checking line:${line} and prefix:${prefix} -> ${line.startsWith(prefix)}`);
3526335264 return line.startsWith(prefix);
3526435265 }
3526535266
@@ -35281,6 +35282,8 @@ function process_compile_output() {
3528135282 var num_warnings = 0;
3528235283 var num_errors = 0;
3528335284
35285+ debug_log(`process_compile_output: prefix_dir=${prefix_dir} exclude_dir=${exclude_dir} compiler=${compiler}`);
35286+
3528435287 const splitLines = str => str.split(/\r?\n/);
3528535288 const initialList = splitLines(compile_result).map(line => line.trimStart());
3528635289 initialList.forEach(function (part, index) {
@@ -35292,12 +35295,12 @@ function process_compile_output() {
3529235295 uniqueLines.forEach(line => {
3529335296 line = make_dir_universal(line).replace(prefix_dir, "");
3529435297
35295- debug_log(`Checking line: ${line} excluded=${excluded(line, exclude_dir)} and warning/error=${check_if_valid_line(compiler, line)}`)
35296- if (!excluded(line, exclude_dir) && check_if_valid_line(compiler, line)) {
35297- debug_log(`Parsing line: ${line}`);
35298-
35298+ debug_log(`Checking line: ${line} \n\t is_project_file=${is_project_file(line, prefix_dir)} excluded=${excluded(line, exclude_dir)} and warning/error=${check_if_valid_line(compiler, line)}`)
35299+ if (is_project_file(line, prefix_dir) && !excluded(line, exclude_dir) && check_if_valid_line(compiler, line)) {
3529935300 const [file_path, file_line_start, file_line_end, type] = get_line_info(compiler, line);
3530035301
35302+ debug_log(`Line info: file_path= ${file_path} file_line_start=${file_line_start} file_line_end=${file_line_end} type=${type}`);
35303+
3530135304 // warning/error description
3530235305 const color_mark = type == "error" ? "-" : "!";
3530335306 type == "error" ? num_errors++ : num_warnings++;
0 commit comments