-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
When I save a file after a change, I fairly frequently get a crash message from elm-test-rs --watch instead of test output. The workaround is just to save again — elm-test-rs recovers and runs the tests as expected.
I may well have done something wonky in my setup — I'm pretty new to Elm, and very new to elm-test-rs, Lamdera, and Elm Land, which I'm trying to use together.
Here's an example crash message:
Change detected in tests/Tests.elm
==================================
node:internal/event_target:1083
process.nextTick(() => { throw err; });
^
Error: TODO in module `Runner` on line 33
The regex for replacing this Debug.todo with some real code must have failed since you see this message!
Please report this bug: https://github.com/mpizenberg/elm-test-rs/issues/new
at _Debug_crash (/Users/yarrow/elm/convergence/elm-stuff/tests-0.19.1/js/Runner.elm.js:498:10)
at /Users/yarrow/elm/convergence/elm-stuff/tests-0.19.1/js/Runner.elm.js:254:3
at $author$project$Runner$checkHelperReplaceMe___ (/Users/yarrow/elm/convergence/elm-stuff/tests-0.19.1/js/Runner.elm.js:3325:5)
at /Users/yarrow/elm/convergence/elm-stuff/tests-0.19.1/js/Runner.elm.js:3990:4
at Object.<anonymous> (/Users/yarrow/elm/convergence/elm-stuff/tests-0.19.1/js/Runner.elm.js:5194:5)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
Emitted 'error' event on Worker instance at:
at [kOnErrorMessage] (node:internal/worker:326:10)
at [kOnMessage] (node:internal/worker:337:37)
at MessagePort.<anonymous> (node:internal/worker:232:57)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:807:20)
at exports.emitMessage (node:internal/per_context/messageport:23:28)
Node.js v20.8.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels