question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid input source specified

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:30
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
EbubeUdcommented, Feb 5, 2021

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

2reactions
cleanunicorncommented, 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.
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found