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

Problem with imports on Ape Project #516

Open
meatballs opened this issue Sep 13, 2023 · 1 comment
Open

Problem with imports on Ape Project #516

meatballs opened this issue Sep 13, 2023 · 1 comment
Labels
status:ready This issue is ready to be worked on

Comments

@meatballs
Copy link

When I use dependencies and import remapping within an Ape project, I get "File not found" errors reported in my import statements.

As per the Ape dependencies docs, I have the following in my ape-config.yaml:

dependencies:
  - name: OpenZeppelin
    github: OpenZeppelin/openzeppelin-contracts
    version: 4.9.3

solidity:
  import_remapping:
    - "@openzeppelin=OpenZeppelin/4.9.3"

Then, within a solidity file:

import "@openzeppelin/token/ERC721/ERC721.sol";

If I run ape compile, everything is happy and my contract compiles ok

But, in my editor (neovim), the language server gives:

Source "@openzeppelin/token/ERC721/ERC721.sol" not found: File not found. Searched the following locations: "". solidity (6275) [5, 1]
@MullerEsposito
Copy link

I'm heading the same problem on the VSCode, any solution?

@kanej kanej added status:ready This issue is ready to be worked on and removed status:triaging labels Jul 29, 2024
@kanej kanej moved this to Todo in hardhat-vscode Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready This issue is ready to be worked on
Projects
Status: Todo
Development

No branches or pull requests

3 participants