Version 16.1.0 seems to fail running "prettier --check"
envgap__lint-staged__lint-staged-1559
01 / FAILURE SIGNATURE
As reported upstream
lint-staged:getSpawnedTask Failed to kill process with pid "1054109": Error: No matching pid found at /home/hugovdm/git/sterna/functions/node_modules/pidtree/lib/pidtree.js:61:16 at /home/hugovdm/git/sterna/functions/node_modules/pidtree/lib/ps.js:40:7 at ChildProcess.<anonymous> (/home/hugovdm/git/sterna/functions/node_modules/pidtree/lib/bin.js:57:5) at ChildProcess.emit (node:events:518:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) +126ms
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
c82d30bda8c80f886bdfead2e7aa123f7337aa76- Manifest
package.json- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
lint-staged/lint-staged #1559 · read the original issue
The latest release seems to be giving me trouble when trying to run `prettier`:
```sh
$ npx lint-staged@15.5.1
✔ Backed up original state in git stash (d00f8ce)
✔ Running tasks for staged files...
✔ Applying modifications from tasks...
✔ Cleaning up temporary files...
$ npx lint-staged@16.1.0
✔ Backed up original state in git stash (7025c39)
⚠ Running tasks for staged files...
❯ lint-staged.config.mjs — 1 file
✔ *.{ts,vue,js,jsx} — 1 file
❯ * — 1 file
✖ prettier --check --ignore-unknown [FAILED]
↓ Skipped because of errors from tasks.
✔ Reverting to original state because of errors...
✔ Cleaning up temporary files...
✖ prettier --check --ignore-unknown failed without output (FAILED).
```
Here's a short extract from a run with --debug:
```
[STARTED] prettier --check --ignore-unknown
lint-staged:getSpawnedTask Failed to kill process with pid "1054109": Error: No matching pid found at /home/hugovdm/git/sterna/functions/node_modules/pidtree/lib/pidtree.js:61:16 at /home/hugovdm/git/sterna/functions/node_modules/pidtree/lib/ps.js:40:7 at ChildProcess.<anonymous> (/home/hugovdm/git/sterna/functions/node_modules/pidtree/lib/bin.js:57:5) at ChildProcess.emit (node:events:518:28) at maybeClose (node:internal/child_process:1101:16) at ChildProcess._handle.onexit (node:internal/child_process:304:5) +126ms
[FAILED] prettier --check --ignore-unknown [FAILED]
[FAILED] prettier --check --ignore-unknown [FAILED]
[COMPLETED] Running tasks for staged files...
[STARTED] Applying modifications from tasks...
[SKIPPED] Skipped because of errors from tasks.
[STARTED] Reverting to original state because of errors...
```
In the process of trying to debug this, I tried different prettier command-lines. I know `prettier --version` succeeds, at least, whereas `prettier --write` also fails.04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]