Comments (7)
I'll close this issue as completed then. Feel free to reopen it if something else arises.
from prettier-plugin-solidity.
This is very weird,
I cloned the repo, and installed the dependencies using pnpm install
and when I ran pnpm prettier:fix
, the output is much larger than yours, not only containing .sol
packages but even .js
and .json
files which are also missing in your output.
> [email protected] prettier:fix /Users/.../snekmate
> npx prettier -w **/*.{md,sol,js,json,yml,yaml}
.github/pull_request_template.md 15ms (unchanged)
CHANGELOG.md 37ms (unchanged)
CONTRIBUTING.md 10ms (unchanged)
GUIDELINES.md 14ms (unchanged)
README.md 15ms (unchanged)
SECURITY.md 2ms (unchanged)
lib/utils/VyperDeployer.sol 103ms (unchanged)
test/auth/AccessControl.t.sol 228ms (unchanged)
test/auth/interfaces/IAccessControlExtended.sol 3ms (unchanged)
test/auth/interfaces/IOwnable.sol 5ms (unchanged)
test/auth/interfaces/IOwnable2Step.sol 1ms (unchanged)
test/auth/Ownable.t.sol 36ms (unchanged)
test/auth/Ownable2Step.t.sol 71ms (unchanged)
test/extensions/ERC2981.t.sol 175ms (unchanged)
test/extensions/ERC4626.t.sol 348ms (unchanged)
test/extensions/interfaces/IERC2981Extended.sol 2ms (unchanged)
test/extensions/interfaces/IERC4626Extended.sol 1ms (unchanged)
test/extensions/mocks/ERC20ExcessDecimalsMock.sol 1ms (unchanged)
test/tokens/ERC1155.t.sol 768ms (unchanged)
test/tokens/ERC20.t.sol 248ms (unchanged)
test/tokens/ERC721.t.sol 414ms (unchanged)
test/tokens/interfaces/IERC1155Extended.sol 1ms (unchanged)
test/tokens/interfaces/IERC20Extended.sol 1ms (unchanged)
test/tokens/interfaces/IERC4494.sol 0ms (unchanged)
test/tokens/interfaces/IERC721Extended.sol 1ms (unchanged)
test/tokens/mocks/ERC1155ReceiverMock.sol 5ms (unchanged)
test/tokens/mocks/ERC721ReceiverMock.sol 5ms (unchanged)
test/utils/Base64.t.sol 50ms (unchanged)
test/utils/BatchDistributor.t.sol 87ms (unchanged)
test/utils/Create2Address.t.sol 18ms (unchanged)
test/utils/CreateAddress.t.sol 124ms (unchanged)
test/utils/ECDSA.t.sol 80ms (unchanged)
test/utils/EIP712DomainSeparator.t.sol 24ms (unchanged)
test/utils/interfaces/IBase64.sol 1ms (unchanged)
test/utils/interfaces/IBatchDistributor.sol 1ms (unchanged)
test/utils/interfaces/ICreate2Address.sol 1ms (unchanged)
test/utils/interfaces/ICreateAddress.sol 0ms (unchanged)
test/utils/interfaces/IECDSA.sol 1ms (unchanged)
test/utils/interfaces/IEIP712DomainSeparator.sol 0ms (unchanged)
test/utils/interfaces/IMath.sol 2ms (unchanged)
test/utils/interfaces/IMerkleProofVerification.sol 1ms (unchanged)
test/utils/interfaces/IMulticall.sol 1ms (unchanged)
test/utils/interfaces/ISignatureChecker.sol 1ms (unchanged)
test/utils/Math.t.sol 143ms (unchanged)
test/utils/MerkleProofVerification.t.sol 118ms (unchanged)
test/utils/mocks/Create2Impl.sol 4ms (unchanged)
test/utils/mocks/ERC1271MaliciousMock.sol 1ms (unchanged)
test/utils/mocks/ERC1271WalletMock.sol 2ms (unchanged)
test/utils/mocks/ERC20Mock.sol 2ms (unchanged)
test/utils/mocks/EtherReceiver.sol 1ms (unchanged)
test/utils/mocks/MockCallee.sol 3ms (unchanged)
test/utils/Multicall.t.sol 86ms (unchanged)
test/utils/SignatureChecker.t.sol 64ms (unchanged)
.eslintrc.js 16ms (unchanged)
test/utils/scripts/elements.js 2ms (unchanged)
test/utils/scripts/generate-bad-multiproof-leaves.js 5ms (unchanged)
test/utils/scripts/generate-bad-multiproof-proof-flags.js 3ms (unchanged)
test/utils/scripts/generate-bad-multiproof.js 2ms (unchanged)
test/utils/scripts/generate-bad-proof.js 2ms (unchanged)
test/utils/scripts/generate-leaf.js 1ms (unchanged)
test/utils/scripts/generate-multiproof-leaves.js 2ms (unchanged)
test/utils/scripts/generate-multiproof-proof-flags.js 2ms (unchanged)
test/utils/scripts/generate-multiproof.js 2ms (unchanged)
test/utils/scripts/generate-no-such-leaf.js 2ms (unchanged)
test/utils/scripts/generate-proof-no-such-leaf.js 2ms (unchanged)
test/utils/scripts/generate-proof.js 2ms (unchanged)
test/utils/scripts/generate-root-no-such-leaf.js 1ms (unchanged)
test/utils/scripts/generate-root.js 1ms (unchanged)
test/utils/scripts/multiproof-bad-elements.js 0ms (unchanged)
test/utils/scripts/multiproof-bad-indices.js 1ms (unchanged)
test/utils/scripts/multiproof-indices.js 1ms (unchanged)
.solhint.json 1ms (unchanged)
package.json 0ms (unchanged)
renovate.json 0ms (unchanged)
.github/dependabot.yml 9ms (unchanged)
.github/FUNDING.yml 1ms (unchanged)
.github/ISSUE_TEMPLATE/bug_report.yml 4ms (unchanged)
.github/ISSUE_TEMPLATE/feature_request.yml 2ms (unchanged)
.github/workflows/checks.yml 5ms (unchanged)
.github/workflows/publish-npm.yml 4ms (unchanged)
.github/workflows/publish-pypi.yml 3ms (unchanged)
.github/workflows/publish-test-pypi.yml 3ms (unchanged)
.github/workflows/test-contracts.yml 6ms (unchanged)
.prettierrc.yml 1ms (unchanged)
ape-config.yaml 1ms (unchanged)
pnpm-lock.yaml 126ms (unchanged)
from prettier-plugin-solidity.
I'm running:
- macOS
14.2.1
- pnpm
8.14.1
from prettier-plugin-solidity.
@Janther I quickly talked to @fvictorio and he thinks it's a shell issue and how the glob pattern is interpreted. I will let him comment here.
PS: I can't reproduce this behaviour locally or @fvictorio. So it must be somehow OS and config-dependent.
from prettier-plugin-solidity.
https://medium.com/@jakubsynowiec/you-should-always-quote-your-globs-in-npm-scripts-621887a2a784
from prettier-plugin-solidity.
TL;DR glob syntax that works across all OSes (at least Windows and Linux) after testing:
prettier
=>'...'
solhint
=>'...'
eslint
=>\"...\"
forge
(--match-path
) =>\"...\"
Conclusion: I hate computers!
from prettier-plugin-solidity.
I'll close this issue as completed then. Feel free to reopen it if something else arises.
Sure. So the most stable solution to use across all OSes (i.e. Windows, Linux, Mac) is to use \"...\"
.
from prettier-plugin-solidity.
Related Issues (20)
- 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
- plugin broken with 3.0.0 prettier release 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
- Feature request: Enforce all blocks with brackets as optional configuration
- named-parameters-mapping error below solidity version 0.8.18 HOT 2
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.