NomicFoundation / hardhat-vscode

Solidity and Hardhat support for Visual Studio Code

Home Page:https://hardhat.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support `allow_paths` in foundry.toml

kanej opened this issue · comments

This issue was raised on discord: https://discord.com/channels/750408878008827925/951537942239797338/1101880603701420083

A cli run of forge gives no errors but it fails in the vscode extension with the following setup:

image

I suspect this is that the Foundry adapter is not reading and using allow_paths.

The issue here was our processing of remappings rather than allow_paths, we now deal better with absolute paths in this case.