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

Allow remapping for outside project folder #13

Closed
otavioschwanck opened this issue Sep 3, 2022 · 2 comments
Closed

Allow remapping for outside project folder #13

otavioschwanck opened this issue Sep 3, 2022 · 2 comments

Comments

@otavioschwanck
Copy link

i trying to remap for brownie using:

  "solidity.remapping": {
    "@OpenZeppelin": "~/.brownie/packages/OpenZeppelin/openzeppelin-contracts@4.6.0/"
  },

and i solc tries to:
image

@qiuxiang
Copy link
Owner

qiuxiang commented Sep 4, 2022

remapping not support ~/, you should use absolute path.

See https://docs.soliditylang.org/en/latest/path-resolution.html#import-remapping

@otavioschwanck
Copy link
Author

otavioschwanck commented Sep 4, 2022

remapping not support ~/, you should use absolute path.

See https://docs.soliditylang.org/en/latest/path-resolution.html#import-remapping

only settings the remapping doesn't fixes, but this fixes:

  "solidity.remapping": {
    "@OpenZeppelin": "OpenZeppelin/openzeppelin-contracts@4.6.0"
  },
  "solidity.includePath": "/Users/otavio/.brownie/packages/",

Thanks for the answer

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

2 participants