I keep getting this error/warning on my vscode when I emit events and build constructors.

enter image description here


enter image description here

After a bit of googling I understand it is something about my compiler, since solc <0.4.18 does not support these features. This thread says I have to update truffle to fix this problem. Although, I'm not using truffle at all. I have

"solidity.compileUsingRemoteVersion": "v0.4.25+commit.59dbf8f1",

on my vscode settings and on my terminal I have

> $ solc --version 
> Version: 0.4.25+commit.59dbf8f1.Linux.g++

Would appreciate any help.

  • Please try to compile your contract using solc in terminal and provide the compiler's output. Seems like VS code does not support new syntax (may be you should update it). Aug 14, 2019 at 9:11
  • 1
    It works fine. No errors. the normal outcome. There are several outputs depending on the flags, which one do you want? --ast ? --abi? --bytecode? Aug 14, 2019 at 12:40
  • Which plugin are you using in VS Code? I've Juan Blanco's solidity and it works without issues.
    – Ismael
    Aug 14, 2019 at 16:07
  • Yes, I'm using the same one. Everything works fine except for this warning. It's wired. It's like syntax checker is trying to use an older version of solc , although I don't know how to change it. Cause I trying changing the setting and it didn't fix the problem. Aug 16, 2019 at 10:20

1 Answer 1


I have had a similar error, then I realized the culprit in this case was in fact enter image description herea malfunctioning VS Code plugin not Solidity nor truffle. Please check your plugins list in VS Code and see if one of your plugins is called "Solidity Extended" by beaugunderson and disable it.

  • I was having this same problem and solidity extended was the problem Apr 28 at 17:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.