This repo can be used to reproduce a bug that manifests when using vscode-elm while running elm-test --watch
.
These steps assume you have elm
and elm-test
available on your $PATH.
-
clone this repo and cd into the
application
folder -
elm-test
-
observe that the test suite is okay
-
elm-test --watch
-
observe that that test suite is still okay
-
leave the watch running, and in another terminal, run this command which will touch a test file and immediatly
make
it:touch tests/TestParp.elm; elm-test make
-
observe that it's still all okay
Now it gets good:
-
kill the test runner
-
cd ../package
-
elm-test --watch
-
observe that on the first run, test suite is still okay
-
leave the watch running, and in another terminal, run this command which will touch a test file and immediatly
make
it:touch tests/TestParp.elm; elm-test make
-
Boom
EXPECTED: the test suite should re-run as above
ACTUAL: an error from Elm about missing packages??
TestParp.elm changed. Rebuilding! -- MISSING DEPENDENCIES ----------------------------------------------- elm.json Your elm.json is missing some "indirect" dependencies: "elm/url": "1.0.0" "elm/virtual-dom": "1.0.2" This usually means you are editing elm.json by hand. It is much more reliable to use the elm install command instead. Compilation failed while attempting to build /home/ndc/git/elm-parp/package/tests/TestParp.elm Watching for changes...
This simulates what happens when vscode-elm attempt to elm-test make
a test file right after saving.