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

Invalid input source specified #60

Closed
niran opened this issue Jul 11, 2017 · 5 comments
Closed

Invalid input source specified #60

niran opened this issue Jul 11, 2017 · 5 comments

Comments

@niran
Copy link

niran commented Jul 11, 2017

When I ran solidity-coverage for the first time, it gave me this error:

Invalid input source specified.
Compiliation failed. See above.

After some debugging, it turns out that the problem was the paths on my imports. I'd been importing "Contract.sol" instead of "./Contract.sol" in my contracts. Since solidity-coverage is more particular about the current working directory than truffle is, someone else might run into this issue. It's not a solidity-coverage bug, but I'm creating an issue in the hopes that the next person to have that problem comes across it.

@niran niran closed this as completed Jul 11, 2017
@cgewecke
Copy link
Member

@niran Thanks so much! That makes sense. Good to know.

@HOkn
Copy link

HOkn commented Oct 17, 2017

For myself, it was the opposite.

Worked: import "./networkmanager.sol";
Did NOT work: import "networkmanager.sol";

@RomanOznobin
Copy link

Thanks so much to !!!

@cleanunicorn
Copy link

cleanunicorn commented Feb 8, 2018

@HOkn That's exactly how you should do it. Your import should have the prefix ./
This will work
import "./networkmanager.sol";

This will create an error
import "networkmanager.sol";

Invalid input source specified.
Compiliation failed. See above.

@EbubeUd
Copy link

EbubeUd commented Feb 5, 2021

For me, it occurred in my test scripts. What I did was to comment out this line
import "remix_accounts.sol";

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

6 participants