itemisCREATE / solidity-ide

Solidity plugin for Eclipse
Eclipse Public License 1.0
87 stars 25 forks source link

Make Solidity version configurable #228

Open esocode opened 5 years ago

esocode commented 5 years ago

It seems that a "default" version of Solidity is hardcoded to 0.4.25 in the plugin, at least I could not find a way to configure it. After switching files to Solidity 0.5.1 I get a warning "Solidity version does not match the default version (^0.4.25)". It would be nice if it would be possible to at least suppress this warning or maybe even remove it altogether.

Unfortunately the Solidity 0.5.x compilers seem not to be backwards compatible. Therefore to support multiple Solidity versions it would also be necessary to be able to configure different solc binaries for certain versions.

flantony commented 5 years ago

Thank you @esocode for reporting this issue.

Currently there is the option to configure your own compiler binaries via: Window -> Preference -> Solidity -> Compiler -> Path to solc

So at least you can use whatever binary you want, BUT since Solidity seams not to plan for backward compatibility, we are considering to drop 0.4.x support after switching to 0.5.1 (soon). The warning will change to something like "Minimal supported version is 0.5.0" .

However I guess we should somehow ensure that the version of the compiler the user provides is checked.