Comments (4)
Hi @dimalinux
--plugin=prettier-plugin-solidity
should be enough, can you try?
from prettier-plugin-solidity.
prettier 3.0.0
no longer loads external plugins automatically, have a look at the release notes.
This means you have to declare it either in the command line, configuration file, or using the plugins
option in the API. Here is the documentation. Here is an example.
No new release required.
The PR that you mentioned contains (among other things like testing and CI) the changes for the README to reflect these changes.
from prettier-plugin-solidity.
Thanks! For anyone else having the same issue. If you installed prettier and prettier-plugin-solidity via npm, you can add this flag to fix the issue:
--plugin="$(npm config get prefix)/lib/node_modules/prettier-plugin-solidity/src/index.js"
from prettier-plugin-solidity.
That was the first way I tried. It couldn't find the plugin. In case it is part of the puzzle, my NPM install directory is configured like this (bash on Linux): https://github.com/sindresorhus/guides/blob/main/npm-global-without-sudo.md
prettier
is in ${HOME}/.npm-packages/bin/prettier
and the plugin is in ${HOME}/.npm-packages/lib/node_modules/prettier-plugin-solidity/
from prettier-plugin-solidity.
Related Issues (20)
- avoid int to int256 expanding when using vscode HOT 1
- formatting an empty struct adds an invalid semicolon in body
- Add support for named parameters in mappings HOT 1
- Unnecessary blank line added HOT 5
- Add support for user-defined operators
- Function declarations dont follow style guide any longer HOT 2
- Investigate CI false negatives HOT 1
- Problem with formatting when comment before contract HOT 3
- This e-notation broke formatting HOT 2
- Names in mappings (Solidity 0.8.18) gives an error Error: extraneous input 'loanAddress' expecting '=>' HOT 2
- Unwanted line wrap in if/else conditions without curly brackets HOT 4
- Unnecessary grouping of operands HOT 2
- Add support for `prettier` `3.0` HOT 4
- Feature Request: Sorted Imports HOT 5
- Incompatible with Prettier 3 HOT 3
- Option to disable new line spacing between function in interface
- Error using prettier-plugin-solidity with Vite and Monaco HOT 6
- [BUG] __dirname is not defined HOT 3
- "Format on Save" and "Format Document" are broken with the latest VS Code HOT 9
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-plugin-solidity.