OpenZeppelin / openzeppelin-sdk

OpenZeppelin SDK repository for CLI and upgrades.js. No longer actively developed.
MIT License
431 stars 201 forks source link

zos compile - Invalid URI #1049

Closed creazy231 closed 5 years ago

creazy231 commented 5 years ago

I was following the Your first project-Tutorial and have the following error:

λ zos compile
Invalid URI "c:/Users/Tobias/Documents/PROJEKTE/Contracts/zos-test/contracts/Counter.sol"
ylv-io commented 5 years ago

Hey @creazy231! Would you mind to share which version of zos you are using? Run zos --version.

creazy231 commented 5 years ago

Using 2.4.0

creazy231 commented 5 years ago

FYI: Using newest windows 10.

jbcarpanelli commented 5 years ago

Hey @creazy231, one more favor! could you please rerun the zos compile using the --verbose flag (zos compile --verbose) and share the output here? Thanks!

creazy231 commented 5 years ago

@jcarpanelli

λ zos compile --verbose
[2019-06-26T14:30:25.057Z@ErrorHandler.js#call] <started> Error: Invalid URI "c:/Users/Tobias/Documents/PROJEKTE/Contracts/zos-test/contracts/Counter.sol"
    at Request.init (C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\request\request.js:273:31)
    at new Request (C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\request\request.js:127:8)
    at Object.request [as default] (C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\request\index.js:53:10)
    at Promise (C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\@resolver-engine\core\build\parsers\urlparser.js:18:26)
    at new Promise (<anonymous>)
    at UrlParser (C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\@resolver-engine\core\build\parsers\urlparser.js:10:21)
    at core_1.firstResult.parser (C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\@resolver-engine\imports\build\parsers\importparser.js:19:74)
    at Object.<anonymous> (C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\@resolver-engine\core\build\utils.js:14:34)
    at Generator.next (<anonymous>)
    at C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\@resolver-engine\core\build\utils.js:7:71
    at new Promise (<anonymous>)
    at __awaiter (C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\@resolver-engine\core\build\utils.js:3:12)
    at Object.firstResult (C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\@resolver-engine\core\build\utils.js:12:12)
    at Object.<anonymous> (C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\@resolver-engine\imports\build\parsers\importparser.js:19:37)
    at Generator.next (<anonymous>)
    at C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\@resolver-engine\imports\build\parsers\importparser.js:7:71
    at new Promise (<anonymous>)
    at __awaiter (C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\@resolver-engine\imports\build\parsers\importparser.js:3:12)
    at ImportParser (C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\@resolver-engine\imports\build\parsers\importparser.js:18:26)
    at utils_1.firstResult.parser (C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\@resolver-engine\core\build\resolverengine.js:58:78)
    at Object.<anonymous> (C:\Users\Tobias\Documents\PROJEKTE\Contracts\zos-test\node_modules\@resolver-engine\core\build\utils.js:14:34)
    at Generator.next (<anonymous>)
spalladino commented 5 years ago

Hey @creazy231! This is caused by an issue in one of our dependencies (see https://github.com/Crypto-Punkers/resolver-engine/issues/182). We'll see if it can be fixed there and update, or try to monkey-patch it on our side if not possible

jbcarpanelli commented 5 years ago

Fixed in https://github.com/zeppelinos/zos/pull/1066.