You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i'm trying to set up a hybrid hardhat/foundry project but stuff like go to definition quits working when foundry is set up. When i comment out hardhat-foundry in hardhat.config.ts everything works again... Is there any solution to this?
A hybrid Hardhat + Foundry should support go to navigation and other features dependent on static analysis of the project; particularly if used with the hardhat-foundry plugin on the Hardhat side.
Reproduction steps
Init a new Hardhat project
Initialize foundry
Add hardhat-foundry as a plugin, confirm compilation works from HH
Attempt navigation within the vscode extension (it should not work). Comment out the hardhat-foundry plugin. Restart vscode and attempt navigation (it should work)
In the vscode extension we differentiate between HH projects, Foundry projects, HH + Foundry hybrid projects. We should investigate whether the presence of hardhat-foundry is being taken into account in the project calculation i.e. is a hybrid HH + foundry project with hardhat-foundry really included better approached as a pure HH project from the extensions point of view for static analysis?.
The text was updated successfully, but these errors were encountered:
Reported on discord: https://discord.com/channels/750408878008827925/951537942239797338/1207246837237420032
A hybrid Hardhat + Foundry should support go to navigation and other features dependent on static analysis of the project; particularly if used with the
hardhat-foundry
plugin on the Hardhat side.Reproduction steps
hardhat-foundry
plugin. Restart vscode and attempt navigation (it should work)See the minimal reproduction in this repo: https://github.com/69ren/Hardhat-Foundry-test
In the vscode extension we differentiate between HH projects, Foundry projects, HH + Foundry hybrid projects. We should investigate whether the presence of
hardhat-foundry
is being taken into account in the project calculation i.e. is a hybrid HH + foundry project withhardhat-foundry
really included better approached as a pure HH project from the extensions point of view for static analysis?.The text was updated successfully, but these errors were encountered: