Intellisense stops working if there are any problems with hardhat.config.js or hardhat.config.ts #609
Labels
status:needs-decision
A decision needs to be made before more progress
type:improvement
Improvement existing feature
Intellisense will not work at all if there are any problems in the hardhat config file.
This happens if it is a misconfigured module export. For example a missing closing curley bracket
module.exports = { solidity: "0.8.27"
It also happens if any require or import (for typescript) is invalid. For example the below require is missing the x in toolbox.
It also breaks if any of the imported packages or files have bugs in them. This is the biggest cause of annoyance. I am working on quite a large project with dozens of imports in my hardhat configuration and anytime anyone breaks one of the libraries it kills productivity until it is resolved. It also makes identifying the cause very difficult as you cannot navigate the project with intellisense.
It would be helpful if intellisense worked to some degree if there are problems with the hardhat config, ideally it should work fully but i understand that may not be possible as knowing the solidity version may be necessary. At a minimum i think "Go to Definition" should work correctly when used on a solidity line like this "import "./Test2.sol";"
The text was updated successfully, but these errors were encountered: