`compiler-version` does not work with default value
See original GitHub issueReproduction:
pragma solidity ^0.4.0;
contract Foo {}
{
"rules": { "compiler-version": "error" }
}
Expected
Use default value for the compiler version (^0.5.8
)
Result
1:1 error Compiler version ^0.4.0 does not satisfy the r semver requirement compiler-version
Adding square bracket to the rule ("compiler-version": ["error"]
) works as expected.
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
`compiler-version` does not work with default value
compiler-version ` does not work with default value.
Read more >How do I fix the "compilerVersion" IIS error? - Stack Overflow
I had a similar problem and had to tell ASP.NET in configuration to use the 3.5 compiler as follows by modifying Web.config ....
Read more >Maven Compiler plugin - Apache Maven
See this guide for more information. Default value is: javac . compilerVersion, String, 2.0, Version of the compiler to use, ex.
Read more >Setup Default Arm Compiler Version - µVision User's Guide
By disabling cookies, some features of the site will not work. Accept and hide this message. Developing on Arm.
Read more >Configuration — waffle documentation - Read the Docs
Setting Solidity compiler version¶. See compilerVersion. Usage with Truffle¶. Waffle output should be compatible with Truffle by default.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is a bug; I wish I knew enough to fix it. This:
pragma solidity ^0.8.7;
yieldssimple_storage.sol:2:1: Error: Compiler version ^0.8.7 does not satisfy the r semver requirement
but this:pragma solidity ^0.8.7.0;
will not throw an error.just add the compiler version to .solhint.json
also, are you sure you want to run 0.4.0 solidity version in 2020/2021?