Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dprint hangs sometimes #825

Open
sjudd opened this issue Feb 20, 2024 · 3 comments
Open

dprint hangs sometimes #825

sjudd opened this issue Feb 20, 2024 · 3 comments

Comments

@sjudd
Copy link

sjudd commented Feb 20, 2024

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.

@dsherret
Copy link
Member

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?

@sjudd
Copy link
Author

sjudd commented Feb 20, 2024

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!

@dsherret
Copy link
Member

It might have been fixed by dprint/dprint-plugin-prettier#74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants