Improve HHE909 error message to show incompatible files Fixes #7748#7757
Improve HHE909 error message to show incompatible files Fixes #7748#7757sanskar717 wants to merge 5 commits intoNomicFoundation:mainfrom
Conversation
🦋 Changeset detectedLatest commit: 4a8f9ae The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
SummaryThis PR improves the HHE909 error message by showing which specific files have incompatible Solidity version requirements, making debugging much easier. Testing EvidenceHere's the improved error output in action: Before vs AfterBefore: ❌ Only showed "No solc version enabled" without details Why This Helps
Testing Verified
|
| @@ -0,0 +1,178 @@ | |||
| port { defineConfig } from "hardhat/config"; | |||
There was a problem hiding this comment.
I think this file was included by accident.
There was a problem hiding this comment.
@kanej Yes, you're correct - that was included by mistake. Should I remove it from this PR?
There was a problem hiding this comment.
Yes, I don't seem to have push permissions to your branch.
There was a problem hiding this comment.
@kanej Sure, I'll add a changeset. Just to confirm - should I run npx changeset in the root directory and document the improved error message changes?
There was a problem hiding this comment.
@kanej Changeset added! Thank you for your guidance and patience throughout this process. Looking forward to your review!
There was a problem hiding this comment.
@kanej Hi! Just a quick follow-up — would you mind taking another look at this PR when you have time?
If everything looks correct and helpful on your end, I’d really appreciate a merge. Thanks again for your guidance!
|
I was able to run the changes locally, based on the repro steps from #7748:
|
Removed hardhat.config.ts.save file that was included by mistake as pointed out in the review.
…tem/solc-config-selection.ts Co-authored-by: John Kane <john@kanej.me>
…tem/solc-config-selection.ts Co-authored-by: John Kane <john@kanej.me>
|
Hey, sorry we didn't get this past the finish line, @sanskar717. Unfortunately we were also working on a slightly different approach, which you can take a look at #7988 |


Description
Improves the HHE909 error message to show which files have incompatible Solidity version requirements, making it easier to diagnose version compatibility issues in projects with large dependency trees.
Problem
When a file can't be compiled due to version pragma incompatibilities deep in its dependency tree, the error message only says "No solc version enabled in this profile is compatible with this file and all of its dependencies" - without telling you which files are actually causing the problem.
This makes debugging extremely difficult, especially in projects with large dependency trees where the incompatible pragma could be buried several levels down.
Solution
The improved error message now displays:
Changes Made
Related Issue
Fixes #7748
Testing
Tested with projects having:
Checklist