Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pin prettier version because of breaking changes #172

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

malteish
Copy link
Collaborator

@malteish malteish commented Aug 2, 2023

Suddenly, the prettier action started to fail for no aparent reason. The error message was:

Installing prettier...
Checking plugin: prettier-plugin-solidity
Prettifying files...
Files:
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/archive/PersonalInviteOld.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/archive/PersonalInviteOld.t.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/AllowList.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/ContinuousFundraising.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/FeeSettings.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/interfaces/IFeeSettings.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/PersonalInvite.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/PersonalInviteFactory.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/Token.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/VestingWalletFactory.sol".
docs/deployment.md 59ms
docs/dev_overview.md 33ms
docs/fees.md 27ms
docs/npm_publishing.md 7ms
docs/price.md 31ms
docs/specification.md 114ms
docs/testing.md 15ms
docs/user_overview.md 45ms
docs/using_the_contracts.md 51ms
LICENSE.md 186ms
README.md 45ms
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/script/CheckToken.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/script/DeployCompany.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/script/DeployPlatform.s.sol".
script/hardhatVerifyConstructorArguments/ContinuousFundraising.js 52ms
script/hardhatVerifyConstructorArguments/TokenGoerli.js 3ms
script/hardhatVerifyConstructorArguments/TokenMainnet.js 2ms
script/hardhatVerifyConstructorArguments/VestingWallet.js 3ms

It appears prettier v3 introduces some breaking changes, so I pinned version 2.8.8. See creyD/prettier_action#124

Suddenly, the prettier action started to fail for no aparent reason.
The error message was:

```
Installing prettier...
Checking plugin: prettier-plugin-solidity
Prettifying files...
Files:
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/archive/PersonalInviteOld.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/archive/PersonalInviteOld.t.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/AllowList.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/ContinuousFundraising.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/FeeSettings.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/interfaces/IFeeSettings.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/PersonalInvite.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/PersonalInviteFactory.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/Token.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/contracts/VestingWalletFactory.sol".
docs/deployment.md 59ms
docs/dev_overview.md 33ms
docs/fees.md 27ms
docs/npm_publishing.md 7ms
docs/price.md 31ms
docs/specification.md 114ms
docs/testing.md 15ms
docs/user_overview.md 45ms
docs/using_the_contracts.md 51ms
LICENSE.md 186ms
README.md 45ms
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/script/CheckToken.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/script/DeployCompany.sol".
Error:  No parser could be inferred for file "/home/runner/work/tokenize.it-smart-contracts/tokenize.it-smart-contracts/script/DeployPlatform.s.sol".
script/hardhatVerifyConstructorArguments/ContinuousFundraising.js 52ms
script/hardhatVerifyConstructorArguments/TokenGoerli.js 3ms
script/hardhatVerifyConstructorArguments/TokenMainnet.js 2ms
script/hardhatVerifyConstructorArguments/VestingWallet.js 3ms
```

It appears prettier v3 introduces some breaking changes, so I pinned
version 2.8.8. See creyD/prettier_action#124
@malteish malteish merged commit cd680c7 into develop Aug 2, 2023
@malteish malteish deleted the feature/fixPrettierAction branch August 2, 2023 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant