From b14175e32c282086637061576c9b250017363e97 Mon Sep 17 00:00:00 2001 From: Yu Matsuzawa Date: Mon, 19 Nov 2018 13:15:14 +0900 Subject: [PATCH] [#131] Pass relative paths to elm-test in win32 --- lib/elm-make-runner.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/elm-make-runner.js b/lib/elm-make-runner.js index dde7e05..c378b94 100644 --- a/lib/elm-make-runner.js +++ b/lib/elm-make-runner.js @@ -88,7 +88,13 @@ export default class ElmMakeRunner { } } } else { - filePathsToCompile = [editorFilePath]; + if (isTestFilePath && process.platform === 'win32') { + // Workaround for https://github.com/halohalospecial/atom-elmjutsu/issues/131#issuecomment-429445645 + const relativeEditorFilePath = path.relative(projectDirectory, editorFilePath); + filePathsToCompile = [relativeEditorFilePath]; + } else { + filePathsToCompile = [editorFilePath]; + } } const outputPath = '/dev/null'; // TODO: Make this configurable (elmjutsu-config.json).