Comments (14)
![image](https://private-user-images.githubusercontent.com/8336744/284005816-73f40f9d-720b-4628-83f9-a01aaf271dc2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTM2MzI3NjksIm5iZiI6MTcxMzYzMjQ2OSwicGF0aCI6Ii84MzM2NzQ0LzI4NDAwNTgxNi03M2Y0MGY5ZC03MjBiLTQ2MjgtODNmOS1hMDFhYWYyNzFkYzIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDQyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA0MjBUMTcwMTA5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTQ0YjlhYTc5ZTdiOGQ5NjlkMmU3MmIxYjMxMGU1NzAxODlkZWVjMjI1ZTY4MTg2ZmFhYjBmZGE4YmY1OWFjZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.BMFSoZMEVSvgWb2DuFhRyjW6xVMa_Jp10-liuH9Yexc)
Seems like a prettier
core bug?
from prettier.
I'll take a look.
from prettier.
Not bug. Missed plugins
https://github.com/Avansai/next-multilingual/blob/main/example/.prettierrc.yaml
from prettier.
$ npx prettier --find-config-pah example/.env.development
example/.prettierrc.yaml
from prettier.
I just upgraded to Prettier 3.1.0 this morning and got this new error:
When I downgrade to Prettier 3.0.3 the problem dissapears.
@fisker But it seems a regression, what means config resolution changed.
from prettier.
Maybe a bug was fixed accidentally.
from prettier.
Oh, caused by prettier/prettier#15433, in pre-v3.1 we doesn't format that file at all.
from prettier.
And that's a bug you rasied.. prettier/prettier#15079 😄
from prettier.
OK, last thing is that the error message is a bit confusing? It successfully understands that it should use sh
as the parser what means prettier-plugin-sh
is already loaded correctly.
from prettier.
No, the plugin is not loaded, the config file tells prettier to use that parser, https://github.com/Avansai/next-multilingual/blob/c48503df8062304e215919a9ea2f04476d9b253a/example/.prettierrc.yaml#L25
from prettier.
Hah, that makes sense then! Thanks for your explanation! Close due to answered as above then.
from prettier.
Thanks @fisker and @JounQin - I'm not sure why it was working before?
I thought there was some sort of inheritance but maybe this is gone? in any case adding the plugins
section in the example
prettier config seems to solve the issue.
from prettier.
I'm not sure why it was working before?
Oh, caused by prettier/prettier#15433, in pre-v3.1 we doesn't format that file at all.
Please read the conversation carefully.
from prettier.
I think I get it - thanks for looking into this!
from prettier.
Related Issues (20)
- [prettier-plugin-sh] Fails in Dockerfile using "RUN if" HOT 4
- [prettier-plugin-sql] Can I use prettier-plugin-sql with prettier standalone API? HOT 1
- [prettier-plugin-sql] enable SQLite HOT 1
- prettier-sql: How to configure it? HOT 1
- [prettier-plugin-sql] export supported sql dialect names HOT 6
- [prettier-plugin-sql] prefix option names to prevent name collisions HOT 6
- prettier-plugin-sql: Update to sql-formatter@14? HOT 2
- [prettier-plugin-toml] unable to format `toml` programmatically in an es module HOT 6
- prettier-plugin-sql: Allow `dialect` as alternative to `language` HOT 6
- Possibility of updating the license again? HOT 2
- prettier-plugin-sql: Upgrade to sql-formatter@15 HOT 1
- Error with cjs version of prettier-plugin-sql `Cannot read properties of undefined (reading 'parse')` HOT 7
- Idea: `eslint` as a plugin for `prettier` HOT 1
- prettier-plugin-sh fails to format standard VisualStudio.gitignore file HOT 1
- [prettier-plugin-sh] Incorrectly splits RUN command HOT 5
- prettier-plugin-sh: support .nvmrc files? HOT 7
- [prettier-plugin-sh]: automatic parser detection for `.husky/*` files. HOT 1
- [warn] embeddedSqlIdentifiers is deprecated. HOT 1
- Is there an SQL Server version of prettier-plugin-sql plugin? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettier.