ethereum / emacs-solidity

The official solidity-mode for EMACS
GNU General Public License v3.0
206 stars 66 forks source link

unrecognised option '--add-std' error after upgrading solc to 0.4.24 #33

Closed mandarvaze closed 6 years ago

mandarvaze commented 6 years ago

I recently upgraded to solc version 0.4.24, and I have started getting the following error:

Suspicious state from syntax checker solidity-checker: Flycheck checker solidity-checker returned non-zero exit code 1, but its output contained no errors: unrecognised option '--add-std'

This option was removed in version 0.4.22 of Solidity. I found the following references regarding how other tools are affected. But I'm not sure if there is a fix/workaround for emacs-solidity

References : https://github.com/ethereum/solidity/issues/3984 https://github.com/ethereum/solidity/issues/3695

Solution seems to be "upgrade go-ethereum", but how does that help a "linter" functionality of emacs-solidity ?

LefterisJP commented 6 years ago

Hey @mandarvaze, thanks for reporting this. The emacs-solidity package needed updating to remove the argument