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

Running the CLI inside of a Github action triggers an stdin warning #14

Open
janpieterz opened this issue Jun 26, 2024 · 8 comments
Open
Labels
bug Something isn't working needs more info

Comments

@janpieterz
Copy link

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).

@janpieterz
Copy link
Author

janpieterz commented Jun 26, 2024

Looks like this pull request fixes running it - based off of this GitHub Actions thread.

@mareksuscak
Copy link

mareksuscak commented Aug 7, 2024

I'm seeing this on my computer as of the last alpha version update.

@fabiospampinato fabiospampinato added the bug Something isn't working label Sep 1, 2024
@fabiospampinato
Copy link
Collaborator

Does anyone have a repro that I can try locally? 🤔 "npx prettier --write ." doesn't do it for me.

@fabiospampinato
Copy link
Collaborator

This commit should fix it in the next release.

@mareksuscak
Copy link

@fabiospampinato happy to help test this fix. Is there a pre-release available on npm yet?

@fabiospampinato
Copy link
Collaborator

@mareksuscak not yet, but I've asked the maintainers to make a new release, it shouldn't take too long.

@fabiospampinato
Copy link
Collaborator

@mareksuscak alpha10 just got released

@fabiospampinato
Copy link
Collaborator

@mareksuscak could you check if this fixes the issue for you? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs more info
Projects
None yet
Development

No branches or pull requests

3 participants