-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Standard JSON compilation cannot find or read files. #2266
Copy link
Copy link
Closed
Description
The compiler throws an error when trying to compile using the --standard-json flag when reading from a file.
echo '{"language": "Solidity", "sources": {"Greeter.sol": {"urls": ["file:///Users/piper/sites/py-solc/tmp/Greeter.sol"]}}}' | solc --standard-json
{"contracts":{},"errors":[{"component":"general","formattedMessage":"Cannot import url (\"file:///Users/piper/sites/py-solc/tmp/Greeter.sol\"): Unknown exception in read callback.","message":"Cannot import url (\"file:///Users/piper/sites/py-solc/tmp/Greeter.sol\"): Unknown exception in read callback.","severity":"error","type":"IOError"}],"sources":{}}I've also tried the following formats for the file path just in case I was formatting something a little wrong:
file:///Users/piper/sites/py-solc/tmp/Greeter.solfile://Users/piper/sites/py-solc/tmp/Greeter.solfile://tmp/Greeter.solfile://./tmp/Greeter.soltmp/Greeter.sol/Users/piper/sites/py-solc/tmp/Greeter.sol
Help please
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels