Open meatballs opened 9 months ago
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:
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
ape compile
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]
I'm heading the same problem on the VSCode, any solution?
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
:Then, within a solidity file:
If I run
ape compile
, everything is happy and my contract compiles okBut, in my editor (neovim), the language server gives: