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

Some contracts are not indexed and not found when imported. #385

Open
0xfps opened this issue May 2, 2023 · 3 comments
Open

Some contracts are not indexed and not found when imported. #385

0xfps opened this issue May 2, 2023 · 3 comments

Comments

@0xfps
Copy link

0xfps commented May 2, 2023

I work in a Foundry environment and in my lib/ directory, are some dependencies which I have installed, OpenZeppelin and Chainlink.

When imported into my contract, the OpenZeppelin contracts are all indexed properly, but the Chainlink contracts are not indexed with the error "No usages found in Project Files". And it will have a dirty green coloured highlight over it.

image

image

But the contract exists in the path.

image

Thank you.
fps.

@0xfps 0xfps changed the title Contracts not indexed. Some contracts are not indexed and not found when imported. May 2, 2023
@jonahcui
Copy link
Contributor

I think your import path is not correct. I have tried it in my project, the code is below:

import {AggergatorV3Interface} from "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"

@Johnsi1994
Copy link

Still happening, any update about this ?
But it actually working fine, just very annoying :(

截圖 2023-10-20 下午4 44 31

@mbolotov
Copy link
Member

could anyone share a project to reproduce the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants