sass-spec icon indicating copy to clipboard operation
sass-spec copied to clipboard

Running language specs on Windows fails due to path separator differences

Open stof opened this issue 3 months ago • 0 comments

Specs involving traces (in warnings or errors) and subfolders of the spec directory (in specs of @import in directives/import/error/conflict/index and directives/import/error/not_found/parent_relative, and maybe some equivalent test for @use if they exist) are failing when running them on Windows because the relative path shown in the stack trace involves a path separator, which is \ instead of / on Windows.

Maybe the runner could normalize path separators in the warning/error output before comparing it to the expected state. But it might cause other issues (or hide them if outputting broken code using / in a place where a \ was expected) if we have \ for other reason than a path separator, so it might require a more advanced normalization logic.

stof avatar Sep 12 '25 12:09 stof