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

Wrong type of slashes in import on Windows #390

Closed
dvpublic opened this issue May 10, 2023 · 0 comments
Closed

Wrong type of slashes in import on Windows #390

dvpublic opened this issue May 10, 2023 · 0 comments

Comments

@dvpublic
Copy link

When we start to use a new contract in the code, the plugin highlights new name by yellow and suggests to add import of the contract at the beginning of the file. On Windows the suggestion looks like following:

Import file ...\libs\MyContract.sol

and result automatically added code is following

import "..\libs\MyContract.sol";

So, the plugin uses backward slashes
But solidity requires forward slashes /, so it's necessary to manually fix the code to

import "../libs/MyContract.sol";

It would be nice if the plugin uses forward slashes initially.

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

1 participant