-
Notifications
You must be signed in to change notification settings - Fork 39
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
Import statements not recognized in projects in symlinked folders #512
Comments
Hey @TomiOhl, is this running in a Hardhat project or Foundry. Is the repo open source to help me reproduce? |
It's basically any project that I open. I'm using hardhat. Actually I wrote this in the text of the issue:
Atm this is also false, I cannot navigate between files even when ctrl+clicking contracts referenced elsewhere in the code. It did work at the time of writing the issue though. I don't think anything related changed, but I did close vs code since then and even rebooted the device once. |
Did an experiment: normally the projects I work on are in a folder that's symlinked to my home folder from another partition. However, after copying a project to my home folder directly, the issue no longer persists. Hence I updated the title, too. |
There is no auto-completion for import statements and clicking on the does not navigate to the source file.
Happens with both npm and local imports. Tried in different projects.
Note that navigation between files works when I reference other contracts elsewhere in the code, just not when clicking on the import statements themselves.
hardhat-vscode 0.7.3
vscode 1.80.2
node v18.16.0
elementary OS 7 (based on Ubuntu 22.04)
The text was updated successfully, but these errors were encountered: