Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Error: 'prettier-atom failed: No parser could be inferred for file: ...example.html' #426

Closed
BenKai3 opened this issue Jun 16, 2018 · 11 comments
Labels

Comments

@BenKai3
Copy link

BenKai3 commented Jun 16, 2018

Whenever writing JavaScript in a script tag, in an html file, the error goes off upon saving.

"prettier-atom failed: No parser could be inferred for file: ...index.html"

@robwise robwise added the bug label Jun 17, 2018
@zeusdeux
Copy link

Getting the same error when I save a script (so no extension and a shebang up top) in my editor (emacs).

@yijiaow
Copy link

yijiaow commented Jul 19, 2018

Getting the same error in Atom editor when I'm trying to save .htmlhintrc file. I already ran apm install linter-htmlhint

@yohanisgobai
Copy link

Getting the same error, But it can be solve JUST if you place ALL including the script tag on 1 Line. @BenKai3

@stclairdaniel
Copy link

Getting the same error.

@Reaver86
Copy link

Reaver86 commented Aug 8, 2018

Same error in IntelliJ, when a codecoverage report (index.html) is generated.

@hiyangguo
Copy link

🙋‍♂️

@jqn
Copy link

jqn commented Aug 16, 2018

Any fixes? this is a real bummer

@robwise
Copy link
Collaborator

robwise commented Aug 17, 2018

This should get fixed in #404 which I'm planning to release very soon

@robwise robwise closed this as completed Aug 20, 2018
@galki galki mentioned this issue Oct 11, 2018
26 tasks
@saikumar-mobinius
Copy link

saikumar-mobinius commented May 19, 2020

I am also getting same error for PHP files
[warn] Ignored unknown option { phpVersion: "7.2" }.
[warn] Ignored unknown option { trailingCommaPHP: true }.
[warn] Ignored unknown option { braceStyle: "1tbs" }.
src/Team/Type.class.php[error] No parser could be inferred for file: src/Team/Type.class.php

@drewbaker
Copy link

Got this same error with PHP today.

@mikeallbutt
Copy link

Got this same error with PHP today.

I get this error with PHP files. Prettier is working for .js files though.

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

No branches or pull requests