vite-plugin-rescript icon indicating copy to clipboard operation
vite-plugin-rescript copied to clipboard

`vitest run` failed with `SIGTERM` signal

Open cometkim opened this issue 9 months ago • 2 comments

vitest run is failing here:

https://github.com/cometkim/rescript-vitest/actions/runs/15218765005/job/42810167426

>>>> Finish compiling 39 mseconds
    at getFinalError (file:///home/cometkim/Workspace/src/github.com/cometkim/rescript-vitest/node_modules/execa/lib/return/final-error.js:6:9)
    at makeError (file:///home/cometkim/Workspace/src/github.com/cometkim/rescript-vitest/node_modules/execa/lib/return/result.js:108:16)
    at getAsyncResult (file:///home/cometkim/Workspace/src/github.com/cometkim/rescript-vitest/node_modules/execa/lib/methods/main-async.js:168:4)
    at handlePromise (file:///home/cometkim/Workspace/src/github.com/cometkim/rescript-vitest/node_modules/execa/lib/methods/main-async.js:151:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
  shortMessage: 'Command was killed with SIGTERM (Termination): rescript build -with-deps -w',
  command: 'rescript build -with-deps -w',
  escapedCommand: 'rescript build -with-deps -w',

Even the compilation succeeded.

I think the command should not use -w flag on vitest run.

cometkim avatar May 23 '25 20:05 cometkim

Hi @cometkim , thank you for reporting the issue. I'll look into it.

jihchi avatar Jun 10 '25 05:06 jihchi

Hi, same issue here, had to disable the plugin in test env.

I think the command should not use -w flag on vitest run.

I second this!

lucas-teks avatar Nov 01 '25 22:11 lucas-teks