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

Error: Unsupported language version '0.8.27' #1074

Closed
pcaversaccio opened this issue Sep 7, 2024 · 2 comments · Fixed by #1075
Closed

Error: Unsupported language version '0.8.27' #1074

pcaversaccio opened this issue Sep 7, 2024 · 2 comments · Fixed by #1075

Comments

@pcaversaccio
Copy link
Contributor

For repro use my repo here: https://github.com/pcaversaccio/hardhat-project-template-ts

I updated the Solidity version to 0.8.27 via pcaversaccio/hardhat-project-template-ts@f44a035.

The hardhat tests currently fail due to your package not supporting the Solidity version 0.8.27: npx hardhat test:

An unexpected error occurred:
Error: Unsupported language version '0.8.27'.
    at tryRemoveNonStructNatSpec (/home/runner/work/hardhat-project-template-ts/hardhat-project-template-ts/node_modules/.pnpm/@[email protected]/node_modules/@openzeppelin/upgrades-core/src/utils/make-namespaced.ts:[18](https://github.com/blokk-studio/hardhat-project-template-ts/actions/runs/10752994779/job/29821936631#step:10:19)3:22)
    at makeNamespacedInput (/home/runner/work/hardhat-project-template-ts/hardhat-project-template-ts/node_modules/.pnpm/@[email protected]/node_modules/@openzeppelin/upgrades-core/src/utils/make-namespaced.ts:158:28)
    at OverriddenTaskDefinition._action (/home/runner/work/hardhat-project-template-ts/hardhat-project-template-ts/node_modules/.pnpm/@[email protected]_@[email protected][email protected]_buff_b6fk7igjaxyvtwxdu22yysbakm/node_modules/@openzeppelin/hardhat-upgrades/src/index.ts:102:31)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Environment._runTaskDefinition (/home/runner/work/hardhat-project-template-ts/hardhat-project-template-ts/node_modules/.pnpm/[email protected][email protected][email protected]_@[email protected][email protected]__typescri_7iajnuxsvogcbxkb6ol3j2urla/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14)
    at async Environment.run (/home/runner/work/hardhat-project-template-ts/hardhat-project-template-ts/node_modules/.pnpm/hardhat@2.[22](https://github.com/blokk-studio/hardhat-project-template-ts/actions/runs/10752994779/job/29821936631#step:10:23)[email protected][email protected]_@[email protected][email protected]__typescri_7iajnuxsvogcbxkb6ol3j2urla/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14)
    at async SimpleTaskDefinition.action (/home/runner/work/hardhat-project-template-ts/hardhat-project-template-ts/node_modules/.pnpm/[email protected][email protected][email protected]_@[email protected][email protected]__typescri_7iajnuxsvogcbxkb6ol3j2urla/node_modules/hardhat/src/builtin-tasks/compile.ts:1024:37)
    at async Environment._runTaskDefinition (/home/runner/work/hardhat-project-template-ts/hardhat-project-template-ts/node_modules/.pnpm/[email protected][email protected][email protected]_@[email protected][email protected]__typescri_7iajnuxsvogcbxkb6ol3j2urla/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14)
    at async Environment.run (/home/runner/work/hardhat-project-template-ts/hardhat-project-template-ts/node_modules/.pnpm/[email protected][email protected][email protected]_@[email protected][email protected]__typescri_7iajnuxsvogcbxkb6ol3j2urla/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14)
    at async /home/runner/work/hardhat-project-template-ts/hardhat-project-template-ts/node_modules/.pnpm/[email protected][email protected][email protected]_@[email protected][email protected]__typescri_7iajnuxsvogcbxkb6ol3j2urla/node_modules/hardhat/src/builtin-tasks/compile.ts:464:28 {
  code: 'GenericFailure'
}
 ELIFECYCLE  Command failed with exit code 1.
Error: Process completed with exit code 1.

I don't use your package at all, but it's required by the @tenderly/hardhat-tenderly package unfortunately. I haven't debugged what is triggering exactly this issue, but would appreciate a patch :)

@pcaversaccio pcaversaccio changed the title Error: Unsupported language version 0.8.27` Error: Unsupported language version '0.8.27' Sep 7, 2024
@ericglau
Copy link
Member

ericglau commented Sep 7, 2024

Thanks for reporting. This occurs because the Slang dependency introduced in #1051 (in release @openzeppelin/[email protected]) doesn't yet support 0.8.27. We will fix this to avoid this code path for versions that Slang does not recognize.

@ericglau
Copy link
Member

This is fixed in @openzeppelin/[email protected]

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 a pull request may close this issue.

2 participants