{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/5102","labels_url":"https://api.github.com/repos/atom/atom/issues/5102/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/5102/comments","events_url":"https://api.github.com/repos/atom/atom/issues/5102/events","html_url":"https://github.com/atom/atom/issues/5102","id":54555540,"number":5102,"title":"Uncaught Error: EPERM, operation not permitted on readonly file","user":{"login":"pboudoin","id":9211179,"avatar_url":"https://avatars.githubusercontent.com/u/9211179?v=3","gravatar_id":"","url":"https://api.github.com/users/pboudoin","html_url":"https://github.com/pboudoin","followers_url":"https://api.github.com/users/pboudoin/followers","following_url":"https://api.github.com/users/pboudoin/following{/other_user}","gists_url":"https://api.github.com/users/pboudoin/gists{/gist_id}","starred_url":"https://api.github.com/users/pboudoin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pboudoin/subscriptions","organizations_url":"https://api.github.com/users/pboudoin/orgs","repos_url":"https://api.github.com/users/pboudoin/repos","events_url":"https://api.github.com/users/pboudoin/events{/privacy}","received_events_url":"https://api.github.com/users/pboudoin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-16T09:29:58Z","updated_at":"2015-01-16T09:47:02Z","closed_at":null,"body":"\r\n\r\n1. ... Open a file with atom which is read only\r\n2. ... Get an error alert \r\n\r\n**Atom Version**: 0.174.0\r\n**System**: Microsoft Windows 7 Enterprise \r\n**Thrown From**: Atom Core\r\n\r\n### Stack Trace\r\n\r\nUncaught Error: EPERM, operation not permitted 'e:\\****\\myFile.js'\r\n\r\n```\r\nAt c:\\Users\\***\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\src\\workspace.js:504\r\n\r\nError: EPERM, operation not permitted 'e:\\****\\myFile.js'\r\n  at Error (native)\r\n  at Object.fs.openSync (fs.js:455:18)\r\n  at Object.module.(anonymous function) [as openSync] (c:\\Users\\***\\AppData\\Local\\atom\\app-0.174.0\\resources\\atom\\common\\lib\\asar.js:422:20)\r\n  at Project.module.exports.Project.open (c:\\Users\\***\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\src\\project.js:287:31)\r\n  at Workspace.module.exports.Workspace.openURIInPane (c:\\Users\\***\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\src\\workspace.js:492:31)\r\n  at Workspace.module.exports.Workspace.open (c:\\Users\\***\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\src\\workspace.js:418:19)\r\n  at Ipc.<anonymous> (c:\\Users\\***\\AppData\\Local\\atom\\app-0.174.0\\resources\\app\\src\\window-event-handler.js:45:32)\r\n  at Ipc.emit (events.js:110:17)\r\n  at process.<anonymous> (c:\\Users\\***\\AppData\\Local\\atom\\app-0.174.0\\resources\\atom\\renderer\\api\\lib\\ipc.js:22:29)\r\n  at process.emit (events.js:118:17)\r\n\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"themes\": [\r\n      \"atom-dark-ui\",\r\n      \"atom-dark-syntax\"\r\n    ]\r\n  },\r\n  \"editor\": {\r\n    \"invisibles\": {}\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\nNo installed packages\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/70230349","html_url":"https://github.com/atom/atom/issues/5102#issuecomment-70230349","issue_url":"https://api.github.com/repos/atom/atom/issues/5102","id":70230349,"user":{"login":"pboudoin","id":9211179,"avatar_url":"https://avatars.githubusercontent.com/u/9211179?v=3","gravatar_id":"","url":"https://api.github.com/users/pboudoin","html_url":"https://github.com/pboudoin","followers_url":"https://api.github.com/users/pboudoin/followers","following_url":"https://api.github.com/users/pboudoin/following{/other_user}","gists_url":"https://api.github.com/users/pboudoin/gists{/gist_id}","starred_url":"https://api.github.com/users/pboudoin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pboudoin/subscriptions","organizations_url":"https://api.github.com/users/pboudoin/orgs","repos_url":"https://api.github.com/users/pboudoin/repos","events_url":"https://api.github.com/users/pboudoin/events{/privacy}","received_events_url":"https://api.github.com/users/pboudoin/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T09:47:02Z","updated_at":"2015-01-16T09:47:02Z","body":"It seems you try to open the file with 'r+' flag in the Project.prototype.open()\r\n\r\nfs.openSync (fs.js:455)\r\nmodule.(anonymous function) (c:\\Users\\p1z\\Ap…ib\\asar.js:422)\r\nmodule.exports.Project.open (c:\\Users\\p1z\\Ap…project.js:287)\r\nmodule.exports.Workspace.openURIInPane (c:\\Users\\p1z\\Ap…rkspace.js:492)\r\nmodule.exports.Workspace.open (c:\\Users\\p1z\\Ap…rkspace.js:418)\r\nmodule.exports.TreeView.openSelectedEntry (c:\\Users\\p1z\\Ap…ee-view.js:639)\r\nmodule.exports.TreeView.entryClicked (c:\\Users\\p1z\\Ap…ee-view.js:383)\r\n(anonymous function) (c:\\Users\\p1z\\Ap…ee-view.js:171)\r\njQuery.event.dispatch (c:\\Users\\p1z\\Ap…dules\\at…:4676)\r\nelemData.handle (c:\\Users\\p1z\\Ap…dules\\at…:4360)\r\n"}}