{"action":"opened","issue":{"url":"https://api.github.com/repos/embark-framework/embark/issues/1077","repository_url":"https://api.github.com/repos/embark-framework/embark","labels_url":"https://api.github.com/repos/embark-framework/embark/issues/1077/labels{/name}","comments_url":"https://api.github.com/repos/embark-framework/embark/issues/1077/comments","events_url":"https://api.github.com/repos/embark-framework/embark/issues/1077/events","html_url":"https://github.com/embark-framework/embark/issues/1077","id":380149826,"node_id":"MDU6SXNzdWUzODAxNDk4MjY=","number":1077,"title":"embark run crashes if a contract is deleted","user":{"login":"bingen","id":701095,"node_id":"MDQ6VXNlcjcwMTA5NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/701095?v=4","gravatar_id":"","url":"https://api.github.com/users/bingen","html_url":"https://github.com/bingen","followers_url":"https://api.github.com/users/bingen/followers","following_url":"https://api.github.com/users/bingen/following{/other_user}","gists_url":"https://api.github.com/users/bingen/gists{/gist_id}","starred_url":"https://api.github.com/users/bingen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bingen/subscriptions","organizations_url":"https://api.github.com/users/bingen/orgs","repos_url":"https://api.github.com/users/bingen/repos","events_url":"https://api.github.com/users/bingen/events{/privacy}","received_events_url":"https://api.github.com/users/bingen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-13T10:12:09Z","updated_at":"2018-11-13T10:12:09Z","closed_at":null,"author_association":"NONE","body":"### Bug Report\r\nDashboard crash when deleting contracts\r\n\r\n#### Current behavior\r\nIf you have `embark run` dashboard active and then delete a `.sol` file inside the `contracts/` path, it crashes.\r\n\r\nIt happens often to me because I have an emacs package that is constantly creating and deleting temporary files for syntax checking, but I happened to me once I was deleting a contract that I was no longer using.\r\n\r\n@iurimatias suggested a workaround consisting of adding a negative match pattern in `embark.json`, like this:\r\n```\r\n\"contracts\": [\"contracts/**\", \"!contracts/**/flycheck_*.sol\"],\r\n```\r\nThis works for me for the first case.\r\n\r\n#### Expected behavior\r\nNot sure, but it should definitely not crash, specially if the file is not actually needed\r\n\r\n#### If you encounter an error, please create a logfile using the following command and post the output here\r\n\r\n```\r\nError: ENOENT: no such file or directory, open 'contracts/test/mocks/flycheck_TokenMock.sol'\r\n    at Object.fs.openSync (fs.js:663:18)\r\n    at Function.fs.readFileSync (fs.js:568:33)\r\n    at restrictPath (/home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/lib/core/fs.js:54:43)\r\n    at Object.readFileSync (/home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/lib/core/fs.js:111:10)\r\n    at File.content (/home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/lib/core/file.js:137:20)\r\n    at /home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/lib/modules/solidity/index.js:172:18\r\n    at /home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/node_modules/async/dist/async.js:3110:16\r\n    at eachOfArrayLike (/home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/node_modules/async/dist/async.js:1069:9)\r\n    at eachOf (/home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/node_modules/async/dist/async.js:1117:5)\r\n    at Object.eachLimit (/home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/node_modules/async/dist/async.js:3172:5)\r\n    at prepareInput (/home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/lib/modules/solidity/index.js:161:15)\r\n    at nextTask (/home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/node_modules/async/dist/async.js:5324:14)\r\n    at Object.waterfall (/home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/node_modules/async/dist/async.js:5334:5)\r\n    at Solidity.compile_solidity (/home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/lib/modules/solidity/index.js:159:11)\r\n    at /home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/lib/modules/compiler/index.js:50:18\r\n    at /home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/lib/utils/async_extend.js:7:7\r\n    at /home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/node_modules/async/dist/async.js:3110:16\r\n    at eachOfArrayLike (/home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/node_modules/async/dist/async.js:1069:9)\r\n    at eachOf (/home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/node_modules/async/dist/async.js:1117:5)\r\n    at Object.eachLimit (/home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/node_modules/async/dist/async.js:3172:5)\r\n    at Object.asyncEachObject [as eachObject] (/home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/lib/utils/async_extend.js:4:9)\r\n    at Compiler.compile_contracts (/home/bingen/.nvm/versions/node/v9.4.0/lib/node_modules/embark/lib/modules/compiler/index.js:36:11)\r\n```\r\n\r\n#### Please provide additional information about your system\r\n\r\n**OS**: Ubuntu 16.04\r\n**Embark Version**: 4.0.0-alpha.1\r\n**Node Version**: v.9.4.0\r\n**NPM Version**: 5.7.1\r\n\r\n\r\n"}}
{"actor":{"display_login":"bingen"}}