Invalid input source specified
See original GitHub issueWhen 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.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:30
- Comments:5 (1 by maintainers)
Top Results From Across the Web
"Invalid input source specified" - Remix Solidity IDE error
I found out what was wrong. A user gets this error anytime a file for compilation is missing. The most common way this...
Read more >Truffle Compile Error (Invalid input source specified ...
When I run truffle compile, it throws the following error: Invalid input source specified. enter image description here.
Read more >Remix compilation fails with Source file requires different ...
Remix compilation fails with Source file requires different compiler version · Support Contracts ... invalid input source specified?
Read more >Invalid Input Code Definition | Law Insider
Invalid Input Code means an indication that an operation has occurred but the request was rejected due to an invalid input. Such indication...
Read more >Invalid Input Errors - Oracle Help Center
Cause: A property value contained an invalid protocol. For example, the protocol for a Web source starting URL must be http or https...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For me, it occurred in my test scripts. What I did was to comment out this line import “remix_accounts.sol”;
@HOkn That’s exactly how you should do it. Your import should have the prefix
./
This will workimport "./networkmanager.sol";
This will create an error
import "networkmanager.sol";