Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

truffle compile fails on solidity-stringutils #251

Closed
mike80439 opened this issue Aug 25, 2016 · 4 comments
Closed

truffle compile fails on solidity-stringutils #251

mike80439 opened this issue Aug 25, 2016 · 4 comments

Comments

@mike80439
Copy link

mike80439 commented Aug 25, 2016

Compiling strings.sol (https://github.com/Arachnid/solidity-stringutils) results in:

[x] $ truffle compile
Compiling Test2.sol...
Compiling strings.sol...

/usr/local/lib/node_modules/truffle/node_modules/solc/soljson.js:1
(function (exports, require, module, __filename, __dirname) { var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=typeof window==="object";var ENVIRONMENT_IS_WORKER=typeof importScripts==="function";var ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;var ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=function print(x){process["stdout"].write(x+"\n")};if(!Module["printErr"])Module["printErr"]=function printErr(x){process["stderr"].write(x+"\n")};var nodeFS=require("fs");var nodePath=require("path");Module["read"]=function read(filename,binary){filename=nodePath"normalize";var ret=nodeFS["readFileSync"](filen
6236544

The "truffle migration" does not complete.

@tcoulter
Copy link
Contributor

Well this is an odd error (and error message). Reproduced, thanks!

@tcoulter
Copy link
Contributor

I've confirmed that this is a bug with the solc compiler and not with Truffle. I've written up an example project that exposes the error as well as submitted a bug report to solc.js. Will leave this ticket open until the upstream issue is resolved, after which we'll upgrade our solc version.

@mike80439
Copy link
Author

Thank you, Tim.

On Aug 29, 2016 9:49 AM, "Tim Coulter" notifications@github.com wrote:

I've confirmed that this is a bug with the solc compiler and not with
Truffle. I've written up an example project that exposes the error
https://github.com/tcoulter/solc-result-bug as well as submitted a bug
report ethereum/solc-js#44 to solc.js. Will
leave this ticket open until the upstream issue is resolved, after which
we'll upgrade our solc version.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#251 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWMgoUlNjRhK9hllarQVpIFOnWcUXE7ks5qkv97gaJpZM4Jtaxn
.

@tcoulter
Copy link
Contributor

tcoulter commented Feb 1, 2017

This appears to be fixed upstream. Please reopen if you have any issues. Cheers!

@tcoulter tcoulter closed this as completed Feb 1, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

2 participants