dprint hangs sometimes
sjudd opened this issue · comments
Version: 0.41.0
We run dprint using subprocess in a python script it Github's CLI. I've noticed a couple of times that the subprocess command is hung waiting on dprint.
When I ran strace on dprint on the CLI machine it seems like it's stuck waiting on a lock:
strace: Process 134553 attached
futex(0x557af2f22b00, FUTEX_WAIT_BITSET_PRIVATE, 11, NULL, FUTEX_BITSET_MATCH_ANY
) = ?
I wish I had better repro steps or more detail. Happy to try other things if there's any useful debugging information to provide.
What does your dprint.json config look like? Can you upgrade to dprint 0.45 and upgrade all your plugins (dprint config update
)? It might be fixed in the latest release. Also, maybe try running with the --verbose
flag?
I'll try 0.45.0
. The dprint config looks like this:
{
"includes": ["**/*.*"],
"excludes": [
// A bunch of internal packages
],
"prettier": {
"proseWrap": "always"
},
"plugins": [
"https://plugins.dprint.dev/prettier-0.27.0.json@3557a62b4507c55a47d8cde0683195b14d13c41dda66d0f0b0e111aed107e2fe"
]
}
Thanks, I appreciate the help!
It might have been fixed by dprint/dprint-plugin-prettier#74