diff --git a/lib/modules/solidity/solcW.js b/lib/modules/solidity/solcW.js index 95ca8f5c..f599f8b7 100644 --- a/lib/modules/solidity/solcW.js +++ b/lib/modules/solidity/solcW.js @@ -4,7 +4,6 @@ let currentSolcVersion = require('../../../package.json').dependencies.solc; const ProcessLauncher = require('../../process/processLauncher'); const uuid = require('uuid/v1'); let ipc = require('node-ipc') -let socketPath = "/tmp/embark.sock" class SolcW { @@ -30,7 +29,7 @@ class SolcW { }); } - ipc.connectTo('embark', socketPath, connecting); + ipc.connectTo('embark', fs.dappPath(".embark/embark.ipc"), connecting); return; } @@ -62,9 +61,9 @@ class SolcW { ); } - ipc.serve(socketPath, _connecting) + ipc.serve(fs.dappPath(".embark/embark.ipc"), _connecting) ipc.server.start() - this.logger.info(`pid ${process.pid} listening on ${socketPath}`); + this.logger.info(`pid ${process.pid} listening on ${fs.dappPath(".embark/embark.ipc")}`); this.events.request("version:get:solc", function(solcVersion) { if (solcVersion === currentSolcVersion) { @@ -88,7 +87,6 @@ class SolcW { compile(jsonObj, done) { const id = uuid(); let a = new Date(); - console.dir("doing compile"); if (this.useIpc) { ipc.of['embark'].once('message', function(msg) {