GithubHelp home page GithubHelp logo

Comments (7)

Janther avatar Janther commented on June 2, 2024 1

I'll close this issue as completed then. Feel free to reopen it if something else arises.

from prettier-plugin-solidity.

Janther avatar Janther commented on June 2, 2024

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.

Janther avatar Janther commented on June 2, 2024

I'm running:

  • macOS 14.2.1
  • pnpm 8.14.1

from prettier-plugin-solidity.

pcaversaccio avatar pcaversaccio commented on June 2, 2024

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

pcaversaccio avatar pcaversaccio commented on June 2, 2024

https://medium.com/@jakubsynowiec/you-should-always-quote-your-globs-in-npm-scripts-621887a2a784

from prettier-plugin-solidity.

pcaversaccio avatar pcaversaccio commented on June 2, 2024

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.

pcaversaccio avatar pcaversaccio commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.