Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-completion does not work when a hybrid project uses a different source directory name #527

Open
maguroid opened this issue Nov 8, 2023 · 0 comments
Labels
foundry status:ready This issue is ready to be worked on

Comments

@maguroid
Copy link

maguroid commented Nov 8, 2023

Problem

Auto-completion for the lib/* folder is not working when integrating Foundry with Hardhat, following the instructions from this link.

image

Changing the source directory name from contracts to src resolved the issue, which was confusing. It would be preferable if any directory name could be used without affecting auto-completion.

Steps to Reproduce

  1. Initialize a new Hardhat project:
    npx hardhat init
  2. Install the Foundry plugin for Hardhat:
    npm i -D @nomicfoundation/hardhat-foundry
  3. Edit the hardhat.config.ts file to include the import statement:
    import "@nomicfoundation/hardhat-foundry";
  4. Attempt to use auto-completion in Lock.sol for libraries under the lib/ directory, which does not appear.
@kanej kanej added status:ready This issue is ready to be worked on foundry and removed status:triaging labels Jul 29, 2024
@kanej kanej moved this to Todo in hardhat-vscode Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
foundry status:ready This issue is ready to be worked on
Projects
Status: Todo
Development

No branches or pull requests

2 participants