You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the latest MacOS version and I have solidity compiler downloaded on my terminal (0.5.16+) and the text editor itself shows that it can support 0.4.17+ version. When I mention the latest version but it gives me the mistake that it is not supported. I've never encountered this mistake before and written codes in solidity 0.6.9
Error:
{ "resource": "/Users/atatekeli/Desktop/Programlama Dilleri/ETH Solidity/web3js/Hello.sol", "owner": "generated_diagnostic_collection_name#1", "severity": 8, "message": "/Users/atatekeli/Desktop/Programlama Dilleri/ETH Solidity/web3js/Hello.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.17+commit.bdeb9e52.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version\npragma solidity ^0.7.0;\n^---------------------^\n", "startLineNumber": 1, "startColumn": 2, "endLineNumber": 1, "endColumn": 2 }
{ "resource": "/Users/atatekeli/Desktop/Programlama Dilleri/ETH Solidity/web3js/Hello.sol", "owner": "generated_diagnostic_collection_name#0", "severity": 8, "message": "Source file requires different compiler version (current compiler is 0.4.17+commit.bdeb9e52.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version", "source": "solc", "startLineNumber": 1, "startColumn": 1, "endLineNumber": 1, "endColumn": 24 }
These texts are being shared for you guys to evaluate what's going wrong. All help will be appreciated
Hi @Killpit just use the context menu to put the latest as follows:
The plugin will not pick up your terminal installation, check the readme for further options. But this will solve most of your problems. Note the difference between workspace (your current project) and global (all the vscode solidity projects)
I have the latest MacOS version and I have solidity compiler downloaded on my terminal (0.5.16+) and the text editor itself shows that it can support 0.4.17+ version. When I mention the latest version but it gives me the mistake that it is not supported. I've never encountered this mistake before and written codes in solidity 0.6.9
Error:
{ "resource": "/Users/atatekeli/Desktop/Programlama Dilleri/ETH Solidity/web3js/Hello.sol", "owner": "generated_diagnostic_collection_name#1", "severity": 8, "message": "/Users/atatekeli/Desktop/Programlama Dilleri/ETH Solidity/web3js/Hello.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.17+commit.bdeb9e52.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version\npragma solidity ^0.7.0;\n^---------------------^\n", "startLineNumber": 1, "startColumn": 2, "endLineNumber": 1, "endColumn": 2 }
{ "resource": "/Users/atatekeli/Desktop/Programlama Dilleri/ETH Solidity/web3js/Hello.sol", "owner": "generated_diagnostic_collection_name#0", "severity": 8, "message": "Source file requires different compiler version (current compiler is 0.4.17+commit.bdeb9e52.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version", "source": "solc", "startLineNumber": 1, "startColumn": 1, "endLineNumber": 1, "endColumn": 24 }
These texts are being shared for you guys to evaluate what's going wrong. All help will be appreciated
Here's the source code
pragma solidity ^0.6.9;
contract Voting{
struct Voters{
uint weight;
bool hasVoted;
}
struct Candidates{
string name;
uint voteCount;
}
}
The text was updated successfully, but these errors were encountered: