hardhat
hardhat copied to clipboard
unintelligible error: Internal exception in StandardCompiler::compile:
The last time I compiled, I got this error. I have 15 or so contracts in my project, and the error message is no help telling me where the error might be happening, or why, So pretty much impossible to provide minimal reproducible.
Any ideas?
Internal exception in StandardCompiler::compile: /Users/distiller/project/libsolidity/ast/Types.cpp(2231): Throw in function virtual MemberList::MemberMap solidity::frontend::StructType::nativeMembers(const solidity::frontend::ASTNode *) const
Dynamic exception type: boost::wrapexcept<solidity::langutil::InternalCompilerError>
std::exception::what:
[solidity::util::tag_comment*] =
Error HH600: Compilation failed
HardhatError: HH600: Compilation failed
at SimpleTaskDefinition.action (/Users/joshkramer/Documents/VSCodeProjects/BKopy/bkopy-embedded-contracts/node_modules/hardhat/src/builtin-tasks/compile.ts:470:15)
at async Environment._runTaskDefinition (/Users/joshkramer/Documents/VSCodeProjects/BKopy/bkopy-embedded-contracts/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
at async OverriddenTaskDefinition._action (/Users/joshkramer/Documents/VSCodeProjects/BKopy/bkopy-embedded-contracts/node_modules/@typechain/hardhat/src/index.ts:30:30)
at async Environment._runTaskDefinition (/Users/joshkramer/Documents/VSCodeProjects/BKopy/bkopy-embedded-contracts/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
at async Environment.run (/Users/joshkramer/Documents/VSCodeProjects/BKopy/bkopy-embedded-contracts/node_modules/hardhat/src/internal/core/runtime-environment.ts:131:14)
at async SimpleTaskDefinition.action (/Users/joshkramer/Documents/VSCodeProjects/BKopy/bkopy-embedded-contracts/node_modules/hardhat/src/builtin-tasks/compile.ts:1358:63)
at async Environment._runTaskDefinition (/Users/joshkramer/Documents/VSCodeProjects/BKopy/bkopy-embedded-contracts/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
at async Environment.run (/Users/joshkramer/Documents/VSCodeProjects/BKopy/bkopy-embedded-contracts/node_modules/hardhat/src/internal/core/runtime-environment.ts:131:14)
at async SimpleTaskDefinition.action (/Users/joshkramer/Documents/VSCodeProjects/BKopy/bkopy-embedded-contracts/node_modules/hardhat/src/builtin-tasks/compile.ts:1438:7)
at async Environment._runTaskDefinition (/Users/joshkramer/Documents/VSCodeProjects/BKopy/bkopy-embedded-contracts/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
This issue is also being tracked on Linear.
We use Linear to manage our development process, but we keep the conversations on Github.
LINEAR-ID: c30ff336-d2f5-4ce3-8de9-088b3326db63
This seems like a solc problem. @cameel do you recognize this problem?
Yeah, this is a failed assert so you hit some bug in the compiler. This does not seem to be the latest compiler (otherwise the message would not be empty) so it could have already been fixed. Check out these already fixed bugs that were triggering an assert in nativeMembers().
I'd suggest trying the latest compiler and if it's still happening, please file an issue. If you have trouble trimming the repro to a reasonable size we could help, as long as the code is available somewhere.
I'm closing this since it's not related to Hardhat. Thanks a lot @cameel for chiming in!