question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support v0.8.4 custom errors

See original GitHub issue

See the announcement article for the new custom error syntax.

For the following code:

error SomeError();

contract Greeter {
    function throwError() external pure {
        revert SomeError();
    }
}

I get this error in VSCode:

Linter: Parse error: missing ‘=’ at ‘(’ [undefined]

This is in spite of me using the latest version of solhint (3.3.6), which has recently added support for solidity v0.8.4 custom errors. Related thread: https://github.com/protofire/solhint/issues/289.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
juanfranblancocommented, May 31, 2021

Should be included in the latest now, let me know how it goes.

1reaction
juanfranblancocommented, May 30, 2021

Thanks @paulrberg. Now 2 issues, one i have not updated solhint to the latest and two i need to modify the parser to allow for the new syntax.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support v0.8.4 custom errors · Issue #289 · protofire/solhint
Hey Paul, I just published solhint@3.3.5 which uses the latest version of the solidity parser and shouldn't throw this error. Please let me...
Read more >
Solidity v0.8.4 is here - Adds custom structured errors and more!
v0.8.4 adds custom structured errors, bytes.concat(...) , allows more flexible configuration of the SMTChecker and fixes a bug in the Solidity ...
Read more >
Support for Solidity v0.8.4 custom errors : r/etherscan - Reddit
v0.8.4 custom errors are a game changer for Solidity - they make it easier to work with errors, more gas efficient, and more...
Read more >
Remix supports custom errors in Solidity - Medium
Remix IDE now supports Solidity v0.8.4 including Custom Errors. With Solidity v0.8.4, comes custom errors — where an error message can ...
Read more >
Paul Razvan Berg on Twitter: "Feature request for @etherscan: add ...
add support for Solidity v0.8.4 custom errors. That is, display the name of the custom error that made the tx revert. It's becoming...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found