Running the CLI inside of a Github action triggers an stdin warning
See the run here.
Run npx prettier --write . Error: UndefinedParserError: No parser could be inferred for file "stdin". Error: Process completed with exit code 1.
Looks like something is falsy around this detection of TTY on GitHub runners (we've ran into other odd issues with that but I am struggling to find a quick fix).
Looks like this pull request fixes running it - based off of this GitHub Actions thread.
I'm seeing this on my computer as of the last alpha version update.
Does anyone have a repro that I can try locally? 🤔 "npx prettier --write ." doesn't do it for me.
This commit should fix it in the next release.
@fabiospampinato happy to help test this fix. Is there a pre-release available on npm yet?
@mareksuscak not yet, but I've asked the maintainers to make a new release, it shouldn't take too long.
@mareksuscak alpha10 just got released
@mareksuscak could you check if this fixes the issue for you? Thanks.
@fabiospampinato alpha10 works for us (on GitHub runner) 🎉
Awesome, thanks for confirming 👍