From 2ac8eeb16decbe212e08b738252ffb1659748cfd Mon Sep 17 00:00:00 2001 From: Troy Sornson Date: Sat, 23 Nov 2024 22:27:46 -0700 Subject: [PATCH] Good ol' print debugging for windows CI failure --- src/compiler/crystal/tools/typer.cr | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/compiler/crystal/tools/typer.cr b/src/compiler/crystal/tools/typer.cr index de24d3a0c375..063c26cd6fe0 100644 --- a/src/compiler/crystal/tools/typer.cr +++ b/src/compiler/crystal/tools/typer.cr @@ -500,16 +500,18 @@ module Crystal end def_locs = @def_locators.map { |p| File.expand_path(p) } - @dir_locators = def_locs.reject(&.ends_with?(".cr")).select { |p| p.count(":") == 0 && !p.ends_with?(".cr") } - @file_locators = def_locs.select(&.ends_with?(".cr")).select { |p| p.ends_with?(".cr") } - @line_locators = def_locs.select { |d| d.count(":") == 1 } - @line_and_column_locators = def_locs.select { |d| d.count(":") == 2 } + pp! @dir_locators = def_locs.reject(&.ends_with?(".cr")).select { |p| p.count(":") == 0 && !p.ends_with?(".cr") } + pp! @file_locators = def_locs.select(&.ends_with?(".cr")).select { |p| p.ends_with?(".cr") } + pp! @line_locators = def_locs.select { |d| d.count(":") == 1 } + pp! @line_and_column_locators = def_locs.select { |d| d.count(":") == 2 } end def visit(node : Crystal::Def) return false unless loc = node.location return false unless loc.filename && loc.line_number && loc.column_number + pp! loc if node_in_def_locators(loc) + puts "Accepted" all_defs << node files << loc.filename.to_s end